" vim:ft=vim " .ideavimrc is a configuration file for IdeaVim plugin. It uses " 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 " 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 set number " show current line number set relativenumber " show relative line numbers " Don't use Ex mode, use Q for formatting. map Q gq " --- Enable IdeaVim plugins https://jb.gg/ideavim-plugins " Highlight copied text Plug 'machakann/vim-highlightedyank' " Commentary plugin Plug 'tpope/vim-commentary' Plug 'terryma/vim-multiple-cursors' " vim-multiple-cursors default mappings {{{ " Remap multiple-cursors shortcuts to match terryma/vim-multiple-cursors nmap NextWholeOccurrence xmap NextWholeOccurrence nmap g NextOccurrence xmap g NextOccurrence xmap SkipOccurrence xmap RemoveOccurrence " Note that the default and g shortcuts don't work on Mac due to dead keys. " is used to enter accented text e.g. ñ " Feel free to pick your own mappings that are not affected. I like to use nmap AllWholeOccurrences xmap AllWholeOccurrences nmap g AllOccurrences xmap g AllOccurrences " }}} "" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t map \r (ReformatCode)