Skip to content

Instantly share code, notes, and snippets.

@icyflame
Last active January 29, 2017 05:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icyflame/2411178c028a074f47ca6e86623334cf to your computer and use it in GitHub Desktop.
Save icyflame/2411178c028a074f47ca6e86623334cf to your computer and use it in GitHub Desktop.
the vimrc to roll with when you are thrust onto a new machine with vanilla vim
set mouse=a
set expandtab
set shiftwidth=2
set softtabstop=2
set tw=80
syntax on
filetype plugin on
filetype indent plugin on
set incsearch
set hlsearch
set ignorecase
" remap leader to , character
let g:mapleader=","
" the write shortcut
nmap <leader>w :w<cr>
nmap <leader>W :w<cr>
" indent the whole file
nmap <leader>i gg=G``<cr>
nmap <leader>z :w<cr>ZZ
nmap <leader>Z :w<cr>ZZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment