Skip to content

Instantly share code, notes, and snippets.

@ampvchen
Created October 12, 2016 20:50
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 ampvchen/9da5e23ac20806b6db3ac398caf153c9 to your computer and use it in GitHub Desktop.
Save ampvchen/9da5e23ac20806b6db3ac398caf153c9 to your computer and use it in GitHub Desktop.
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