Skip to content

Instantly share code, notes, and snippets.

@scheckley
Last active July 19, 2023 14:17
Show Gist options
  • Save scheckley/1a5874371ac264f317b5ef03013a647d to your computer and use it in GitHub Desktop.
Save scheckley/1a5874371ac264f317b5ef03013a647d to your computer and use it in GitHub Desktop.
bare minimal vimrc for working on unfamiliar servers
set backspace=2 " backspace in insert mode works like normal editor
set shiftwidth=2 " indent by 2 spaces when auto-indenting
set softtabstop=2 " indent by 2 spaces when hitting tab
syntax on " syntax highlighting
filetype indent on " activates indenting for files
set autoindent " auto indenting
set number " line numbers
colorscheme desert " colorscheme desert (or retrobox for newer versions of neovim)
set background=dark " dark background for theme
set nobackup " get rid of anoying ~file
set clipboard+=unnamedplus " clipboard support
let &t_SI = "\e[6 q" " set bar cursor for insert mode
let &t_EI = "\e[2 q" " set block cursor for other modes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment