Post

Rafi Neovim Configuration Information

Extensible Neovim configuration

  • Install and initialize: lazyman -w Rafi
  • Configuration category: Personal
  • Base configuration: Custom
  • Plugin manager: Lazy
  • Installation location: ~/.config/nvim-Rafi

Git repository

https://github.com/rafi/vim-config

Dotfyle entry

https://dotfyle.com/rafi/vim-config

Lazy managed plugins

Rafi Keymaps

Normal mode keymaps

DescriptionToggle Fold
Left hand side<CR>
Right hand side 
DescriptionClear Search Highlight
Left hand side<Esc>
Right hand side<Cmd>noh<CR>
DescriptionOpen Location List
Left hand side a
Right hand side 
DescriptionOpen Quickfix
Left hand side q
Right hand side 
DescriptionDictionary
Left hand side ?
Right hand side<Cmd>silent !open dict://<lt>cword><CR>
DescriptionTerminal (cwd)
Left hand side tT
Right hand side 
DescriptionTerminal (root dir)
Left hand side tt
Right hand side 
DescriptionLazygit (cwd)
Left hand side tG
Right hand side 
DescriptionLazygit (root dir)
Left hand side tg
Right hand side 
DescriptionAppend Modeline
Left hand side ml
Right hand side 
DescriptionShow Treesitter Node
Left hand side ui
Right hand side 
DescriptionToggle Wrap
Left hand side uw
Right hand side 
DescriptionHide Search Highlight
Left hand side uu
Right hand side<Cmd>nohlsearch<CR>
DescriptionToggle Whitespace Symbols
Left hand side uo
Right hand side<Cmd>setlocal nolist!<CR>
DescriptionToggle Line Numbers
Left hand side ul
Right hand side<Cmd>setlocal nonumber!<CR>
DescriptionToggle Spellcheck
Left hand side us
Right hand side<Cmd>setlocal spell!<CR>
DescriptionToggle format on Save
Left hand side uf
Right hand side 
DescriptionSave
Left hand side w
Right hand side<Cmd>write<CR>
DescriptionChange Local Directory
Left hand side cd
Right hand side 
DescriptionRedraw / clear hlsearch / diff update
Left hand side ur
Right hand side<Cmd>nohlsearch|diffupdate|normal! <C-L><CR>
DescriptionErase Whitespace
Left hand side cw
Right hand side<Cmd>lua MiniTrailspace.trim()<CR>
DescriptionDuplicate line
Left hand side d
Right hand sidem`""Y""P``
DescriptionMove line down
Left hand side j
Right hand side<Cmd>move+<CR>==
DescriptionMove line up
Left hand side k
Right hand side<Cmd>move-2<CR>==
DescriptionYank absolute path
Left hand side Y
Right hand side 
DescriptionYank relative path
Left hand side y
Right hand side 
DescriptionVisual Mode
Left hand side
Right hand sideV
DescriptionOpen Lazy UI
Left hand side l
Right hand side<Cmd>Lazy<CR>
DescriptionDiff File
Left hand side gd
Right hand side 
DescriptionDiff View
Left hand side gv
Right hand side 
DescriptionDelete Buffer
Left hand side bd
Right hand side 
DescriptionZk Links
Left hand side zl
Right hand side 
DescriptionZk Backlinks
Left hand side zb
Right hand side 
DescriptionZk Search
Left hand side zf
Right hand side 
DescriptionZk Tags
Left hand side zt
Right hand side 
DescriptionZk Notes
Left hand side zo
Right hand side 
DescriptionZk New
Left hand side zn
Right hand side 
Description 
Left hand side ue
Right hand side 
DescriptionUndo Tree
Left hand side gu
Right hand side 
DescriptionLine diff show
Left hand side mds
Right hand side 
DescriptionLine diff reset
Left hand side mdr
Right hand side 
DescriptionGit open in browser
Left hand side go
Right hand side 
DescriptionGit messenger
Left hand side gm
Right hand side 
DescriptionDismiss all Notifications
Left hand side un
Right hand side 
DescriptionGit blame
Left hand side gb
Right hand side 
DescriptionGit blame (window)
Left hand side gB
Right hand side 
DescriptionDocument diagnostics
Left hand side sd
Right hand side 
DescriptionBuffer find
Left hand side /
Right hand side 
DescriptionGrep cursor word
Left hand side gg
Right hand side 
DescriptionFind file
Left hand side gf
Right hand side 
DescriptionFind symbol
Left hand side gt
Right hand side 
DescriptionGit bcommits range
Left hand side gc
Right hand side 
DescriptionGit stashes
Left hand side gh
Right hand side 
DescriptionGit buffer commits
Left hand side gL
Right hand side 
DescriptionGit commits
Left hand side gl
Right hand side 
DescriptionGit branches
Left hand side gr
Right hand side 
DescriptionGit status
Left hand side gs
Right hand side 
DescriptionGoto Symbol (Workspace)
Left hand side sS
Right hand side 
DescriptionGoto Symbol
Left hand side ss
Right hand side 
DescriptionColorscheme
Left hand side uC
Right hand side 
DescriptionColorscheme
Left hand side sc
Right hand side 
DescriptionWord
Left hand side sw
Right hand side 
DescriptionMan Pages
Left hand side sm
Right hand side 
DescriptionKey Maps
Left hand side sk
Right hand side 
DescriptionHelp Pages
Left hand side sh
Right hand side 
DescriptionWorkspace diagnostics
Left hand side sD
Right hand side 
DescriptionNoice All
Left hand side sna
Right hand side 
DescriptionNoice History
Left hand side snh
Right hand side 
DescriptionNoice Last Message
Left hand side snl
Right hand side 
Description 
Left hand side v
Right hand side 
DescriptionToggle structure panel
Left hand side tf
Right hand side 
DescriptionSpectre
Left hand side sp
Right hand side 
DescriptionDuplicate Paragraph
Left hand side cp
Right hand sideyap<S-}>p
DescriptionNeogen Comment
Left hand side cc
Right hand side 
DescriptionExecute HTTP request
Left hand side mh
Right hand side 
DescriptionSelect VirtualEnv
Left hand side cv
Right hand side 
DescriptionSymbols Outline
Left hand side o
Right hand side 
DescriptionQuickfix List (Trouble)
Left hand side xQ
Right hand side 
DescriptionWorkspace Diagnostics (Trouble)
Left hand side xX
Right hand side 
DescriptionDocument Diagnostics (Trouble)
Left hand side xx
Right hand side 
DescriptionWorkspace Diagnostics
Left hand side r
Right hand side 
DescriptionDocument Diagnostics
Left hand side e
Right hand side 
DescriptionLocation List (Trouble)
Left hand side xL
Right hand side 
DescriptionTodo/Fix/Fixme (Trouble)
Left hand side xT
Right hand side 
DescriptionTodo/Fix/Fixme
Left hand side sT
Right hand side 
DescriptionTodo
Left hand side st
Right hand side 
DescriptionTodo (Trouble)
Left hand side xt
Right hand side 
DescriptionNeogit
Left hand side mg
Right hand side 
DescriptionZen Mode
Left hand side zz
Right hand side 
DescriptionMason
Left hand side mm
Right hand side 
DescriptionHighlight word
Left hand side mt
Right hand side 
DescriptionExecute Shell Command
Left hand side!
Right hand side:!
Description 
Left hand side#
Right hand sideg#
DescriptionNvim builtin
Left hand side&
Right hand side:&&<CR>
Description 
Left hand side*
Right hand sideg*
DescriptionPick window
Left hand side-
Right hand side 
DescriptionContent-aware menu
Left hand side;c
Right hand side 
DescriptionExplorer NeoTree Toggle
Left hand side;e
Right hand side 
DescriptionExplorer NeoTree Reveal
Left hand side;a
Right hand side 
DescriptionSearch history
Left hand side;/
Right hand side 
DescriptionCommands
Left hand side;:
Right hand side 
DescriptionCommand history
Left hand side;;
Right hand side 
DescriptionOld files
Left hand side;x
Right hand side 
DescriptionSessions
Left hand side;s
Right hand side 
DescriptionSpell suggest
Left hand side;u
Right hand side 
DescriptionRegisters
Left hand side;v
Right hand side 
DescriptionWorkspace symbols
Left hand side;t
Right hand side 
DescriptionNeovim options
Left hand side;o
Right hand side 
DescriptionMarks
Left hand side;m
Right hand side 
DescriptionJump list
Left hand side;j
Right hand side 
DescriptionHighlights
Left hand side;h
Right hand side 
DescriptionBuffers
Left hand side;b
Right hand side 
DescriptionGrep
Left hand side;g
Right hand side 
DescriptionFind files
Left hand side;f
Right hand side 
DescriptionPickers
Left hand side;R
Right hand side 
DescriptionResume last
Left hand side;r
Right hand side 
DescriptionZoxide (MRU)
Left hand side;z
Right hand side 
DescriptionZk notes
Left hand side;w
Right hand side 
DescriptionThesaurus
Left hand side;k
Right hand side 
DescriptionPlugins
Left hand side;n
Right hand side 
DescriptionCode actions
Left hand side;da
Right hand side 
DescriptionReferences
Left hand side;dr
Right hand side 
DescriptionImplementations
Left hand side;di
Right hand side 
DescriptionDefinitions
Left hand side;dd
Right hand side 
Descriptiontodo
Left hand side;dt
Right hand side 
DescriptionF
Left hand sideF
Right hand side 
DescriptionLeap from windows
Left hand sideSS
Right hand side 
DescriptionT
Left hand sideT
Right hand side 
DescriptionNvim builtin
Left hand sideY
Right hand sidey$
DescriptionPrevious Whitespace
Left hand side[s
Right hand side 
DescriptionPrevious Loclist Item
Left hand side[a
Right hand side<Cmd>lprev<CR>
DescriptionPrev Reference
Left hand side[[
Right hand side 
DescriptionPrevious trouble/quickfix item
Left hand side[q
Right hand side 
DescriptionPrevious todo comment
Left hand side[t
Right hand side 
DescriptionNext Whitespace
Left hand side]s
Right hand side 
DescriptionNext Loclist Item
Left hand side]a
Right hand side<Cmd>lnext<CR>
DescriptionNext Reference
Left hand side]]
Right hand side 
DescriptionNext trouble/quickfix item
Left hand side]q
Right hand side 
DescriptionNext todo comment
Left hand side]t
Right hand side 
DescriptionChange Surrounding Function
Left hand sidecsf
Right hand side 
DescriptionReplace surrounding
Left hand sidecs
Right hand side 
DescriptionDelete Surrounding Function
Left hand sidedsf
Right hand side 
DescriptionDelete surrounding
Left hand sideds
Right hand side 
Descriptionf
Left hand sidef
Right hand side 
DescriptionJump to older buffer
Left hand sideg<C-O>
Right hand side 
DescriptionJump to newer buffer
Left hand sideg<C-I>
Right hand side 
DescriptionPaste Command
Left hand sideg!
Right hand side:put=execute('')<Left><Left>
DescriptionSelect Paste
Left hand sidegpp
Right hand side'`['.strpart(getregtype(), 0, 1).'`]'
Description 
Left hand sideg#
Right hand side#
Description 
Left hand sideg*
Right hand side*
Description 
Left hand sidegl
Right hand sideg$
Description 
Left hand sidegh
Right hand sideg^
Description 
Left hand sidegpr
Right hand side 
Description 
Left hand sidegpy
Right hand side 
Description 
Left hand sidegpd
Right hand side 
Description 
Left hand sidegpi
Right hand side 
DescriptionMove to bottom edge
Left hand sidegj
Right hand side 
DescriptionMove to top edge
Left hand sidegk
Right hand side 
DescriptionHighlight surrounding
Left hand sidegzh
Right hand side 
DescriptionFind left surrounding
Left hand sidegzF
Right hand side 
DescriptionFind right surrounding
Left hand sidegzf
Right hand side 
DescriptionUpdate MiniSurround.config.n_lines
Left hand sidegzn
Right hand side 
Description 
Left hand sidej
Right hand sidev:count == 0 ? 'gj' : 'j'
Description 
Left hand sidek
Right hand sidev:count == 0 ? 'gk' : 'k'
DescriptionMarks from all opened buffers
Left hand sidem/
Right hand side 
DescriptionToggle background dark/light
Left hand sidesh
Right hand side 
DescriptionDelete buffer and open new
Left hand sidesx
Right hand side 
DescriptionMaximize
Left hand sidesz
Right hand side<Cmd>vertical resize | resize | normal! ze<CR>
DescriptionQuit
Left hand sidesq
Right hand side<Cmd>quit<CR>
DescriptionClose other windows
Left hand sideso
Right hand side<Cmd>only<CR>
DescriptionNew tab
Left hand sidest
Right hand side<Cmd>tabnew<CR>
DescriptionSplit window vertically
Left hand sidesg
Right hand side<Cmd>vsplit<CR>
DescriptionSplit window horizontally
Left hand sidesv
Right hand side<Cmd>split<CR>
DescriptionBuffer delete
Left hand sidesd
Right hand side<Cmd>bdelete<CR>
DescriptionClose window
Left hand sidesc
Right hand side<Cmd>close<CR>
DescriptionAlternate buffer
Left hand sidesb
Right hand side<Cmd>buffer#<CR>
DescriptionJoin arguments
Left hand sidesj
Right hand side 
DescriptionSplit arguments
Left hand sidesk
Right hand side 
DescriptionPick window
Left hand sidesp
Right hand side 
DescriptionSwap picked window
Left hand sidesw
Right hand side 
DescriptionAdd surrounding
Left hand sidesa
Right hand side 
DescriptionLeap backward to
Left hand sidesS
Right hand side 
DescriptionLeap forward to
Left hand sidess
Right hand side 
Descriptiont
Left hand sidet
Right hand side 
Description 
Left hand sidezh
Right hand sidez4h
Description 
Left hand sidezl
Right hand sidez4l
DescriptionSwap windows
Left hand side<C-X>
Right hand side<C-W>x
DescriptionTab Move Forwards
Left hand side<M-}>
Right hand side<Cmd>+tabmove<CR>
DescriptionTab Move Backwards
Left hand side<M-{>
Right hand side<Cmd>-tabmove<CR>
DescriptionPrevious Tab
Left hand side<C-S-Tab>
Right hand side<Cmd>tabprevious<CR>
DescriptionNext Tab
Left hand side<C-Tab>
Right hand side<Cmd>tabnext<CR>
DescriptionNext Tab
Left hand side<M-]>
Right hand side<Cmd>tabnext<CR>
DescriptionPrevious Tab
Left hand side<M-[>
Right hand side<Cmd>tabprevious<CR>
DescriptionPrevious Tab
Left hand side<M-k>
Right hand side<Cmd>tabprevious<CR>
DescriptionNext Tab
Left hand side<M-j>
Right hand side<Cmd>tabnext<CR>
DescriptionSave
Left hand side<C-S>
Right hand side<Cmd>write<CR>
DescriptionJump to Paren
Left hand side<BS>
Right hand side%
DescriptionMacro Prefix
Left hand side<C-Q>
Right hand sideq
DescriptionFocus Fold
Left hand side<S-CR>
Right hand sidezMzv
DescriptionJump to left pane
Left hand side<C-H>
Right hand side<Cmd>TmuxNavigateLeft<CR>
DescriptionJump to upper pane
Left hand side<C-K>
Right hand side<Cmd>TmuxNavigateUp<CR>
DescriptionJump to right pane
Left hand side<C-L>
Right hand side<Cmd>TmuxNavigateRight<CR>
DescriptionJump to lower pane
Left hand side<C-J>
Right hand side<Cmd>TmuxNavigateDown<CR>
Description 
Left hand side<Plug>PlenaryTestFile
Right hand side:lua require('plenary.test_harness').test_directory(vim.fn.expand("%:p"))<CR>
DescriptionScroll backward
Left hand side<C-B>
Right hand side 
DescriptionScroll forward
Left hand side<C-F>
Right hand side 
DescriptionToggle terminal
Left hand side<C-_>
Right hand side 

Visual mode keymaps

DescriptionIndent Left
Left hand side<Tab>
Right hand side>gv|
DescriptionDuplicate selection
Left hand side d
Right hand side""Y""Pgv
DescriptionMove selection down
Left hand side j
Right hand side:move'>+<CR>gv=gv
DescriptionMove selection up
Left hand side k
Right hand side:move'<lt>-2<CR>gv=gv
DescriptionExit Visual Mode
Left hand side
Right hand side<Esc>
DescriptionZk Match
Left hand side zf
Right hand side 
DescriptionSpectre Word
Left hand side sp
Right hand side 
Description 
Left hand side v
Right hand side 
DescriptionLine diff
Left hand side mdf
Right hand side 
DescriptionLine diff add
Left hand side mda
Right hand side 
DescriptionGit bcommits range
Left hand side gc
Right hand side 
DescriptionGrep cursor word
Left hand side gg
Right hand side 
DescriptionGit open in browser
Left hand side go
Right hand side 
DescriptionHighlight word
Left hand side mt
Right hand side 
DescriptionNvim builtin
Left hand side#
Right hand sidey?\V<C-R>"<CR>
DescriptionNvim builtin
Left hand side*
Right hand sidey/\V<C-R>"<CR>
DescriptionCode actions
Left hand side;da
Right hand side 
DescriptionIndent Right and Re-select
Left hand side<lt>
Right hand side<lt>gv
DescriptionIndent Left and Re-select
Left hand side>
Right hand side>gv|
DescriptionBlockwise Append
Left hand sideA
Right hand side 
DescriptionF
Left hand sideF
Right hand side 
DescriptionBlockwise Insert
Left hand sideI
Right hand side 
DescriptionPaste In-place
Left hand sideP
Right hand sideP:let @+=@0<CR>:let @"=@0<CR>
DescriptionLeap from windows
Left hand sideSS
Right hand side 
DescriptionT
Left hand sideT
Right hand side 
DescriptionShrink selection
Left hand sideV
Right hand side 
Descriptionf
Left hand sidef
Right hand side 
DescriptionMove to bottom edge
Left hand sidegj
Right hand side 
DescriptionMove to top edge
Left hand sidegk
Right hand side 
DescriptionBlockwise Insert
Left hand sidegI
Right hand side 
Description 
Left hand sidej
Right hand sidev:count == 0 ? 'gj' : 'j'
Description 
Left hand sidek
Right hand sidev:count == 0 ? 'gk' : 'k'
DescriptionPaste
Left hand sidep
Right hand sidep:let @+=@0<CR>:let @"=@0<CR>
DescriptionSubstitute Within Selection
Left hand sidesg
Right hand side:s//gc<Left><Left><Left>
DescriptionLeap backward to
Left hand sidesS
Right hand side 
DescriptionLeap forward to
Left hand sidess
Right hand side 
DescriptionAdd surrounding
Left hand sidesa
Right hand side 
DescriptionSplit arguments
Left hand sidesk
Right hand side 
DescriptionJoin arguments
Left hand sidesj
Right hand side 
Descriptiont
Left hand sidet
Right hand side 
DescriptionIncrement selection
Left hand sidev
Right hand side 
DescriptionSave
Left hand side<C-S>
Right hand side<Cmd>write<CR>
DescriptionReplace Selection
Left hand side<C-R>
Right hand side:<C-U>%s/\V<C-R>=v:lua.require'rafi.lib.edit'.get_visual_selection()<CR>//gc<Left><Left><Left>
DescriptionJump to Paren
Left hand side<BS>
Right hand side%
DescriptionIndent Right
Left hand side<S-Tab>
Right hand side<lt>gv

Operator mode keymaps

DescriptionF
Left hand sideF
Right hand side 
DescriptionLeap from windows
Left hand sideSS
Right hand side 
DescriptionT
Left hand sideT
Right hand side 
Descriptionf
Left hand sidef
Right hand side 
DescriptionLeap forward to
Left hand sidess
Right hand side 
DescriptionLeap backward to
Left hand sidesS
Right hand side 
Descriptiont
Left hand sidet
Right hand side