diff options
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -54,10 +54,6 @@ else set visualbell t_vb= endif -" Clear default comment settings, let the filetype handle it -set comments= -set commentstring= - " How to deal with lines wrapping beyond the last screen row if v:version > 704 || v:version == 704 && has('patch2109') set display=truncate " Show '@@@' on the last line, if supported @@ -121,6 +117,11 @@ if has('cmdline_info') set ruler endif +" Clear default 'comment' value, let the filetype handle it +if has('comments') + set comments= +endif + " Highlight settings for search if has('extra_search') set hlsearch " Highlight completed searches... @@ -133,6 +134,11 @@ if has('file_in_path') set path=.,,** endif +" Clear default 'commentstring' value, let the filetype handle it +if has('folding') + set commentstring= +endif + " Don't load GUI menus; set here before GUI starts if has('gui_running') set guioptions+=M |