Created
July 16, 2014 03:41
-
-
Save fzero/2b7592ae805661b39f08 to your computer and use it in GitHub Desktop.
.vimrc.after - My VIM configs on top of Janus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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