Last active
September 26, 2015 15:38
-
-
Save fzero/1120239 to your computer and use it in GitHub Desktop.
My VIM customizations on top of Janus (https://github.com/carlhuda/janus) - ~/.vimrc.after
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 | |
" Sets default colorscheme to Solarized and configures 256-color terminal. | |
set t_Co=256 | |
let g:solarized_termcolors=256 | |
set background=dark | |
" colorscheme solarized | |
" I'm giving railscasts colorscheme a go | |
colorscheme railscasts | |
" I like the Anonymous font | |
" http://www.ms-studio.com/FontSales/anonymous.html | |
set guifont=Anonymous\ Pro:h14 | |
" Highlights current line | |
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