From 61958923c4b985f3d7ee13bf037a3a90272dd83d 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