aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-29 17:10:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-29 17:10:18 +1200
commitc6a69c1be962955dfd73ed1e2eb2501800fc5ed8 (patch)
treef2004498f1d1787a820bea3ffb6395eef430dec1
parentAdd 'comments' settings for sh filetype (diff)
downloaddotfiles-c6a69c1be962955dfd73ed1e2eb2501800fc5ed8.tar.gz
dotfiles-c6a69c1be962955dfd73ed1e2eb2501800fc5ed8.zip
Wrap feature-dependent 'comments' settings
-rw-r--r--vim/vimrc14
1 files changed, 10 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 80b7a3dd..49b4ea2c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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