Skip to content

Instantly share code, notes, and snippets.

@davidpeach
Created February 9, 2016 00:52
Show Gist options
  • Save davidpeach/44774df67615ad48138b to your computer and use it in GitHub Desktop.
Save davidpeach/44774df67615ad48138b to your computer and use it in GitHub Desktop.
My .vimrc file - early stages,
syntax enable
colorscheme desert
set backspace=indent,eol,start "Make backspace act like text editors
let mapleader = ',' "Make default leader key be comma
set number "Show line numbers
"------------- Mappings -------------"
" Make it easy to edit .vimrc file.
nmap <Leader>ev :tabedit $MYVIMRC<cr>
" Add simple hightlight removal
nmap <Leader><space> :nohlsearch<cr>
"------------- Searching -------------"
set hlsearch
set incsearch
"-------------- Auto Commands --------"
" Source the .vimrc file each time I save it.
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