summaryrefslogtreecommitdiffstats
path: root/runtime/vimrc_example.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-05 22:07:04 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-05 22:07:04 +0200
commit54f1b7abf8c48b1dd997202258d1d0673ed4bd29 (patch)
tree3d01e3df0d01ff8f4d84b44af0add0883f29e2f1 /runtime/vimrc_example.vim
parentf80663f17b2f2499b45eb4467088704c8298c385 (diff)
patch 7.4.1714v7.4.1714
Problem: Non-GUI specific settings in the gvimrc_example file. Solution: Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi)
Diffstat (limited to 'runtime/vimrc_example.vim')
-rw-r--r--runtime/vimrc_example.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/vimrc_example.vim b/runtime/vimrc_example.vim
index 9cb66ee270..6d5eac4f74 100644
--- a/runtime/vimrc_example.vim
+++ b/runtime/vimrc_example.vim
@@ -1,7 +1,7 @@
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last change: 2016 Mar 25
+" Last change: 2016 Apr 05
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
@@ -47,11 +47,16 @@ if has('mouse')
set mouse=a
endif
-" Switch syntax highlighting on, when the terminal has colors
-" Also switch on highlighting the last used search pattern.
+" Switch syntax highlighting on when the terminal has colors or when using the
+" GUI (which always has colors).
if &t_Co > 2 || has("gui_running")
syntax on
+
+ " Also switch on highlighting the last used search pattern.
set hlsearch
+
+ " I like highlighting strings inside C comments.
+ let c_comment_strings=1
endif
" Only do this part when compiled with support for autocommands.