mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-07 09:57:34 +00:00
Add some AngularJS support to Syntastic
Also clean up some formatting again
This commit is contained in:
parent
5f50659a35
commit
2f87769bc9
@ -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>,<>>,{,}
|
||||
|
@ -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"'
|
||||
\ ]
|
||||
|
Loading…
Reference in New Issue
Block a user