Improve vmap 0 to play nice with comments

This commit is contained in:
Kenneth Benzie 2016-07-06 20:48:14 +01:00
parent 2d90a55ddd
commit ebc5941b52

View File

@ -1,5 +1,5 @@
" Surround visual block in #if 0 block " Surround visual block in #if 0 block
vmap 0 V'<O#if 0<Esc>'>o#endif<Esc> vmap 0 V'<[ ki#if 0<Esc>'>o#endif<Esc>
" Set 'comments' to format dashed lists in comments. " Set 'comments' to format dashed lists in comments.
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
" Set 'commentstring' to single line comment style. " Set 'commentstring' to single line comment style.