diff --git a/ftplugin/java.vim b/ftplugin/java.vim index 7a02785..0d5f74d 100644 --- a/ftplugin/java.vim +++ b/ftplugin/java.vim @@ -1 +1,9 @@ iabbrev cout System.out.println +nnoremap fb ][% +nnoremap fe ][ +nnoremap c mcI//`c:delm c +vnoremap c `>o*/` +nnoremap xc mx^xx`x:delm x +nnoremap xb mx?\/\*dd/\*\/dd`x:noh:delm x + +setlocal foldmethod=syntax foldlevel=99 diff --git a/plugin/settings.vim b/plugin/settings.vim index bac6843..3e0deb6 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -84,6 +84,7 @@ augroup END let mapleader = "," let maplocalleader = "," nnoremap q +nnoremap qn :nohl nnoremap ql :lclose nnoremap qq :cclose nnoremap qp :pclose @@ -100,7 +101,6 @@ endif nnoremap sl :tabe $MYVIMRC nnoremap ss :execute 'tabe' my_settings_file nnoremap sv :source $MYVIMRC:execute 'source' my_settings_file -nnoremap n :noh nnoremap k nnoremap j nnoremap h @@ -129,5 +129,6 @@ nnoremap T :TagbarToggle "Abbreviations "{{{ iabbrev rr return +iabbrev itt import cabbrev w!! w !sudo tee > /dev/null % "}}}