aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 08:56:58 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 08:56:58 +1200
commit58b20c9f303a94108b2fecc007d02f53aab5d2e7 (patch)
tree6151561c206530cde66eb6761da52ff0f0c50a08 /vim/after
parentDon't set 'path' to ** by default (diff)
downloaddotfiles-58b20c9f303a94108b2fecc007d02f53aab5d2e7.tar.gz
dotfiles-58b20c9f303a94108b2fecc007d02f53aab5d2e7.zip
Set 'include' and 'path' in Vim script files
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/vim.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim
index 76608691..5b4d0f95 100644
--- a/vim/after/ftplugin/vim.vim
+++ b/vim/after/ftplugin/vim.vim
@@ -16,6 +16,12 @@ if &keywordprg !=# ':help'
let b:undo_ftplugin .= '|setlocal keywordprg<'
endif
+" Keywords for including files
+let &l:include = '\<source\>\|\<runtime!\=\>'
+
+" Search runtime paths for included scripts
+let &l:path = &runtimepath . ',' . &path
+
" Adjust the match words for the matchit plugin; the default filetype plugin
" matches e.g. an opening "function" with the first "return" within, which I
" don't like