Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix javascriptlint vim issue

  • Loading branch information...
commit 43a80847dc62993bf354b32947ae2c4fc6d131bd 1 parent 99138df
@yodiaditya yodiaditya authored
1  .vim/bundle/delimitMate
@@ -0,0 +1 @@
+Subproject commit 39b8298390a9171c796df077ad3c5f3c0f111c56
1  .vim/bundle/pyflakes-vim
@@ -0,0 +1 @@
+Subproject commit fbe5743e55d18bd496a64c0340e7a504864343b4
1  .vim/bundle/supertab
@@ -1 +0,0 @@
-Subproject commit 80ec6539e4139a2e0281a0f1e36d5038d55ad980
View
16 .vimrc
@@ -23,6 +23,7 @@ Bundle 'sukima/xmledit'
Bundle 'vim-scripts/closetag.vim'
Bundle 'mhz/vim-matchit.git'
Bundle 'vim-scripts/tComment'
+Bundle 'Raimondi/delimitMate'
"Files manager
Bundle 'majutsushi/tagbar'
@@ -55,6 +56,9 @@ Bundle 'joestelmach/javaScriptLint.vim'
" Syntax checking
Bundle 'scrooloose/syntastic'
+" Python
+Bundle 'kevinw/pyflakes-vim'
+
filetype plugin indent on " required!
"
@@ -327,7 +331,7 @@ nnoremap E w:<CR>:!python % <CR>
nnoremap N w:<CR>:!node %<CR>
" 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 completeopt=menuone,longest,preview
@@ -428,6 +432,9 @@ endfunction
" http://stackoverflow.com/questions/6624043/how-to-open-or-close-nerdtree-and-tagbar-with-leader
nmap <F8> :call ToggleNERDTreeAndTagbar()<CR>
+let g:tagbar_usearrows = 1
+nnoremap <leader>l :TagbarToggle<CR>
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" FuzzFinder Shorcuts. Using F2 for opening FuzzyFinderTextMate
@@ -516,11 +523,16 @@ let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
"autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
-
if has("gui_running")
highlight SpellBad term=underline gui=undercurl guisp=Orange
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 "
" Change share keys between pydiction and snipmate
"
View
7 README.md
@@ -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/
+Also add this into .vim/bundle/javaScriptLint.vim/plugin/javaScriptLint.vim :
+
+
+" set up commands
+command! JavaScriptLintExec call JavascriptLint()
+command! JavaScriptLintClear call s:ClearCursorLineColor()
+
Usage
------
Please sign in to comment.
Something went wrong with that request. Please try again.