Last active
July 28, 2016 14:13
-
-
Save mirekfranc/490fb44eae2d6e4a57021235423ac7ef to your computer and use it in GitHub Desktop.
mkdir -p ~/.vim/syntax; cp ./cpp.vim ~/.vim/syntax/cpp.vim && ln -s ~/.vim/syntax/cpp.vim ~/.vim/syntax/c.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax match BeforeSpace /^ */ containedin=ALL | |
syntax match AfterSpace / *$/ containedin=ALL | |
syntax match InsideSpace "\t *\t"hs=s+1,he=e-1 containedin=ALL | |
highlight BeforeSpace ctermbg=DarkBlue | |
highlight AfterSpace ctermbg=DarkBlue | |
highlight InsideSpace ctermbg=DarkBlue |
ln -s ~/.vim/syntax/cpp.vim ~/.vim/syntax/make.vim
ln -s ~/.vim/syntax/cpp.vim ~/.vim/syntax/python.vim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And I guess it helps to have a `syntax on' in ~/.vimrc