Created
December 8, 2018 18:45
-
-
Save willowiscool/3ad3bf361faff85837bec33ea4eba414 to your computer and use it in GitHub Desktop.
My current 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
" Get the defaults that most users want. | |
source $VIMRUNTIME/defaults.vim | |
" Set colors be good | |
set termguicolors | |
colorscheme gruvbox | |
set background=dark | |
set cursorline | |
" Set search to highdark incomplete, case insensitive, highlight | |
set hls is ic | |
set number relativenumber | |
" Make wrapping a thing | |
set linebreak | |
set wrap | |
set textwidth=0 | |
set wrapmargin=0 | |
" Tabs! | |
set tabstop=2 | |
set shiftwidth=2 | |
filetype indent on | |
" Vim will show a list of scrollable command completions | |
set wildmenu | |
" Move visually and not by line | |
nnoremap j gj | |
nnoremap k gk | |
" Move up and down through splits | |
" TODO | |
" Set tab indenting | |
set listchars=tab:\|\ | |
set list | |
" From example stuff | |
if has("vms") | |
set nobackup " do not keep a backup file, use versions instead | |
else | |
set backup " keep a backup file (restore to previous version) | |
if has('persistent_undo') | |
set undofile " keep an undo file (undo changes after closing) | |
endif | |
endif | |
" airline stuff | |
let g:airline#extensions#tabline#left_sep = '' | |
let g:airline#extensions#tabline#left_alt_sep = '' | |
let g:airline_left_sep = '' | |
let g:airline_left_alt_sep = '' | |
let g:airline_right_sep = '' | |
let g:airline_right_alt_sep = '' | |
let g:airline_symbols = {} | |
let g:airline_symbols.branch = '' | |
let g:airline_symbols.readonly = '' | |
let g:airline_symbols.linenr = '' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment