From 2f87769bc9ee49520e675027ea48c29e843bea01 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 8 Aug 2013 09:19:27 -0700 Subject: [PATCH] Add some AngularJS support to Syntastic Also clean up some formatting again --- vim/dot_vim/indent/html.vim | 3 --- vim/dot_vimrc | 17 ++++++++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/vim/dot_vim/indent/html.vim b/vim/dot_vim/indent/html.vim index ada5cc3..68ce107 100644 --- a/vim/dot_vim/indent/html.vim +++ b/vim/dot_vim/indent/html.vim @@ -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,*,<>>,{,} diff --git a/vim/dot_vimrc b/vim/dot_vimrc index 69b5181..75fe992 100644 --- a/vim/dot_vimrc +++ b/vim/dot_vimrc @@ -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 cs :nohlsearch " Code fold nmap cf ?{zf%:nohlsearch -" 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 :QFix nmap a :Ack nmap * :Ack +" 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"' +\ ]