Bundles for better javascript highlighting and tag highlighting

This commit is contained in:
Yan Pritzker 2012-11-16 09:31:59 -06:00
parent 630063efe4
commit 485c7f1800
6 changed files with 33 additions and 1 deletions

10
.gitmodules vendored
View File

@ -362,3 +362,13 @@
path = vim/bundle/tpope-vim-ragtag
url = https://github.com/tpope/vim-ragtag
ignore = dirty
[submodule "vim/bundle/vim-scripts-TagHighlight"]
path = vim/bundle/vim-scripts-TagHighlight
url = https://github.com/vim-scripts/TagHighlight.git
ignore = dirty
[submodule "vim/bundle/jelera-vim-javascript-syntax"]
path = vim/bundle/jelera-vim-javascript-syntax
url = https://github.com/jelera/vim-javascript-syntax.git
[submodule "vim/bundle/itspriddle-vim-jquery"]
path = vim/bundle/itspriddle-vim-jquery
url = https://github.com/itspriddle/vim-jquery.git

@ -0,0 +1 @@
Subproject commit 61890d8e5ba8a873526fb91c6484aa445cc20b56

@ -0,0 +1 @@
Subproject commit 9ee760281ab6e8443ea9bb9ae484b0233b3f0e29

View File

@ -0,0 +1 @@
autocmd BufRead,BufNewFile *.js set ft=javascript syntax=jquery

View File

@ -16,5 +16,22 @@ hi! link rubyRailsARValidationMethod Title
hi! link rubyRailsMethod Title
hi! link MatchParen DiffText
hi! link CTagsModule Type
hi! link CTagsClass Type
hi! link CTagsMethod Identifier
hi! link javascriptFuncName Type
hi! link javascriptFunction Statement
hi! link javascriptThis Statement
hi! link javascriptParens Normal
hi! link jOperators javascriptStringD
hi! link jId Title
hi! link jClass Title
" Brighten the regular text
hi! Normal guifg=#93a1a1
hi! Constant guifg=#00ADCE
hi! link htmlLink Include
" Enforce the colors set here
au VimEnter * so ~/.vim/plugin/settings/solarized.vim

View File

@ -112,7 +112,9 @@ nnoremap <silent> <D-k> {
autocmd FileType ruby map <buffer> <D-j> ]m
autocmd FileType ruby map <buffer> <D-k> [m
autocmd FileType rspec map <buffer> <D-j> }
autocmd FileType rspec map <buffer> <D-k> {
autocmd FileType rspec map <buffer> <D-j> }
autocmd FileType javascript map <buffer> <D-k> {
autocmd FileType javascript map <buffer> <D-k> {
" Command-/ to toggle comments