From 228ebc3b77c6d4d961299b96ec215b9d7747cbad Mon Sep 17 00:00:00 2001 From: Adam Eivy Date: Mon, 20 Mar 2017 09:16:30 -0700 Subject: [PATCH] vim config for typescript, vue, pug--and remove html/tidy errors --- homedir/.vimrc | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/homedir/.vimrc b/homedir/.vimrc index 98bf01f45..157bc55ee 100644 --- a/homedir/.vimrc +++ b/homedir/.vimrc @@ -1,8 +1,8 @@ -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +j""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Must Have """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" colorscheme solarized -syntax on +" syntax on " syntax highlighting on syntax enable let g:solarized_termtrans = 1 call togglebg#map("") @@ -23,7 +23,6 @@ set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " Keep Plugin commands between vundle#begin/end. -" plugin on GitHub repo " let Vundle manage Vundle Plugin 'VundleVim/Vundle.vim' " Plugin 'Valloric/YouCompleteMe' @@ -38,6 +37,7 @@ Plugin 'justinmk/vim-sneak' Plugin 'airblade/vim-gitgutter' Plugin 'tpope/vim-surround' Plugin 'dkprice/vim-easygrep' +Plugin 'editorconfig/editorconfig-vim' " visual undo list Plugin 'sjl/gundo.vim' " Plugin 'majutsushi/tagbar' @@ -51,7 +51,7 @@ Plugin 'digitaltoad/vim-pug' " Plugin 'elzr/vim-json' " Plugin 'SirVer/ultisnips' "Plugin 'sheerun/vim-polyglot' -" plugin from http://vim-scripts.org/vim/scripts.html +" plugins from http://vim-scripts.org/vim/scripts.html Plugin 'node.js' Plugin 'SuperTab' " Git plugin not hosted on GitHub @@ -64,6 +64,10 @@ Plugin 'SuperTab' " Install L9 and avoid a Naming conflict if you've already installed a " different version somewhere else. " Plugin 'ascenator/L9', {'name': 'newL9'} +" TypeScript +Plugin 'leafgarland/typescript-vim' +" Vue.js +Plugin 'posva/vim-vue' " All of your Plugins must be added before the following line call vundle#end() " required @@ -98,7 +102,6 @@ set nosol " leave my cursor where it was " Files/Backups """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set backup " make backup file -set backupdir=~/.vim/backup " where to put backup files set directory=~/.vim/temp " directory for temp files set makeef=error.err " When using make, where should it dump the file set sessionoptions+=globals " What should be saved during sessions being saved @@ -167,7 +170,8 @@ set smartcase " if there are caps, go case-sensitive set completeopt=menu,longest,preview " improve the way autocomplete works set cursorcolumn " show the current column set cursorline -hi CursorLine term=underline ctermbg=008 guibg=#493a35 +" hi CursorLine term=underline ctermbg=008 guibg=#493a35 + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Folding " Enable folding, but by default make it act like folding is @@ -249,13 +253,9 @@ au FileType c set omnifunc=ccomplete#Complete " if you swapped C-y and C-e, and set them to 2, it would " remove any overlap between pages """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -nnoremap 3 " Make overlap 3 extra on control-f nnoremap 3 " Make overlap 3 extra on control-b " Yank text to the OS X clipboard -" Which register to use for yanked text. -" unnamed - use the operating system clipboard. -set clipboard=unnamed noremap y "*y noremap yy "*Y @@ -280,15 +280,21 @@ set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* +let g:syntastic_html_tidy_quiet_messages = { "level": "warnings" } +let g:syntastic_html_tidy_ignore_errors = [ '