Last active
January 10, 2024 17:37
-
-
Save roelandmoors/1e95d736bbb0bc5063268dcfae60b016 to your computer and use it in GitHub Desktop.
ideavim
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
" the same commands as the original .vimrc configuration. | |
" You can find a list of commands here: https://jb.gg/h38q75 | |
" Find more examples here: https://jb.gg/share-ideavimrc | |
let mapleader = " " | |
set clipboard+=unnamed | |
set sidescrolloff=6 | |
set scrolloff=6 | |
set ignorecase | |
set incsearch | |
set visualbell | |
set noerrorbells | |
" --- Enable IdeaVim plugins https://jb.gg/ideavim-plugins | |
Plug 'machakann/vim-highlightedyank' | |
Plug 'tpope/vim-commentary' | |
Plug 'preservim/nerdtree' | |
Plug 'tpope/vim-surround' | |
Plug 'terryma/vim-multiple-cursors' | |
set ideajoin | |
" Don't use Ex mode, use Q for formatting. | |
map Q gq | |
map H ^ | |
map L $ | |
" Save with ctrl s (also in insert mode and then leave insert mode) | |
map <C-s> :update<cr> | |
imap <C-s> <ESC>:update<cr> | |
map <leader>n :NERDTree<CR> | |
map <leader>f <Action>(ReformatCode) | |
map <leader>r <Action>(RenameElement) | |
map <leader>t <Action>(RiderUnitTestRunSolutionAction) | |
map <leader>d <Action>(Debug) | |
map <leader>b <Action>(BuildSolutionAction) | |
map <leader>s <Action>(SaveAll) \| <Action>(RiderDebuggerApplyEncChagnes) | |
map <leader><space> <Action>(SearchEverywhere) | |
nmap gi <Action>(GotoImplementation) | |
nmap gu <Action>(FindUsages) | |
" Remap multiple-cursors shortcuts to match terryma/vim-multiple-cursors | |
nmap <C-n> <Plug>NextWholeOccurrence | |
xmap <C-n> <Plug>NextWholeOccurrence | |
nmap g<C-n> <Plug>NextOccurrence | |
xmap g<C-n> <Plug>NextOccurrence | |
xmap <C-x> <Plug>SkipOccurrence | |
xmap <C-p> <Plug>RemoveOccurrence | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment