Skip to content

Instantly share code, notes, and snippets.

@CallumHoward
Created October 8, 2021 00:52
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 CallumHoward/6b14e03f2bbbcc6f902bcf0120b8e008 to your computer and use it in GitHub Desktop.
Save CallumHoward/6b14e03f2bbbcc6f902bcf0120b8e008 to your computer and use it in GitHub Desktop.
Basic Vim configuration, place in home directory
filetype plugin indent on " Enabling filetype specific settings
syntax on
imap kj <Esc>
set number " Line numbers
set autoindent " Minimal automatic indenting for any filetype
set backspace=indent,eol,start " Proper backspace behavior
set incsearch " Incremental search highlighting
set wildmenu " Vim command line mode autocompletion
set mouse=a " Enable mouse
set clipboard+=unnamedplus " Use system clipboard for yank and paste
set undofile " Undo persists after closing file
set nobackup " Don't create hidden files everywhere
set expandtab " Expand tabs to spaces
set shiftwidth=4 " Spaces to shift when re-indenting
set tabstop=4 " Number of spaces to insert when tab is pressed
set softtabstop=4 " Backspace deletes indent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment