Instantly share code, notes, and snippets.

@renanivo /.vimrc
Last active Sep 5, 2015

Embed
What would you like to do?
My .vimrc
" Import dotVIM (https://github.com/renanivo/dotvim)
source ~/.vim/vimrc
" Usability {{{
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set foldmethod=marker
set nofoldenable
"remove toolbar
set guioptions-=T
if !has("gui_running")
silent! colorscheme wombat256mod
else
set guifont=Monaco:h11
endif
set wildignore=.git,vendor,*.pyc
" }}}
" Plugin Configuration {{{
let g:makegreen_stay_on_file = 1
let g:Powerline_symbols = 'fancy'
let NERDTreeIgnore = ['\.pyc$']
let g:syntastic_javascript_jslint_conf = ""
let g:airline_symbols = {}
let g:airline_left_sep = ''
let g:airline_right_sep = ''
let g:airline_symbols.linenr = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.whitespace = 'Ξ'
let g:airline_symbols.space = ' '
" }}}
" Shortcuts {{{
nmap th :tabfirst<CR>
nmap tk :tabnext<CR>
nmap tj :tabprev<CR>
nmap tl :tablast<CR>
nmap td :tabclose<CR>
nmap te :tabnew<CR>
nmap fh :bfirst<CR>
nmap fk :bnext<CR>
nmap fj :bprevious<CR>
nmap fl :blast<CR>
nmap fd :bdelete<CR>
imap <C-Space> <C-X><C-O>
let g:UltiSnipsExpandTrigger="<c-k>"
let g:UltiSnipsJumpForwardTrigger="<c-k>"
let g:UltiSnipsJumpBackwardTrigger="<c-j>"
nmap <leader>t :CtrlP<CR>
nmap <leader>p :NERDTreeToggle<CR>
nmap <leader>c :TagbarToggle<CR>
map <C-z> :GundoToggle<CR>
" }}}
" Autocommands {{{
autocmd BufNewFile,BufRead *.py compiler nose
autocmd bufwritepost .vimrc source $MYVIMRC
" }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment