Skip to content

Instantly share code, notes, and snippets.

@seanwash
Last active May 9, 2023 20:04
Show Gist options
  • Save seanwash/b45169cbc5d90868f9f221191d67bec5 to your computer and use it in GitHub Desktop.
Save seanwash/b45169cbc5d90868f9f221191d67bec5 to your computer and use it in GitHub Desktop.
"""
""" https://github.com/JetBrains/ideavim#Files
""" https://gist.github.com/seanwash/b45169cbc5d90868f9f221191d67bec5
"""
"""
""" Plugins
"""
set surround
set commentary
"""
""" Defaults recommended by JetBrains
"""
" 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
" Do incremental searching
set incsearch
" http://vimdoc.sourceforge.net/htmldoc/options.html#'clipboard'
set clipboard+=unnamed
""" Map leader to space
let mapleader=" "
"""
""" Actions
"""
" Core Actions
:map <Leader><Leader> <Action>(SearchEverywhere)
:map <Leader>j <Action>(MethodDown)
:map <Leader>k <Action>(MethodUp)
:map <Leader>w <Action>(SaveAll)
:map <Leader>e <Action>(GotoNextError)
:map <Leader>E <Action>(ShowErrorDescription)
:map <Leader>t <Action>(Refactorings.QuickListPopupAction)
:map <Leader>a <Action>(ShowIntentionActions)
:map <Leader>u <Action>(ShowUsages)
:map <Leader>U <Action>(FindUsages)
:map <Leader>s <Action>(SurroundWith)
:map <Leader>g <Action>(Vcs.QuickListPopupAction)
:map <Leader>d <Action>(QuickJavaDoc)
:map <Leader>n <Action>(FindWordAtCaret)
:map <Leader>f <Action>(Switcher)
:map <Leader>r <Action>(RunAnything)
:map <Leader>h <Action>(LocalHistory.ShowHistory)
:map s <Action>(FileStructurePopup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment