From 256eb7d28362d242a321fbd1b5d64139366cb250 Mon Sep 17 00:00:00 2001 From: taylor Date: Sat, 17 Dec 2016 19:54:18 +0100 Subject: [PATCH] Add some more Plugins --- .vimrc | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index a05c7df..9af190b 100644 --- a/.vimrc +++ b/.vimrc @@ -26,8 +26,22 @@ Plugin 'scrooloose/nerdcommenter' "Plugin 'myusuf3/numbers.vim' Plugin 'Shougo/neocomplete.vim' Plugin 'easymotion/vim-easymotion' -Plugin 'Emmet.vim' Plugin 'bling/vim-airline' +Plugin 'tpope/vim-ragtag' + +" html / templates +Plugin 'mattn/emmet-vim', { 'for': 'html' } " emmet support for vim - easily create markdup wth CSS-like syntax +Plugin 'gregsexton/MatchTag', { 'for': 'html' } " match tags in html, similar to paren support +Plugin 'othree/html5.vim', { 'for': 'html' } " html5 support + +" JavaScript +Plugin 'gavocanov/vim-js-indent', { 'for': 'javascript' } " JavaScript indent support +Plugin 'moll/vim-node', { 'for': 'javascript' } " node support +Plugin 'othree/yajs.vim', { 'for': 'javascript' } " JavaScript syntax plugin +Plugin 'othree/es.next.syntax.vim', { 'for': 'javascript' } " ES6 and beyond syntax + +" Go +Plugin 'fatih/vim-go', { 'for': 'go' } " go support " All of your Plugins must be added before the following line call vundle#end() " required @@ -50,6 +64,7 @@ set number set autoread set history=1000 +set paste " make comments and HTML attributes italic highlight Comment cterm=italic @@ -86,6 +101,8 @@ if has("autocmd") \| exe "normal! g'\"" | endif endif +let NERDTreeShowHidden=1 + " M A P P I N G S let mapleader = "," @@ -93,4 +110,5 @@ let mapleader = "," nmap k :NERDTreeToggle " expand to the path of the file in the current buffer nmap y :NERDTreeFind - +" Allow saving of files as sudo when I forgot to start vim using sudo. +cmap w!! w !sudo tee > /dev/null %