Last active
November 18, 2016 16:46
-
-
Save matthewjberger/16369fd415585f382a839ae16c453706 to your computer and use it in GitHub Desktop.
Visual Studio Vim config
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 the leader key to the spacebar | |
let mapleader = "\<SPACE>" | |
" Save the file | |
nnoremap <leader>fs :w<CR> | |
" Save all open files | |
nnoremap <leader>fS :w<CR> | |
" Jump to far left or right of line | |
noremap H ^ | |
noremap L $ | |
" Move to last non-blank character of line | |
vnoremap L g_ | |
" Pressing jk quickly will exit insert or visual mode | |
inoremap jk <ESC> | |
vnoremap jk <ESC> | |
" Select line and ignore indentation | |
nnoremap vv ^vg_ | |
" Remap yank register to " | |
nnoremap "" "0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment