Skip to content

Instantly share code, notes, and snippets.

@whynotavailable
Created September 30, 2024 12:48
Show Gist options
  • Save whynotavailable/75866d6048547422fad88298a96171ef to your computer and use it in GitHub Desktop.
Save whynotavailable/75866d6048547422fad88298a96171ef to your computer and use it in GitHub Desktop.
""" Map leader to space ---------------------
let mapleader=" "
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
set textobj-entire
set ReplaceWithRegister
""" Plugin settings -------------------------
let g:argtextobj_pairs="[:],(:),<:>"
""" Common settings -------------------------
set showmode
set so=5
set incsearch
set rnu
""" Idea specific settings ------------------
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
""" Mappings --------------------------------
map <leader>d <Action>(Debug)
map <leader>r <Action>(RenameElement)
map <leader>c <Action>(Stop)
map <leader>f <Action>(FindInPath)
map <leader><leader> <Action>(GotoFile)
map <leader>b <Action>(ToggleLineBreakpoint)
" 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
" Don't use Ex mode, use Q for formatting.
map Q gq
set highlightedyank
let g:highlightedyank_highlight_duration = "100"
set clipboard+=unnamedplus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment