commit cc0cde309f1ed5abb02c226923c6716325884fb9
parent 02e88ea6c9e1cee09b07890f0adede04f3ef2187
Author: Remy Noulin <loader2x@gmail.com>
Date: Mon, 9 Jul 2018 15:38:02 +0200
add F4 to save in .vimrc
dotfiles/.vimrc | 7 +++++++
1 file changed, 7 insertions(+)
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc
@@ -199,3 +199,10 @@ fun! ShowFuncName()
call search("\\%" . lnum . "l" . "\\%" . col . "c")
endfun
map f :call ShowFuncName() <CR>
+
+" <F2> to show function declaration under cursor
+nnoremap <F2> [i
+inoremap <F2> <Esc>[i
+
+" <F4> to save current file
+inoremap <F4> <c-o>:w<CR>