Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@renanivo
Last active September 5, 2015 01:25
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save renanivo/415001 to your computer and use it in GitHub Desktop.
Save renanivo/415001 to your computer and use it in GitHub Desktop.
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