Skip to content

Instantly share code, notes, and snippets.

@choyno
Created November 5, 2013 03:18
Show Gist options
  • Save choyno/7313325 to your computer and use it in GitHub Desktop.
Save choyno/7313325 to your computer and use it in GitHub Desktop.
" 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment