diff --git a/.vimrc b/.vimrc index 6ce2dca..8969a34 100644 --- a/.vimrc +++ b/.vimrc @@ -1,6 +1,9 @@ """"""""""""" " SHORTCUTS " """"""""""""" +" F1 help +" F2 open file in a new tab +" S-F2 Split and open file " F3 autotags Update " S-F3 autotags Add " F8 view tag list @@ -133,6 +136,32 @@ endif map :tabe =expand("%:h") . "/" nmap :split =expand("%:h") . "/" +"""""""" +" HELP " +"""""""" +" allow embedded man page +runtime! ftplugin/man.vim +" show vimrc with shift+F1 +nmap :tabe ~/.vimrcgg +imap +" show contextual help with F1 +function Help() + try + if exists('b:current_syntax') && b:current_syntax == "python" + :call ShowPyDoc(expand(""), 1) + else + execute "Man " . expand("") + endif + catch /:E149:/ + execute "help " . expand("") + endtry +endfunction +nmap :call Help() +imap +" show VIM help with alt+shift+F1 +nmap :help =expand("") +imap + """""""""""""""""""""""""""""""""""""""""""""""""" "Omni-completion par CTRL-X_CTRL-O """""""""""""""""""""""""""""""""""""""""""""""""""