aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/vim.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 11:24:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 11:24:51 +1200
commit764bbeef64cc575a55ab0a22e22c095ac7d564ad (patch)
tree2ca8e9a84c4bfb71f12a3959e2fb4a4dc1dd8aaa /vim/after/ftplugin/vim.vim
parentMerge branch 'release/v4.38.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-d635b6f884fd213aba4b3ba158ffd12951523adb.tar.gz (sig)
dotfiles-d635b6f884fd213aba4b3ba158ffd12951523adb.zip
Merge branch 'release/v4.39.0'v4.39.0
* release/v4.39.0: (33 commits) Bump VERSION Use case-sensitive operators to appease vim-vint Correct :return to :break Run repeat blank squeeze on mail reply Normalise quoting in mail Strip trailing blanks after greeting Improve opening-greeting strip from mail ftplugin Add foldexpr function deletion to undo Give credit to Tim Pope Adopt heading-based Markdown folding Remove redundancies from 'formatoptions' setting Break apart 'comments' definitions Use variable assignment for complex pattern Correct definition for b:undo_ftplugin Refactor undo_ftplugin lines for Markdown ftplugin Break up Markdown ftplugin option settings Adjust header/footer for Markdown ftplugin Remove HTML ftplugin import from Markdown ftplugin Move my after ftplugin for Markdown into main Add Tim Pope's Markdown ftplugin ...
Diffstat (limited to 'vim/after/ftplugin/vim.vim')
-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