Last active
August 16, 2023 02:46
-
-
Save QidiLiu/940f0e204550ef0f2c3a2ecbdab7e85c to your computer and use it in GitHub Desktop.
My settings for 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
| " >> | |
| " >> My settings | |
| " >> | |
| " edit | |
| noremap h i | |
| noremap H I | |
| noremap T qx | |
| noremap t @x | |
| " move cursor | |
| noremap j h | |
| noremap J 6h | |
| noremap i k | |
| noremap I 6k | |
| noremap k j | |
| noremap K 6j | |
| noremap L 6l | |
| " find word without jumping to next | |
| noremap F * | |
| " show the defination | |
| noremap D <C-]> | |
| " save and quit | |
| noremap S :wq<CR> | |
| noremap <C-s> :w<CR> | |
| noremap Q :q<CR> | |
| " semicolon in the end | |
| inoremap ;; <esc>A;<esc> | |
| " set auto-indenting | |
| set autoindent | |
| set tabstop=4 | |
| set softtabstop=4 | |
| set shiftwidth=4 | |
| set expandtab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment