Created
June 2, 2017 03:10
-
-
Save T-Kuhn/9420ad22e6a6cfb7c6187237099d56cb to your computer and use it in GitHub Desktop.
_vsvimrc
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
" 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