Last active
January 29, 2017 05:28
-
-
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
This file contains hidden or 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
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