Skip to content

Instantly share code, notes, and snippets.

@curiousyogurt
Created October 11, 2019 18:40
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 curiousyogurt/b829de2680029cd5c3af2c29f51e94c5 to your computer and use it in GitHub Desktop.
Save curiousyogurt/b829de2680029cd5c3af2c29f51e94c5 to your computer and use it in GitHub Desktop.
A sane, very minimal .vimrc
filetype plugin indent on " filetype detection and settings
syntax on " syntax highlighting
silent! runtime macros/matchit.vim " matchit comes with Vim
set nocompatible " not strictly necessary but useful in some scenarios
set backspace=indent,eol,start " let the backspace key work "normally"
set hidden " hide unsaved buffers
set incsearch " incremental search rules
set laststatus=2 " not strictly necessary but good for consistency
set ruler " shows line number in the status line
set switchbuf=useopen,usetab " better behavior for the quickfix window and :sb
set tags=./tags;/,tags;/ " search tags files efficiently
set wildmenu " better command line completion, shows a list of matches
nnoremap gb :buffers<CR>:sb<Space> " quick buffer navigation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment