diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 22:44:30 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 23:54:32 +1200 |
commit | 2956d0cb5d9ae3b7e57d96a05949e7bab89a66d9 (patch) | |
tree | 942ef58c3ff34074cb6a6fcba76f7546a2497f10 /vim/after/syntax | |
parent | Add check/lint for git-template-hooks to target (diff) | |
download | dotfiles-2956d0cb5d9ae3b7e57d96a05949e7bab89a66d9.tar.gz dotfiles-2956d0cb5d9ae3b7e57d96a05949e7bab89a66d9.zip |
Get full path before testing for :CompilerSet
Diffstat (limited to 'vim/after/syntax')
-rw-r--r-- | vim/after/syntax/vim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/after/syntax/vim.vim b/vim/after/syntax/vim.vim index cae5c815..e67803cc 100644 --- a/vim/after/syntax/vim.vim +++ b/vim/after/syntax/vim.vim @@ -3,7 +3,7 @@ syntax clear vimCommentString " Highlight :CompilerSet commands like :set/:setlocal, but only in compiler " scripts in recognisable paths -if expand('%:h:t') ==# 'compiler' +if expand('%:p:h:t') ==# 'compiler' \ && expand('%:e') ==# 'vim' syntax keyword vimCommand contained \ CompilerSet |