diff --git a/.vimrc b/.vimrc index 46c831b..213037d 100644 --- a/.vimrc +++ b/.vimrc @@ -21,6 +21,13 @@ let mapleader="," vnoremap < >gv +"brace autocompletion +inoremap { {} +inoremap { {}O +inoremap {{ { +inoremap {} {} + + "Sane window management map h map j @@ -30,6 +37,11 @@ map l map n :tabprevious map m :tabnext +"CTRL-N to open Nerd Tree +map :NERDTreeToggle +"Close vim when NERDTree is the only window open +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif + vnoremap s :sort set incsearch @@ -44,17 +56,29 @@ Bundle 'scrooloose/nerdtree' " My Bundles here: " " original repos on github +Bundle 'scrooloose/syntastic' Bundle 'tpope/vim-fugitive' Bundle 'Lokaltog/vim-easymotion' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'tpope/vim-rails.git' Bundle 'https://github.com/fholgado/minibufexpl.vim' +Bundle 'evanmiller/nginx-vim-syntax' -Bundle 'https://github.com/Lokaltog/vim-powerline' +Bundle "pangloss/vim-javascript" + +Bundle 'https://github.com/Lokaltog/powerline' +set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim set laststatus=2 Bundle 'https://github.com/kien/ctrlp.vim' let g:ctrlp_max_height = 30 +set wildignore+=*node_modules* +let g:ctrlp_custom_ignore = { + \ 'dir': '\v[\/]\.(git|hg|svn)$', + \ 'file': '\v\.(exe|so|dll)$', + \ 'link': 'some_bad_symbolic_links', + \ } + set wildignore+=*.pyc set wildignore+=*_build/*