Skip to content

Instantly share code, notes, and snippets.

@MateusTymoniuk
Last active September 8, 2023 08:32
Show Gist options
  • Save MateusTymoniuk/5f9beb290f0f6c897c728a66079bd3f4 to your computer and use it in GitHub Desktop.
Save MateusTymoniuk/5f9beb290f0f6c897c728a66079bd3f4 to your computer and use it in GitHub Desktop.
My ideavimrc
"" Source your .vimrc
"source ~/.vimrc
"" -- 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=8
"" set relative line numbers
set relativenumber
"" set current line number
set number
" Do incremental searching.
set incsearch
" Don't use Ex mode, use Q for formatting.
map Q gq
"" Map <leader>d to start debug
"map <leader>d <Action>(Debug)
"" Map \b to toggle the breakpoint on the current line
"map \b <Action>(ToggleLineBreakpoint)
" Find more examples here: https://jb.gg/share-ideavimrc
"" Personal
"" Do zz after a ctrl+d or ctrl+u
nnoremap <C-d> <C-d>zz
nnoremap <C-u> <C-u>zz
set hlsearch
set ignorecase smartcase
set showmode
set history=1000
let mapleader = ' '
" easy system clipboard copy/paste
noremap <leader>y "*y
noremap <leader>Y "*Y
noremap <leader>p "*p
noremap <leader>P "*P
nnoremap [<space> O<esc>j
nnoremap ]<space> o<esc>k
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"" Map [r]e[n]ame to the Reformat Code action
"map <leader>rn <Action>(ReformatCode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment