Skip to content

Instantly share code, notes, and snippets.

@mledoze
Created September 13, 2019 08:00
Show Gist options
  • Save mledoze/f3ab13e6f67cc64b6b8cafe02fae06cc to your computer and use it in GitHub Desktop.
Save mledoze/f3ab13e6f67cc64b6b8cafe02fae06cc to your computer and use it in GitHub Desktop.
set ai " set auto-indenting on for programming
set showmatch " automatically show matching brackets. works like it does in bbedit.
set vb " turn on the "visual bell" - which is much quieter than the "audio blink"
set ruler " show the cursor position all the time
set laststatus=2 " make the last line where the status is two lines deep so you can see status always
set backspace=indent,eol,start " make that backspace key work the way it should
set nocompatible " vi compatible is LAME
set background=dark " Use colours that work well on a dark background (Console is usually black)
set showmode " show the current mode
set clipboard=unnamed " set clipboard to unnamed to access the system clipboard under windows
syntax on " turn syntax highlighting on by default
set paste
set wildmenu " Enhance command-line completion
set gdefault " Add the g flag to search/replace by default
set hlsearch " Highlight searches
set ignorecase " Ignore case of searches
set incsearch " Highlight dynamically as pattern is typed
set noerrorbells " Disable error bells
set modeline " Respect modeline in files
set modelines=4
set title " Show the filename in the window titlebar
set tabstop=4 " The width of a TAB is set to 4. Still it is a
" \t. It is just that Vim will interpret it to
" be having a width of 4.
set shiftwidth=4 " Indents will have a width of 4
set softtabstop=4 " Sets the number of columns for a TAB
set expandtab " Expand TABs to spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment