Skip to content

Instantly share code, notes, and snippets.

@katrinafyi
Created July 30, 2019 07:43
Show Gist options
  • Save katrinafyi/7713adeb24d3146c0a4f04bd33d21d9b to your computer and use it in GitHub Desktop.
Save katrinafyi/7713adeb24d3146c0a4f04bd33d21d9b to your computer and use it in GitHub Desktop.
" Neil's (minimal) vimrc
" Copy this file to your home directory and rename it `.vimrc` (no file
" extension). Feel free to look up what any of the lines mean, and/or add
" extra bits.
" AESTHETIC THINGS
" set vim to use colours more friendly with putty's dark background
set background=dark
" fancy colourscheme in colour
"color desert
" line numbers
set number
" prevent vim from highlighting things after you've searched them
set nohlsearch
" INDENTATION THINGS
set smarttab
set expandtab
set softtabstop=4
set shiftwidth=4
set tabstop=4
set smartindent
set cindent
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
" LINE LENGTH BAR
set colorcolumn=80
highlight ColorColumn ctermbg=12
set ruler
set showcmd
" MOUSE INTERACTION
" (uncomment this if you want to use the mouse in vim)
" set mouse=a
"
set backup
set backupdir=~/.backup//
set writebackup
set backupcopy=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment