cs4k2q
Last Updated: February 25, 2016
·
551
· vinchi777
D1b786d1a48d0982ae26ce8f3ba5992e

My .vimrc

vim
" 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
Say Thanks
Respond