From 88db1685aded1d4787ce5b81fe82658a6be9274d Mon Sep 17 00:00:00 2001 From: Johannes Stolp Date: Wed, 13 Jul 2016 22:46:45 +0200 Subject: enabled foldmethod \'marker\' for vim added Ctrl-f functions in vim to create fold blocks --- .vim/vimrc_files/functions.vim | 4 ++-- .vim/vimrc_files/keymaps.vim | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to '.vim/vimrc_files') diff --git a/.vim/vimrc_files/functions.vim b/.vim/vimrc_files/functions.vim index 4ab280d..9f2a1fd 100644 --- a/.vim/vimrc_files/functions.vim +++ b/.vim/vimrc_files/functions.vim @@ -2,14 +2,14 @@ " author: johannst " Split Window and scroll down -fu! SplitScroll() +function! SplitScroll() :wincmd v :wincmd w execute "normal! \" :set scrollbind :wincmd w :set scrollbind -endfu +endfunc " toggle relative line number mode function! ToggleRelativeNumber() diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim index f7cb026..0469920 100644 --- a/.vim/vimrc_files/keymaps.vim +++ b/.vim/vimrc_files/keymaps.vim @@ -83,6 +83,10 @@ vnoremap $ " Shortcut to toggle relative numbering mode nnoremap :call ToggleRelativeNumber() +" add a marker fold snippet (for C/C++) +vnoremap VV''>o//}}}'<A +nnoremap o//{{{ o//}}}A +imap " Open BufferExplorer nnoremap :call BufExplorer() @@ -90,9 +94,5 @@ nnoremap :call BufExplorer() " Toggle Tagbar nnoremap t :TagbarToggle - -" invoke grep and print output into current buffer -nnoremap :read !grep -nI - -" substituce selection +" substitute selection vnoremap "hy:%s/h//gc -- cgit v1.2.3