Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Last active November 18, 2016 16:46
Show Gist options
  • Save matthewjberger/16369fd415585f382a839ae16c453706 to your computer and use it in GitHub Desktop.
Save matthewjberger/16369fd415585f382a839ae16c453706 to your computer and use it in GitHub Desktop.
Visual Studio Vim config
" 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