diff options
author | tv <tv@krebsco.de> | 2015-11-06 10:47:18 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-11-06 10:47:18 +0100 |
commit | dc40d6b9db8bae03a4aeb3fd22a0c4cfb3a40cbc (patch) | |
tree | d3459d28a14e509bbea4c53171b3e2346211009f /tv/2configs/vim.nix | |
parent | fd901a72b64ca53ea0f5268813caf259950f7347 (diff) |
tv vim: isk, INTs, and comments
Diffstat (limited to 'tv/2configs/vim.nix')
-rw-r--r-- | tv/2configs/vim.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 14f086e..295c78a 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -66,9 +66,10 @@ let au BufRead,BufNewFile *.nix so ${pkgs.writeText "nix.vim" '' setf nix + set isk=@,48-57,_,192-255,-,' " Ref <nix/src/libexpr/lexer.l> - syn match INT /[0-9]\+/ + syn match INT /\<[0-9]\+\>/ syn match PATH /[a-zA-Z0-9\.\_\-\+]*\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/ syn match HPATH /\~\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/ syn match SPATH /<[a-zA-Z0-9\.\_\-\+]\+\(\/[a-zA-Z0-9\.\_\-\+]\+\)*>/ @@ -80,7 +81,7 @@ let hi link URI Constant syn match String /"\([^"]\|\\\"\)*"/ - syn match Comment /\s#.*/ + syn match Comment /\(^\|\s\)#.*/ ''} au BufRead,BufNewFile /dev/shm/* set nobackup nowritebackup noswapfile |