Skip to content

Instantly share code, notes, and snippets.

@ampvchen
Created Oct 12, 2016
Embed
What would you like to do?
vimrc
" .vimrc.before
let g:airline_powerline_fonts = 1
" .vimrc.after
" Strip trailing whitespace
function! <SID>StringTrailingWhitespaces()
" Preparation: save last search, and cursor positoin
let _s=@/
let l = line(".")
let c = col(".")
" Do the business:
%s/\s\+$//e
" Clean up: restore previous search history, and cursor position
" let @/=_s
call cursor(l,c)
endfunction
autocmd BufWritePre * :call <SID>StringTrailingWhitespaces()
set relativenumber
" .gvimrc.after
set guifont=Source\ Code\ Pro\ for\ Powerline:h12
let base16colorspace=256 " Access colors present in 256 colorspace
let g:airline_theme='base16'
colorscheme base16-flat
set linespace=3
set guioptions-=r " remove right-hand scrollbar
set guioptions-=L " remove left-hand scrollbar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment