Skip to content

Commit

Permalink
add Xuyuanp/git-nerdtree
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelock committed Aug 4, 2015
1 parent 0ddc58e commit 9cbbe7f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 8 additions & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -506,6 +511,8 @@ func! CompileRun()
exec "!time ruby %"
elseif &filetype == 'php'
exec "!time php %"
elseif &filetype == 'perl'
exec "!time perl %"
endif
endfunc

Expand Down
9 changes: 6 additions & 3 deletions vimrc.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ let g:multi_cursor_quit_key='<Esc>'
" 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
Expand Down Expand Up @@ -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'
Expand All @@ -287,6 +288,8 @@ nnoremap <leader>h :GundoToggle<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Language specific
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"############ Rust #################
Bundle 'wting/rust.vim'
"############ Python ###############
Bundle 'kevinw/pyflakes-vim'
let g:pyflakes_use_quickfix = 0
Expand Down

0 comments on commit 9cbbe7f

Please sign in to comment.