aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
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