]> git.nbdom.net Git - nb.git/commitdiff
etc/vim/source/spell.vim
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 14 Dec 2024 09:30:15 +0000 (10:30 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 14 Dec 2024 09:30:15 +0000 (10:30 +0100)
etc/vim/source/spell.vim

index 89b53a2754d141421a292ece46868261e8938b77..4f452eb1410b6b30e249df40a7b98c9d64b7da7d 100644 (file)
@@ -1,10 +1,7 @@
 set spell
 " Disable spell checking for code
-" autocmd FileType *.sh setlocal spell options+=nospell
-" autocmd FileType *.sh setlocal nospell
-autocmd FileType sh setlocal nospell
-autocmd FileType perl setlocal nospell
-autocmd FileType php setlocal nospell
-autocmd FileType vim setlocal nospell
-" syntax match NoSpell "\w\+" contains=@NoSpell
-" syntax cluster NoSpell add=Comment
+autocmd FileType sh,perl,php,vim,python,c,cpp,java,javascript setlocal nospell
+"autocmd FileType sh syntax match Comment /\v#.*/ contains=@Spell
+"autocmd FileType sh syntax region Comment start=/^#/ end=/^\S/ contains=@Spell
+"autocmd FileType sh syntax region Comment start=/^#/ end=/^[^#]/ contains=@Spell
+"autocmd FileType sh syntax region Comment start=/^#/ end=/[\r\n]$/ contains=@Spell