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