Skip to content

Instantly share code, notes, and snippets.

@Nickztar
Last active August 4, 2025 11:50
Show Gist options
  • Select an option

  • Save Nickztar/52ecb167d5e02145ada1f4be6ac4c9f5 to your computer and use it in GitHub Desktop.

Select an option

Save Nickztar/52ecb167d5e02145ada1f4be6ac4c9f5 to your computer and use it in GitHub Desktop.
Ideavim
""" Map leader to space ---------------------
let mapleader=" "
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set textobj-entire
""" Common settings -------------------------
set showmode
set so=5
set incsearch
set nu
set relativenumber
set ignorecase
set clipboard+=unnamed
set clipboard+=ideaput
set ideamarks
set novisualbell
set timeoutlen=1000
set noerrorbells
""" Idea specific settings ------------------
set ideajoin
set idearefactormode=keep
""" Mappings --------------------------------
nmap <C-u> <C-u>zz
nmap <C-d> <C-d>zz
nmap <C-p> <Action>(GotoFile)
map <leader>r <Action>(RenameElement)
map gc <Action>(ToggleLineComment)
map gi <Action>(GotoImplementation)
map <leader>e <Action>(GotoNextError)
map <leader><leader> <Action>(ReSharperGotoNextErrorInSolution)
map <leader>w <Action>(NextOccurence)
""" Marks
nmap gm :delmarks a-zA-Z0-9<CR>
nnoremap , '
nnoremap gr :action FindUsages<CR>
nnoremap gc :action CommentByLineComment<CR>
vnoremap gc :action CommentByLineComment<CR>
vnoremap < <gv
vnoremap > >gv
command Wa :wa
command WA :wa
command wA :wa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment