summaryrefslogtreecommitdiff
path: root/runtime/ftplugin/vim.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-03-28 20:51:51 +0200
committerBram Moolenaar <Bram@vim.org>2012-03-28 20:51:51 +0200
commit61d35bd0201074a70a10e9a2ea5d6a251abf1b20 (patch)
tree3eeefe627f7f1c11cba708301e65ba4c808e5a17 /runtime/ftplugin/vim.vim
parent913077c37c0ba2f70e6b06e9b46d176e8b9e7956 (diff)
downloadvim-git-61d35bd0201074a70a10e9a2ea5d6a251abf1b20.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/ftplugin/vim.vim')
-rw-r--r--runtime/ftplugin/vim.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
index de8a04798..5feb15271 100644
--- a/runtime/ftplugin/vim.vim
+++ b/runtime/ftplugin/vim.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Vim
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2009 Jan 22
+" Last Change: 2012 Mar 21
" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
@@ -21,6 +21,10 @@ let b:undo_ftplugin = "setl fo< isk< com< tw< commentstring<"
" and insert the comment leader when hitting <CR> or using "o".
setlocal fo-=t fo+=croql
+" To make syntax highlighting of 'vimVar's work correctly we need the colon to
+" be part of keywords. This needs to be done prior to the 'isk+=#' below.
+setlocal isk+=:
+
" To allow tag lookup via CTRL-] for autoload functions, '#' must be a
" keyword character. E.g., for netrw#Nread().
setlocal isk+=#