diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-29 17:10:18 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-29 17:10:18 +1200 |
commit | c6a69c1be962955dfd73ed1e2eb2501800fc5ed8 (patch) | |
tree | f2004498f1d1787a820bea3ffb6395eef430dec1 /vim/vimrc | |
parent | Add 'comments' settings for sh filetype (diff) | |
download | dotfiles-c6a69c1be962955dfd73ed1e2eb2501800fc5ed8.tar.gz dotfiles-c6a69c1be962955dfd73ed1e2eb2501800fc5ed8.zip |
Wrap feature-dependent 'comments' settings
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 |