From 58b20c9f303a94108b2fecc007d02f53aab5d2e7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 23 May 2019 08:56:58 +1200 Subject: Set 'include' and 'path' in Vim script files --- vim/after/ftplugin/vim.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vim/after') 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 = '\\|\' + +" 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 -- cgit v1.2.3