Skip to content

Instantly share code, notes, and snippets.

@rafaeldelboni
Last active November 25, 2021 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaeldelboni/48c73bbdf43cb271ac04abdff45cda55 to your computer and use it in GitHub Desktop.
Save rafaeldelboni/48c73bbdf43cb271ac04abdff45cda55 to your computer and use it in GitHub Desktop.
.ideavimrc
set clipboard+=unnamed
set ignorecase
set smartcase
set visualbell
set noerrorbells
" IdeaVim plugins
set NERDTree
set surround
set commentary
set multiple-cursors
" leaders
let mapleader = "\<space>" " Use space as leader key
let maplocalleader = "," " Use , as local leader key
" lsp
nnoremap <Leader>li :action GotoImplementation<CR>
nnoremap <Leader>lr :action FindUsages<CR>
nnoremap <Leader>lf :action AutoIndentLines<CR>
nnoremap <Leader>ln :action RenameElement<CR>
" nerdtree
map <leader>tt :NERDTreeToggle<CR>
map <leader>tr :NERDTreeFind<CR>
" easy window navigation
nnoremap <c-l> <c-w>l
nnoremap <c-j> <c-w>j
nnoremap <c-h> <c-w>h
nnoremap <c-k> <c-w>k
" fuzzyfinder
nnoremap <leader>ff :action SearchEverywhere<cr>
" comment
nnoremap <leader>c<space> :action CommentByLineComment<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment