Skip to content

Instantly share code, notes, and snippets.

@stonegray
Last active September 29, 2017 15:57
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 stonegray/dfb1826ad7b5c8d3fb9b9db97e1a44b8 to your computer and use it in GitHub Desktop.
Save stonegray/dfb1826ad7b5c8d3fb9b9db97e1a44b8 to your computer and use it in GitHub Desktop.
Stone's ~/.vimrc v0.2
" Stone's vimrc v0.1
""""""""""""""""""""""""
" View changes
syntax on
set ruler
set visualbell
filetype indent plugin on
filetype off
" Just trust me on this one
imap kj <esc>
" security
set modelines=0
set nomodeline
" misc
set background=dark
set mouse=a
set number
set tabstop=4
set shiftwidth=4
set softtabstop=4
set textwidth=79
set noexpandtab
set autoindent
set fileformat=unix
"Improve cli completion
set wildmenu
set showcmd
" make search better
set hlsearch "highlight stuff
set ignorecase
set smartcase
" Faster terminal
set ttyfast
" Better persistent undo
set undofile
set undodir=$HOME/.vim/undo
" Ensure directory exists for persistent undo
:command! -nargs=1 BgExec execute ':silent !'.<q-args>.'&' | execute ':redraw!'
:BgExec mkdir $HOME/.vim/undo
set undolevels=5000
set undoreload=50000
" Better whitespace chars
set listchars+=space:␣
set listchars+=eol:¬
set listchars+=tab:··
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment