Skip to content

Commit

Permalink
fix javascriptlint vim issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Yodi aditya committed Aug 28, 2011
1 parent 99138df commit 43a8084
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions .vim/bundle/delimitMate
Submodule delimitMate added at 39b829
1 change: 1 addition & 0 deletions .vim/bundle/pyflakes-vim
Submodule pyflakes-vim added at fbe574
1 change: 0 additions & 1 deletion .vim/bundle/supertab
Submodule supertab deleted from 80ec65
16 changes: 14 additions & 2 deletions .vimrc
Expand Up @@ -23,6 +23,7 @@ Bundle 'sukima/xmledit'
Bundle 'vim-scripts/closetag.vim' Bundle 'vim-scripts/closetag.vim'
Bundle 'mhz/vim-matchit.git' Bundle 'mhz/vim-matchit.git'
Bundle 'vim-scripts/tComment' Bundle 'vim-scripts/tComment'
Bundle 'Raimondi/delimitMate'


"Files manager "Files manager
Bundle 'majutsushi/tagbar' Bundle 'majutsushi/tagbar'
Expand Down Expand Up @@ -55,6 +56,9 @@ Bundle 'joestelmach/javaScriptLint.vim'
" Syntax checking " Syntax checking
Bundle 'scrooloose/syntastic' Bundle 'scrooloose/syntastic'


" Python
Bundle 'kevinw/pyflakes-vim'

filetype plugin indent on " required! filetype plugin indent on " required!


" "
Expand Down Expand Up @@ -327,7 +331,7 @@ nnoremap E w:<CR>:!python % <CR>
nnoremap N w:<CR>:!node %<CR> nnoremap N w:<CR>:!node %<CR>
" Execute javascriptLint vim plugin using <Shift> + j : " Execute javascriptLint vim plugin using <Shift> + j :
nnoremap J w:<CR>:JavaScriptLint <ENTER><CR> nnoremap J w:<CR>:JavaScriptLintExec <ENTER><CR>
" Set autocomplete form " Set autocomplete form
set completeopt=menuone,longest,preview set completeopt=menuone,longest,preview
Expand Down Expand Up @@ -428,6 +432,9 @@ endfunction
" http://stackoverflow.com/questions/6624043/how-to-open-or-close-nerdtree-and-tagbar-with-leader " http://stackoverflow.com/questions/6624043/how-to-open-or-close-nerdtree-and-tagbar-with-leader
nmap <F8> :call ToggleNERDTreeAndTagbar()<CR> nmap <F8> :call ToggleNERDTreeAndTagbar()<CR>
let g:tagbar_usearrows = 1
nnoremap <leader>l :TagbarToggle<CR>


""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" FuzzFinder Shorcuts. Using F2 for opening FuzzyFinderTextMate " FuzzFinder Shorcuts. Using F2 for opening FuzzyFinderTextMate
Expand Down Expand Up @@ -516,11 +523,16 @@ let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
"autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete "autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::' let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'



if has("gui_running") if has("gui_running")
highlight SpellBad term=underline gui=undercurl guisp=Orange highlight SpellBad term=underline gui=undercurl guisp=Orange
endif endif


" Enable autoclose tags only for html
"http://mirnazim.org/writings/vim-plugins-i-use/
autocmd FileType html,htmldjango,jinjahtml,eruby,mako let b:closetag_html_style=1
autocmd FileType html,xhtml,xml,htmldjango,jinjahtml,eruby,mako source ~/.vim/bundle/closetag/plugin/closetag.vim


" http://stackoverflow.com/questions/1687252/with-vim-use-both-snipmate-and-pydiction-together-share-the-tab-key " " http://stackoverflow.com/questions/1687252/with-vim-use-both-snipmate-and-pydiction-together-share-the-tab-key "
" Change share keys between pydiction and snipmate " Change share keys between pydiction and snipmate
" "
Expand Down
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -82,6 +82,13 @@ This is powerfull Javascript syntax checker with quickfix.


Folow this link for installation guide : http://cisight.com/auto-checking-errors-for-javascript-in-vim/ Folow this link for installation guide : http://cisight.com/auto-checking-errors-for-javascript-in-vim/


Also add this into .vim/bundle/javaScriptLint.vim/plugin/javaScriptLint.vim :


" set up commands
command! JavaScriptLintExec call JavascriptLint()
command! JavaScriptLintClear call s:ClearCursorLineColor()



Usage Usage
------ ------
Expand Down

0 comments on commit 43a8084

Please sign in to comment.