Created
April 19, 2022 09:38
-
-
Save shanzi/cb1f1a6607199bc96fc13e51856f8c92 to your computer and use it in GitHub Desktop.
This file contains 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
"" -- Suggested options -- | |
" Show a few lines of context around the cursor. Note that this makes the | |
" text scroll if you mouse-click near the start or end of the window. | |
set scrolloff=5 | |
" Do incremental searching. | |
set incsearch | |
"" -- Plugins -- | |
set ideajoin | |
set surround | |
set multiple-cursors | |
set easymotion | |
set NERDTree | |
"" -- Key mappings -- | |
map <C-A> ^ | |
imap <C-A> <ESC>^i | |
map <C-E> $ | |
imap <C-E> <ESC>$a | |
" C-D to delete current | |
nmap <C-D> diw | |
imap <C-D> <ESC>ciw | |
imap <C-W> <ESC>ea | |
imap <C-B> <ESC>bi | |
nmap <C-T> :NERDTreeToggle<CR> | |
" Remap multi cursors | |
nmap <C-n> <Plug>NextWholeOccurrence | |
xmap <C-n> <Plug>NextWholeOccurrence | |
nmap g<C-n> <Plug>NextOccurrence | |
xmap g<C-n> <Plug>NextOccurrence | |
nmap <C-x> <Plug>SkipOccurrence | |
xmap <C-x> <Plug>SkipOccurrence | |
nmap <C-p> <Plug>RemoveOccurrence | |
xmap <C-p> <Plug>RemoveOccurrence |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment