Skip to content

Instantly share code, notes, and snippets.

@fzero
Last active Sep 26, 2015
Embed
What would you like to do?
My VIM customizations on top of Janus (https://github.com/carlhuda/janus) - ~/.vimrc.after
" 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