diff options
author | tv <tv@krebsco.de> | 2016-07-03 20:49:02 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-07-03 20:49:02 +0200 |
commit | 8f4742f184b7865bf3a29640d9a7cd480ad517d0 (patch) | |
tree | 267317bb24bbae87c113ded089e9af706515a934 /tv | |
parent | 021f4270cec8e511174117685f2b1155d2daa43d (diff) |
tv vim: unlet b:current_syntax if exists
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/vim.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 0a84662..86c5d05 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -180,7 +180,9 @@ let sigil = ''\(${concatStringsSep ''\|'' startAlts}\)[ \t\r\n]*''; in /* vim */ '' syn include @nix_${lang}_syntax syntax/${lang}.vim - unlet b:current_syntax + if exists("b:current_syntax") + unlet b:current_syntax + endif syn match nix_${lang}_sigil \ X${replaceStrings ["X"] ["\\X"] sigil}\ze\('''\|"\)X |