Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.vimrc.after - My VIM configs on top of Janus
" Customizations
if has("gui_macvim")
" Get rid of toolbar buttons
set go=egmrLi
let macvim_hig_shift_movement=1
endif
let g:solarized_termcolors=256
set t_Co=256
set background=dark
colorscheme solarized
set guifont=Anonymous\ Pro:h14
set cul
set selectmode=
" Control-\ = Wrap on/off
map <silent> <c-\> :set wrap! <cr>
" Removes trailing spaces
function TrimWhiteSpace()
%s/\s*$//
''
:endfunction
" Trim whitespaces from files on F2
map <F2> :call TrimWhiteSpace()<CR>
" Map F3 to redraw the screen (fix tmux screwup)
map <F3> :redraw!<CR>
" Eliminates the search highlight with space on normal mode
nmap <SPACE> <SPACE>:noh<CR>
" Ident settings
set cinoptions=:0,p0,t0
set cinwords=if,else,elsif,elif,while,do,for,switch,case,begin,rescue,ensure,try,except,finally,def,end,with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment