aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 22:44:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 23:54:32 +1200
commit2956d0cb5d9ae3b7e57d96a05949e7bab89a66d9 (patch)
tree942ef58c3ff34074cb6a6fcba76f7546a2497f10 /vim/after
parente88f5662fada840951d3e67ceb655ccd5fca6620 (diff)
downloaddotfiles-2956d0cb5d9ae3b7e57d96a05949e7bab89a66d9.tar.gz
dotfiles-2956d0cb5d9ae3b7e57d96a05949e7bab89a66d9.zip
Get full path before testing for :CompilerSet
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/syntax/vim.vim2
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