Last active
January 20, 2026 02:31
-
-
Save ilovejs/c232f4d207633cfc9f0198a5b64ad4f8 to your computer and use it in GitHub Desktop.
goland vim plugin settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Docs https://github.com/JetBrains/ideavim#get-early-access | |
| " Make sure to click reload on the right to take into effect | |
| " Need to install more plugins as listed here | |
| " https://plugins.jetbrains.com/bundles/7-ideavim-bundle | |
| """ Common settings | |
| """ https://github.com/JetBrains/ideavim/wiki/%22set%22-commands | |
| " Map leader can be space or , | |
| let mapleader=" " | |
| """ Plugins | |
| set commentary | |
| set multiple-cursors | |
| set surround | |
| set textobj-entire | |
| set ReplaceWithRegister | |
| set argtextobj | |
| let g:argtextobj_pairs="[:],(:),<:>" | |
| set showmode | |
| " 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=5 | |
| " incremental searching | |
| set incsearch | |
| "print the line number in front of each line | |
| set nu | |
| "set relativenumber | |
| set ideajoin | |
| "refactoring mode | |
| set idearefactormode=keep | |
| set ideamarks | |
| "set timeout | |
| "https://github.com/TheBlob42/idea-which-key | |
| set timeoutlen=5000 | |
| "https://plugins.jetbrains.com/plugin/9615-ideavimextension | |
| set keep-english-in-normal | |
| "Must install IdeaVim-EasyMotion plugin after installed ideavim | |
| "https://github.com/AlexPl292/IdeaVim-EasyMotion | |
| set easymotion | |
| " space f | |
| map <leader>f <Plug>(easymotion-s) | |
| " space e | |
| map <leader>e <Plug>(easymotion-f) | |
| "rename | |
| map <leader>r <Action>(RenameElement) | |
| "debug" | |
| map <leader>b <Action>(ToggleLineBreakpoint) | |
| map <leader>d <Action>(Debug) | |
| map <leader>c <Action>(Stop) | |
| "distraction free" | |
| map <leader>z <Action>(ToggleDistractionFreeMode) | |
| "select file like ctrl-shift-n, but when u turn on one-click preview | |
| "it is faster" | |
| map <leader>g <Action>(SelectInProjectView) | |
| "git blame" | |
| map <leader>a <Action>(Annotate) | |
| "file history" | |
| map <leader>h <Action>(Vcs.ShowTabbedFileHistory) | |
| "shift space" | |
| map <S-Space> <Action>(GotoNextError) | |
| "file structure" | |
| map <leader>o <Action>(FileStructurePopup) | |
| " Leave insertion mode by quickly type jk" | |
| "https://stackoverflow.com/questions/9221769/whats-the-meaning-of-inoremap-in-vimrc | |
| "inoremap jk <ESC> | |
| "inoremap jj <Esc> | |
| " resolve shortcut conflicts, you can view them in vim status icon - settings" | |
| sethandler <C-2> a:ide | |
| sethandler <C-S-2> a:vim | |
| sethandler <C-6> a:vim | |
| sethandler <C-S-6> a:vim | |
| sethandler <C-A> a:ide | |
| sethandler <C-C> a:ide | |
| sethandler <C-D> a:vim | |
| sethandler <C-E> a:vim | |
| sethandler <C-F> a:ide | |
| sethandler <C-G> a:vim | |
| sethandler <C-H> a:vim | |
| sethandler <C-I> a:vim | |
| sethandler <C-J> a:vim | |
| sethandler <C-K> a:vim | |
| sethandler <C-L> a:vim | |
| sethandler <C-M> a:vim | |
| sethandler <C-N> a:vim | |
| sethandler <C-O> a:vim | |
| sethandler <C-P> a:vim | |
| sethandler <C-Q> a:vim | |
| sethandler <C-R> a:ide | |
| sethandler <C-S> a:ide | |
| sethandler <C-T> a:vim | |
| "sethandler <C-U> a:vim | |
| sethandler <C-V> a:ide | |
| sethandler <C-W> a:ide | |
| sethandler <C-X> a:ide | |
| sethandler <C-Y> a:vim | |
| sethandler <C-[> a:ide | |
| sethandler <C-]> a:ide | |
| sethandler <S- > a:vim | |
| sethandler <C-;> a:vim | |
| sethandler <C-S-;> a:vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment