From a6f2c7752344d9cfb2ac911ae83aea9ea7cb090c Mon Sep 17 00:00:00 2001 From: martinlarssonftg Date: Tue, 21 May 2024 12:56:33 +0200 Subject: [PATCH] Add ideavimrc to .dotfiles --- home/.ideavimrc | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 home/.ideavimrc diff --git a/home/.ideavimrc b/home/.ideavimrc new file mode 100644 index 0000000..e8a96fb --- /dev/null +++ b/home/.ideavimrc @@ -0,0 +1,68 @@ +" .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 + + +"" -- 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=1 + +" Make VIM use the system clipboard +set clipboard+=unnamedplus + +" Do incremental searching. +set incsearch + +" If search string contains a capital letter it will be a case sensitive search, otherwise case insensitive. +set ignorecase +set smartcase + +" Don't use Ex mode, use Q for formatting. +map Q gq + +" Enable system clipboard +set clipboard = unnamedplus + +" Remap to zz +" Remap to zz +let mapleader = "\" +let maplocalleader = "\" + +nnoremap zz +nnoremap zz +nnoremap +nnoremap +nnoremap +nnoremap + +map to (GotoFile) +map tf (Find) +map ta (FindInPath) + +map dr (Debug) +map db (ToggleLineBreakpoint) +map s (Stop) + +map gcc (CommentByLineComment) +map gcb (CommentByBlockComment) +map ko (SwitchHeaderSource) + +map rn (RenameElement) +map gr (FindUsages) +map ca (ShowIntentionActions) +map (QuickJavaDoc) +map lc (RiderShowIncomingCalls) +map [d (GotoPreviousError) +map ]d (GotoNextError) +map ld (QuickImplementations) +map lt (QuickImplementations) +map li (ReSharperGotoImplementation) + +" Highlight copied text +Plug 'machakann/vim-highlightedyank' +" Commentary plugin +Plug 'tpope/vim-commentary' + +set surround \ No newline at end of file