[vim] change bindings for help

This commit is contained in:
Mathieu Maret 2010-09-21 10:59:10 +02:00
parent f4ddcdbd4d
commit a5ac67dc62

7
.vimrc
View File

@ -430,8 +430,8 @@ nmap <S-F2> :split <C-R>=expand("%:h") . "/"<CR>
" allow embedded man page
runtime! ftplugin/man.vim
" show vimrc with shift+F1
nmap <silent> <S-F1> :sview ~/.vimrc<CR>gg
imap <F1> <Esc><S-F1>
"nmap <silent> <S-F1> :sview ~/.vimrc<CR>gg
"imap <F1> <Esc><S-F1>
" show contextual help with F1
function Help()
try
@ -441,7 +441,7 @@ function Help()
endtry
endfunction
nmap <silent> <F1> :call Help()<CR>
imap <S-F1> <Esc><F1>
imap <F1> <Esc><F1>
" show VIM help with alt+shift+F1
nmap <silent> <M-S-F1> :help <C-R>=expand("<cword>")<CR><CR>
imap <M-S-F1> <Esc><M-S-F1>
@ -509,6 +509,7 @@ set tags=tags
"for when programming in build dir
set tags+=../tags
set tags+=~/.vim/qttags
set tags+=~/.vim/qtembedded
" Affichage du prototype d'une fonction sur le
" plugin echofunc