Skip to content

Instantly share code, notes, and snippets.

@phaalonso
Last active October 6, 2024 19:52
Show Gist options
  • Save phaalonso/1d9877475f5eb377a04e9d7e1da4c23c to your computer and use it in GitHub Desktop.
Save phaalonso/1d9877475f5eb377a04e9d7e1da4c23c to your computer and use it in GitHub Desktop.
IntelliJ - Idea VIM
let mapleader=" "
"set clipboard+=unnamed
set clipboard+=unnamedplus
set clipboard+=ideaput
nnoremap \e :e ~/.ideavimrc<CR>
nnoremap \r :action IdeaVim.ReloadVimRc.reload<CR>
nnoremap <leader>z :action ToggleDistractionFreeMode<CR>
nnoremap <g-d> :action GotoDeclaration<CR>
nnoremap <g-D> :action GotoTypeDeclaration<CR>
nnoremap <g-i> :action GotoImplementation<CR>
nnoremap <s-h> :action PreviousTab<CR>
nnoremap <s-l> :action NextTab<CR>
nnoremap <Leader>en :action EditSourceInNewWindow<CR>
nnoremap <Leader>q :action CloseContent<CR>
nmap <leader>i <action>(Generate)
nmap <leader>m <action>(Git.Menu)
nmap <leader>s <action>(QuickChangeScheme)
nmap <leader>/ <action>(ShowErrorDescription)
nmap <leader>e <action>(GotoNextError)
nnoremap <leader><leader> <C-Tab>
nnoremap <leader>d :action GotoTypeDeclaration<CR>
nnoremap <leader>D :action SafeDelete<CR>
nnoremap <leader>t :action Terminal.OpenInTerminal<CR>
nnoremap <leader>c :action CommentByLineComment<CR>
vnoremap <leader>c :action CommentByLineComment<CR>
nnoremap <leader>f :action GotoFile<CR>
vnoremap <leader>f :'<,'>action GotoFile<CR>
nnoremap <leader>r :action Refactorings.QuickListPopupAction<CR>
nnoremap <Leader>= :action ReformatCode<CR>
nnoremap <leader>o :action OptimizeImports<CR>
nnoremap <leader>ws :action MoveTabDown<CR>
nnoremap <leader>wv :action MoveTabRight<CR>
nnoremap <leader>wm :action MoveEditorToOppositeTabGroup<CR>
map <leader>B :action Git.Branches<CR>
map <leader>g :action Generate<CR>
map <leader>G :action VcsGroups<CR>
nnoremap <m-j> :action MethodDown<CR>
nnoremap <m-k> :action MethodUp<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gi :action GotoImplementation<CR>
" Extensions
set surround
"set multiple-cursors rever como funciona
set commentary
"set argtextobj
""" Common settings ---
set ideajoin
set nu
set relativenumber
set visualbell
"set noerrorbells
set idearefactormode=keep
set NERDTree
let g:NERDTreeMapActiveNode='l'
let g:NERDTreeMapJumpParent='h'
set which-key
set notimeout
set timeoutlen=5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment