summaryrefslogtreecommitdiff
path: root/plugin/perso.vim
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-01-18 08:35:47 +0100
committerache <ache@ache.one>2018-01-18 08:35:47 +0100
commit3de447893715aa684f0725c2d9bc7e8c486ee95e (patch)
tree898da4f5ec53eb062ce3211241069916f4710261 /plugin/perso.vim
parentInsert date (diff)
parentColor fix for graphics vim (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'plugin/perso.vim')
-rwxr-xr-xplugin/perso.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/perso.vim b/plugin/perso.vim
index 2947589..11b4ed1 100755
--- a/plugin/perso.vim
+++ b/plugin/perso.vim
@@ -94,6 +94,10 @@ autocmd FileType mail let b:comment_leader = '>'
autocmd FileType vim let b:comment_leader = '"'
autocmd FileType haskell let b:comment_leader = '--'
+
+autocmd FileType c,cpp,java,go,scala set foldmethod=syntax
+
+
noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
noremap <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>