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