Created
June 27, 2022 02:48
-
-
Save imekachi/0661bf2afe027046e06fa05553fbe011 to your computer and use it in GitHub Desktop.
Ideavim config and key mapping to make multi cursor work like default keymaps
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
set number relativenumber | |
set multiple-cursors | |
set easymotion | |
set surround | |
set sneak | |
set ideajoin | |
set ReplaceWithRegister | |
set commentary | |
" Remap multiple-cursors shortcuts to match terryma/vim-multiple-cursors | |
nmap <C-j> <Plug>NextWholeOccurrence | |
xmap <C-j> <Plug>NextWholeOccurrence | |
nmap g<C-j> <Plug>NextOccurrence | |
xmap g<C-j> <Plug>NextOccurrence | |
nmap <C-x> <Plug>SkipOccurrence | |
xmap <C-x> <Plug>SkipOccurrence | |
nmap <C-p> <Plug>RemoveOccurrence | |
xmap <C-p> <Plug>RemoveOccurrence | |
" Note that the default <A-n> and g<A-n> shortcuts don't work on Mac due to dead keys. | |
" <A-n> is used to enter accented text e.g. ñ | |
nmap <S-C-j> <Plug>AllWholeOccurrences | |
xmap <S-C-j> <Plug>AllWholeOccurrences | |
nmap g<S-C-j> <Plug>AllOccurrences | |
xmap g<S-C-j> <Plug>AllOccurrences | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment