Add some AngularJS support to Syntastic

Also clean up some formatting again
This commit is contained in:
ViViDboarder 2013-08-08 09:19:27 -07:00
parent 5f50659a35
commit 2f87769bc9
2 changed files with 12 additions and 8 deletions

View File

@ -19,9 +19,6 @@ else
ru! indent/javascript.vim
endif
echo "Sourcing html indent"
" [-- local settings (must come before aborting the script) --]
setlocal indentexpr=HtmlIndentGetter(v:lnum)
setlocal indentkeys=o,O,*<Return>,<>>,{,}

View File

@ -123,9 +123,13 @@ set cursorline
" Syntax Hightlighting
syntax on
"Enable search highlighting
" Enable search highlighting
set hls
" Change Working Directory to that of the current file
cmap cwd lcd %:p:h
cmap cd. lcd %:p:h
" ********************************
" GUI SETTINGS
" *****************************
@ -223,10 +227,6 @@ nmap <silent> <leader>cs :nohlsearch<CR>
" Code fold
nmap <leader>cf ?{<CR>zf%<ESC>:nohlsearch<CR>
" Change Working Directory to that of the current file
cmap cwd lcd %:p:h
cmap cd. lcd %:p:h
" ********************************
" PLUGIN SETTINGS
" ********************************
@ -301,3 +301,10 @@ nnoremap <silent> <F6> :QFix<CR>
nmap <leader>a :Ack<Space>
nmap <leader>* :Ack<Space><c-r><c-W><CR>
" Syntastic settings
let g:syntastic_html_tidy_ignore_errors = [
\ 'proprietary attribute "ng-show"',
\ 'proprietary attribute "ng-controller"',
\ 'proprietary attribute "ng-repeat"',
\ 'proprietary attribute "ng-app"'
\ ]