Skip to content

Instantly share code, notes, and snippets.

@fzero
Created July 16, 2014 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fzero/2b7592ae805661b39f08 to your computer and use it in GitHub Desktop.
Save fzero/2b7592ae805661b39f08 to your computer and use it in GitHub Desktop.
.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