Skip to content

Instantly share code, notes, and snippets.

Created January 28, 2016 05:18
  • Star 25 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Laracasts: Vim Mastery - Episode 3 .vimrc progress
syntax enable
colorscheme desert
"-------------General Settings--------------"
set backspace=indent,eol,start "Make backspace behave like every other editor.
let mapleader = ',' "The default leader is \, but a comma is much better.
set number "Let's activate line numbers.
set linespace=15 "Macvim-specific line-height.
set hlsearch
set incsearch
"Make it easy to edit the Vimrc file.
nmap <Leader>ev :tabedit $MYVIMRC<cr>
"Add simple highlight removal.
nmap <Leader><space> :nohlsearch<cr>
"Automatically source the Vimrc file on save.
augroup autosourcing
autocmd BufWritePost .vimrc source %
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment