Skip to content

Instantly share code, notes, and snippets.

@mpern
Last active March 1, 2021 11:07
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 mpern/039a568c131f9eb2f0f73948e4dfe38f to your computer and use it in GitHub Desktop.
Save mpern/039a568c131f9eb2f0f73948e4dfe38f to your computer and use it in GitHub Desktop.
Minimal .vimrc
set autoread " reload on external file changes
set backspace=indent,eol,start " backspace behaviour
set clipboard=unnamed,unnamedplus " enable clipboard
set encoding=utf8 " enable utf8 support
set hidden " hide buffers, don't close
set mouse=a " enable mouse support
set nowrap " disable wrapping
set number " show line numbers
set term=xterm-256color " terminal type
set wildmenu wildmode=longest:full,full " wildmode settings
filetype plugin indent on " enable filetype detection
set listchars=eol:¶,trail:•,tab:▸\ " whitespace characters
set scrolloff=999 " center cursor position vertically
set showbreak=¬\ " Wrapping character
set showmatch " show matching brackets
syntax on " enable syntax highlightning
set list
colorscheme desert " set colorscheme
hi Normal guibg=NONE ctermbg=NONE| " transparency fix
set laststatus=2
set ruler
set autoindent expandtab " autoindentation & tabbing
set shiftwidth=2 softtabstop=2 tabstop=2 " 1 tab = 2 spaces
set hlsearch ignorecase incsearch smartcase " search options
set nobackup noswapfile nowritebackup " disable backup/swap files
set undofile undodir=~/.vim/undo undolevels=9999 " undo options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment