My .vimrc
" PLUGINS
" vim-rails
" grep.vim
" nerdcommenter
" nerdtree
" snipmate.vim
" vim-fugitive
" vim-fuzzyfinder-pathogen
" vim-ragtag
" vim-surround
" xmledit
call pathogen#infect()
filetype on " Enable filetype detection
filetype plugin indent on
filetype plugin on
syntax enable
syntax on
set t_Co=256
" turn on language specific syntax highlighting
"
set laststatus=2
set statusline=%#Conceal#\ %{GitBranchInfoTokens()[0]}\ %#StatusLine# "git branch
set statusline+=%f%m%r%h "file path
set statusline+=[%{strlen(&fenc)?&fenc:'none'},%{&ff}]%h%m%r%y%=%c,%l/%L\ %P "file type and row, col
nmap 9i :NERDTreeToggle<CR>
imap jj <esc>
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_
map gr gT
set pastetoggle=<F2>
nnoremap <silent> dt :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
" Higlight Trailing Whight Space
set listchars=tab:\ \ ,trail:~,extends:>
:set list
:set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
let g:ragtag_global_maps = 1
" save folds
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
nmap <C-T> :FuzzyFinderTextMate<CR>
"#ejs
au BufNewFile,BufRead *.ejs set filetype=html
Written by Jude
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#