From 9cbbe7f9919db9df5e1c50446a85a58d61fcc98e Mon Sep 17 00:00:00 2001 From: lovelock Date: Tue, 4 Aug 2015 18:36:34 +0800 Subject: [PATCH] add Xuyuanp/git-nerdtree --- vimrc | 9 ++++++++- vimrc.bundles | 9 ++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index acf5ed9..02680f3 100644 --- a/vimrc +++ b/vimrc @@ -31,10 +31,11 @@ set noswapfile set autoread colorscheme seoul256 +"set background=dark set t_Co=256 " :W sudo saves the file -command W w !sudo tee % > /dev/null +"command W w !sudo tee % > /dev/null """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => VIM user interface @@ -464,6 +465,10 @@ function! AutoSetFileHead() call setline(1, "\#!/usr/bin/env ruby") endif + if &filetype == 'perl' + call setline(1, "\#!/usr/bin/env perl") + endif + normal G normal o normal o @@ -506,6 +511,8 @@ func! CompileRun() exec "!time ruby %" elseif &filetype == 'php' exec "!time php %" + elseif &filetype == 'perl' + exec "!time perl %" endif endfunc diff --git a/vimrc.bundles b/vimrc.bundles index 459ed77..b380c2b 100644 --- a/vimrc.bundles +++ b/vimrc.bundles @@ -159,6 +159,7 @@ let g:multi_cursor_quit_key='' " Open file under cursor when pressing gf (if the text under the cursor is a path) Bundle 'amix/open_file_under_cursor.vim' Bundle 'scrooloose/nerdtree' +Bundle 'Xuyuanp/git-nerdtree' " open NERDTree automatically when vim starts up if no files were specified autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif @@ -275,10 +276,10 @@ hi CtrlSpaceStatus guifg=#839496 guibg=#002b36 gui=reverse term=reverse cterm= Bundle 'junegunn/seoul256.vim' Bundle 'altercation/vim-colors-solarized' Bundle 'alem0lars/vim-colorscheme-darcula' -Bundle 'morhetz/gruvbox' -Bundle 'tomasr/molokai' +Bundle 'morhetz/gruvbox' +Bundle 'tomasr/molokai' Bundle 'sickill/vim-monokai' -Bundle 'vim-scripts/twilight' +Bundle 'vim-scripts/twilight' " history Bundle 'sjl/gundo.vim' @@ -287,6 +288,8 @@ nnoremap h :GundoToggle """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Language specific """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"############ Rust ################# +Bundle 'wting/rust.vim' "############ Python ############### Bundle 'kevinw/pyflakes-vim' let g:pyflakes_use_quickfix = 0