From 1d80cbb679d913a8b26d915e3c50428c60e92fab Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 12 Mar 2016 21:28:19 +0000 Subject: [PATCH] Simplify .vimrc layout & folds --- after/ftplugin/c.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/after/ftplugin/c.vim b/after/ftplugin/c.vim index 037103b..b329168 100644 --- a/after/ftplugin/c.vim +++ b/after/ftplugin/c.vim @@ -1,4 +1,8 @@ +" Surround visual block in #if 0 block +vmap 0 V''>o#endif " Set 'comments' to format dashed lists in comments. setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// +" Set 'commentstring' to single line comment style. +setlocal commentstring=//%s " Stop automatic new lines which typing long single liners setlocal textwidth=0