Skip to content

Instantly share code, notes, and snippets.

@QidiLiu
Last active August 16, 2023 02:46
Show Gist options
  • Select an option

  • Save QidiLiu/940f0e204550ef0f2c3a2ecbdab7e85c to your computer and use it in GitHub Desktop.

Select an option

Save QidiLiu/940f0e204550ef0f2c3a2ecbdab7e85c to your computer and use it in GitHub Desktop.
My settings for vim
" >>
" >> 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