Skip to content

Instantly share code, notes, and snippets.

@Descalon
Last active March 28, 2023 11:52

Revisions

  1. Descalon revised this gist Mar 28, 2023. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions ideavimrc
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,14 @@
    let mapleader = " "

    "" plugins
    set easymotion
    set ideajoin
    set NERDTree

    "" plugins
    Plug 'terryma/vim-multiple-cursors'
    Plug 'tpope/vim-surround'
    Plug 'machakann/vim-highlightedyank'
    Plug 'tpope/vim-commentary'
    Plug 'easymotion/vim-easymotion'

    set clipboard+=unnamed
    set clipboard+=ideaput
    @@ -36,8 +37,11 @@ map <C-t> :NERDTree<CR>
    map <leader><CR> <Action>(ShowIntentionActions)
    map <F2> <Action>(RenameElement)
    map <leader>b <Action>(ToggleLineBreakpoint)
    map <leader>B <Action>(CompileDirty)
    map <leader>r <Action>(Run)
    map <leader>d <Action>(Debug)
    map <leader>R <Action>(ChooseRunConfiguration)
    map <leader>W <Action>(CloseEditor)
    map <leader>w <Action>(CloseAllEditorsButActive)
    map <leader>z <Action>(ToggleDistractionFreeMode)
    map <leader>p <Action>(QuickJavaDoc)
    @@ -46,4 +50,5 @@ map gj <Action>(Back)
    map gk <Action>(Forward)
    map gi <Action>(GotoImplementation)
    map gn <Action>(GotoClass)
    map gN <Action>(GotoFile)
    map gN <Action>(GotoFile)
    map gu <Action>(FindUsages)
  2. Descalon created this gist Nov 1, 2022.
    49 changes: 49 additions & 0 deletions ideavimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    let mapleader = " "

    "" plugins
    set easymotion
    set ideajoin
    set NERDTree

    Plug 'terryma/vim-multiple-cursors'
    Plug 'tpope/vim-surround'
    Plug 'machakann/vim-highlightedyank'

    set clipboard+=unnamed
    set clipboard+=ideaput

    set scrolloff=5
    set incsearch
    set number relativenumber
    set scrolloff=5
    set incsearch

    sethandler <c-j> a:vim
    sethandler <c-k> a:vim
    sethandler <c-t> a:vim

    nnoremap \e :e ~\\.ideavimrc<CR>
    map \r <Action>(IdeaVim.ReloadVimRc.reload)
    map \t <Action>(ActivateTerminalToolWindow)

    map <TAB> <Action>(NextTab)
    map <s-TAB> <Action>(PreviousTab)

    map <leader>f <Plug>(easymotion-s)
    map <leader>e <Plug>(easymotion-f)
    map <C-t> :NERDTree<CR>

    map <leader><CR> <Action>(ShowIntentionActions)
    map <F2> <Action>(RenameElement)
    map <leader>b <Action>(ToggleLineBreakpoint)
    map <leader>r <Action>(Run)
    map <leader>R <Action>(ChooseRunConfiguration)
    map <leader>w <Action>(CloseAllEditorsButActive)
    map <leader>z <Action>(ToggleDistractionFreeMode)
    map <leader>p <Action>(QuickJavaDoc)

    map gj <Action>(Back)
    map gk <Action>(Forward)
    map gi <Action>(GotoImplementation)
    map gn <Action>(GotoClass)
    map gN <Action>(GotoFile)