Skip to content

Instantly share code, notes, and snippets.

@T-Kuhn
Created June 2, 2017 03:10
Show Gist options
  • Save T-Kuhn/9420ad22e6a6cfb7c6187237099d56cb to your computer and use it in GitHub Desktop.
Save T-Kuhn/9420ad22e6a6cfb7c6187237099d56cb to your computer and use it in GitHub Desktop.
_vsvimrc
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
" jj key is <Esc> setting
inoremap jj <Esc>
" go to next "(" with this
nnoremap , ?(<cr>
" go to next ")" with this
nnoremap . /(<cr>
" Don't use Ex mode, use Q for formatting
map Q gq
" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment