Created
January 28, 2016 05:18
-
-
Save JeffreyWay/9b034ee90346fbd05180 to your computer and use it in GitHub Desktop.
Laracasts: Vim Mastery - Episode 3 .vimrc progress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
"-------------Search--------------" | |
set hlsearch | |
set incsearch | |
"-------------Mappings--------------" | |
"Make it easy to edit the Vimrc file. | |
nmap <Leader>ev :tabedit $MYVIMRC<cr> | |
"Add simple highlight removal. | |
nmap <Leader><space> :nohlsearch<cr> | |
"-------------Auto-Commands--------------" | |
"Automatically source the Vimrc file on save. | |
augroup autosourcing | |
autocmd! | |
autocmd BufWritePost .vimrc source % | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment