Post

AlanVim Neovim Configuration Information

Oriented toward Python development

  • Install and initialize: lazyman -L AlanVim
  • Configuration category: Language
  • Base configuration: Custom
  • Plugin manager: Packer
  • Installation location: ~/.config/nvim-AlanVim

Git repository

https://github.com/alanRizzo/dot-files

Packer managed plugins

AlanVim Keymaps

Normal mode keymaps

Description 
Left hand side<Esc>
Right hand side:noh<CR>
Description 
Left hand side u
Right hand side 
Description 
Left hand side g
Right hand side 
Description 
Left hand side w
Right hand side 
Description 
Left hand side f
Right hand side 
Description 
Left hand side%
Right hand side<Plug>(MatchitNormalForward)
DescriptionNvim builtin
Left hand side&
Right hand side:&&<CR>
Description 
Left hand side'gR
Right hand side<Cmd>lua require('git.revert').open(true)<CR>
Description 
Left hand side'gr
Right hand side<Cmd>lua require('git.revert').open(false)<CR>
Description 
Left hand side'gD
Right hand side<Cmd>lua require('git.diff').close()<CR>
Description 
Left hand side'gd
Right hand side<Cmd>lua require('git.diff').open()<CR>
Description 
Left hand side'gn
Right hand side<Cmd>lua require('git.browse').create_pull_request()<CR>
Description 
Left hand side'gp
Right hand side<Cmd>lua require('git.browse').pull_request()<CR>
Description 
Left hand side'go
Right hand side<Cmd>lua require('git.browse').open(false)<CR>
Description 
Left hand side'gb
Right hand side<Cmd>lua require('git.blame').blame()<CR>
Description 
Left hand side's
Right hand side:source %<CR>
Description 
Left hand side'p
Right hand side:vsplit ~/.config/nvim-AlanVim/lua/packages.lua<CR>
Description 
Left hand side'm
Right hand side:vsplit ~/.config/nvim-AlanVim/lua/general/mappings.lua<CR>
Description 
Left hand sideD
Right hand side:BufDel<CR>
Description 
Left hand sideH
Right hand side:BufferLineCyclePrev<CR>
Description 
Left hand sideL
Right hand side:BufferLineCycleNext<CR>
DescriptionNvim builtin
Left hand sideY
Right hand sidey$
Description 
Left hand side[%
Right hand side<Plug>(MatchitNormalMultiBackward)
Description 
Left hand side]%
Right hand side<Plug>(MatchitNormalMultiForward)
DescriptionChange a surrounding pair, putting replacements on new lines
Left hand sidecS
Right hand side<Plug>(nvim-surround-change-line)
DescriptionChange a surrounding pair
Left hand sidecs
Right hand side<Plug>(nvim-surround-change)
DescriptionDelete a surrounding pair
Left hand sideds
Right hand side<Plug>(nvim-surround-delete)
Description 
Left hand sideg%
Right hand side<Plug>(MatchitNormalBackward)
Description 
Left hand sidett
Right hand side:t.<CR>
DescriptionAdd a surrounding pair around the current line, on new lines (normal mode)
Left hand sideySS
Right hand side<Plug>(nvim-surround-normal-cur-line)
DescriptionAdd a surrounding pair around a motion, on new lines (normal mode)
Left hand sideyS
Right hand side<Plug>(nvim-surround-normal-line)
DescriptionAdd a surrounding pair around the current line (normal mode)
Left hand sideyss
Right hand side<Plug>(nvim-surround-normal-cur)
DescriptionAdd a surrounding pair around a motion (normal mode)
Left hand sideys
Right hand side<Plug>(nvim-surround-normal)
Description 
Left hand side<Plug>PlenaryTestFile
Right hand side:lua require('plenary.test_harness').test_directory(vim.fn.expand("%:p"))<CR>
Description 
Left hand side<C-Y>m
Right hand side<Plug>(emmet-merge-lines)
Description 
Left hand side<Plug>(emmet-merge-lines)
Right hand side:call emmet#mergeLines()<CR>
Description 
Left hand side<C-Y>A
Right hand side<Plug>(emmet-anchorize-summary)
Description 
Left hand side<Plug>(emmet-anchorize-summary)
Right hand side:call emmet#anchorizeURL(1)<CR>
Description 
Left hand side<C-Y>a
Right hand side<Plug>(emmet-anchorize-url)
Description 
Left hand side<Plug>(emmet-anchorize-url)
Right hand side:call emmet#anchorizeURL(0)<CR>
Description 
Left hand side<C-Y>k
Right hand side<Plug>(emmet-remove-tag)
Description 
Left hand side<Plug>(emmet-remove-tag)
Right hand side:call emmet#removeTag()<CR>
Description 
Left hand side<C-Y>j
Right hand side<Plug>(emmet-split-join-tag)
Description 
Left hand side<Plug>(emmet-split-join-tag)
Right hand side:call emmet#splitJoinTag()<CR>
Description 
Left hand side<C-Y>/
Right hand side<Plug>(emmet-toggle-comment)
Description 
Left hand side<Plug>(emmet-toggle-comment)
Right hand side:call emmet#toggleComment()<CR>
Description 
Left hand side<C-Y>I
Right hand side<Plug>(emmet-image-encode)
Description 
Left hand side<Plug>(emmet-image-encode)
Right hand side:call emmet#imageEncode()<CR>
Description 
Left hand side<C-Y>i
Right hand side<Plug>(emmet-image-size)
Description 
Left hand side<Plug>(emmet-image-size)
Right hand side:call emmet#imageSize()<CR>
Description 
Left hand side<Plug>(emmet-move-prev-item)
Right hand side:call emmet#moveNextPrevItem(1)<CR>
Description 
Left hand side<Plug>(emmet-move-next-item)
Right hand side:call emmet#moveNextPrevItem(0)<CR>
Description 
Left hand side<C-Y>N
Right hand side<Plug>(emmet-move-prev)
Description 
Left hand side<Plug>(emmet-move-prev)
Right hand side:call emmet#moveNextPrev(1)<CR>
Description 
Left hand side<C-Y>n
Right hand side<Plug>(emmet-move-next)
Description 
Left hand side<Plug>(emmet-move-next)
Right hand side:call emmet#moveNextPrev(0)<CR>
Description 
Left hand side<C-Y>D
Right hand side<Plug>(emmet-balance-tag-outword)
Description 
Left hand side<Plug>(emmet-balance-tag-outword)
Right hand side:call emmet#balanceTag(-1)<CR>
Description 
Left hand side<C-Y>d
Right hand side<Plug>(emmet-balance-tag-inward)
Description 
Left hand side<Plug>(emmet-balance-tag-inward)
Right hand side:call emmet#balanceTag(1)<CR>
Description 
Left hand side<C-Y>u
Right hand side<Plug>(emmet-update-tag)
Description 
Left hand side<Plug>(emmet-update-tag)
Right hand side:call emmet#updateTag()<CR>
Description 
Left hand side<C-Y>;
Right hand side<Plug>(emmet-expand-word)
Description 
Left hand side<Plug>(emmet-expand-word)
Right hand side:call emmet#expandAbbr(1,"")<CR>
Description 
Left hand side<C-Y>,
Right hand side<Plug>(emmet-expand-abbr)
Description 
Left hand side<Plug>(emmet-expand-abbr)
Right hand side:call emmet#expandAbbr(3,"")<CR>
Description 
Left hand side<Plug>luasnip-expand-repeat
Right hand side 
Description 
Left hand side<Plug>luasnip-delete-check
Right hand side 
DescriptionChange a surrounding pair, putting replacements on new lines
Left hand side<Plug>(nvim-surround-change-line)
Right hand side 
DescriptionChange a surrounding pair
Left hand side<Plug>(nvim-surround-change)
Right hand side 
DescriptionDelete a surrounding pair
Left hand side<Plug>(nvim-surround-delete)
Right hand side 
DescriptionAdd a surrounding pair around the current line, on new lines (normal mode)
Left hand side<Plug>(nvim-surround-normal-cur-line)
Right hand side 
DescriptionAdd a surrounding pair around a motion, on new lines (normal mode)
Left hand side<Plug>(nvim-surround-normal-line)
Right hand side 
DescriptionAdd a surrounding pair around the current line (normal mode)
Left hand side<Plug>(nvim-surround-normal-cur)
Right hand side 
DescriptionAdd a surrounding pair around a motion (normal mode)
Left hand side<Plug>(nvim-surround-normal)
Right hand side 
Description 
Left hand side<Plug>(MatchitNormalMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "n")<CR>
Description 
Left hand side<Plug>(MatchitNormalMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "n")<CR>
Description 
Left hand side<Plug>(MatchitNormalBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'n')<CR>
Description 
Left hand side<Plug>(MatchitNormalForward)
Right hand side:<C-U>call matchit#Match_wrapper('',1,'n')<CR>
Description 
Left hand side<C-K>
Right hand side:lua require'nvim-tmux-navigation'.NvimTmuxNavigateUp()<CR>
Description 
Left hand side<C-Bslash>
Right hand side:lua require'nvim-tmux-navigation'.NvimTmuxNavigateLastActive()<CR>
Description 
Left hand side<C-H>
Right hand side:lua require'nvim-tmux-navigation'.NvimTmuxNavigateLeft()<CR>
Description 
Left hand side<C-J>
Right hand side:lua require'nvim-tmux-navigation'.NvimTmuxNavigateDown()<CR>
Description 
Left hand side<C-Space>
Right hand side:lua require'nvim-tmux-navigation'.NvimTmuxNavigateNext()<CR>
Description 
Left hand side<C-N>
Right hand side:NvimTreeToggle<CR>
Description 
Left hand side<M-l>
Right hand side:vertical resize +2<CR>
Description 
Left hand side<M-h>
Right hand side:vertical resize -2<CR>
Description 
Left hand side<M-k>
Right hand side:resize +2<CR>
Description 
Left hand side<M-j>
Right hand side:resize -2<CR>
Description 
Left hand side<C-L>
Right hand side:lua require'nvim-tmux-navigation'.NvimTmuxNavigateRight()<CR>

Visual mode keymaps

DescriptionNvim builtin
Left hand side#
Right hand sidey?\V<C-R>"<CR>
Description 
Left hand side%
Right hand side<Plug>(MatchitVisualForward)
Description 
Left hand side'go
Right hand side:<C-U> lua require('git.browse').open(true)<CR>
DescriptionNvim builtin
Left hand side*
Right hand sidey/\V<C-R>"<CR>
Description 
Left hand side<lt>
Right hand side<lt>gv
Description 
Left hand side>
Right hand side>gv
DescriptionAdd a surrounding pair around a visual selection
Left hand sideS
Right hand side<Plug>(nvim-surround-visual)
Description 
Left hand side[%
Right hand side<Plug>(MatchitVisualMultiBackward)
Description 
Left hand side]%
Right hand side<Plug>(MatchitVisualMultiForward)
Description 
Left hand sidea%
Right hand side<Plug>(MatchitVisualTextObject)
DescriptionAdd a surrounding pair around a visual selection, on new lines
Left hand sidegS
Right hand side<Plug>(nvim-surround-visual-line)
Description 
Left hand sideg%
Right hand side<Plug>(MatchitVisualBackward)
Description 
Left hand side<C-Y>c
Right hand side<Plug>(emmet-code-pretty)
Description 
Left hand side<Plug>(emmet-code-pretty)
Right hand side:call emmet#codePretty()<CR>
Description 
Left hand side<C-Y>D
Right hand side<Plug>(emmet-balance-tag-outword)
Description 
Left hand side<Plug>(emmet-balance-tag-outword)
Right hand side<Esc>:call emmet#balanceTag(-1)<CR>
Description 
Left hand side<C-Y>d
Right hand side<Plug>(emmet-balance-tag-inward)
Description 
Left hand side<Plug>(emmet-balance-tag-inward)
Right hand side<Esc>:call emmet#balanceTag(1)<CR>
Description 
Left hand side<C-Y>,
Right hand side<Plug>(emmet-expand-abbr)
Description 
Left hand side<Plug>(emmet-expand-abbr)
Right hand side:call emmet#expandAbbr(2,"")<CR>
Description 
Left hand side<Plug>luasnip-expand-repeat
Right hand side 
DescriptionAdd a surrounding pair around a visual selection, on new lines
Left hand side<Plug>(nvim-surround-visual-line)
Right hand side<Esc><Cmd>lua require'nvim-surround'.visual_surround({ line_mode = true })<CR>
DescriptionAdd a surrounding pair around a visual selection
Left hand side<Plug>(nvim-surround-visual)
Right hand side<Esc><Cmd>lua require'nvim-surround'.visual_surround({ line_mode = false })<CR>
Description 
Left hand side<Plug>(MatchitVisualTextObject)
Right hand side<Plug>(MatchitVisualMultiBackward)o<Plug>(MatchitVisualMultiForward)
Description 
Left hand side<Plug>(MatchitVisualMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "n")<CR>m'gv``
Description 
Left hand side<Plug>(MatchitVisualMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "n")<CR>m'gv``
Description 
Left hand side<Plug>(MatchitVisualBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'v')<CR>m'gv``
Description 
Left hand side<Plug>(MatchitVisualForward)
Right hand side:<C-U>call matchit#Match_wrapper('',1,'v')<CR>:if col("''") != col("$") | exe ":normal! m'" | endif<CR>gv``

Operator mode keymaps

Description 
Left hand side%
Right hand side<Plug>(MatchitOperationForward)
Description 
Left hand side[%
Right hand side<Plug>(MatchitOperationMultiBackward)
Description 
Left hand side]%
Right hand side<Plug>(MatchitOperationMultiForward)
Description 
Left hand sideg%
Right hand side<Plug>(MatchitOperationBackward)
Description 
Left hand side<Plug>luasnip-expand-repeat
Right hand side 
Description 
Left hand side<Plug>(MatchitOperationMultiForward)
Right hand side:<C-U>call matchit#MultiMatch("W", "o")<CR>
Description 
Left hand side<Plug>(MatchitOperationMultiBackward)
Right hand side:<C-U>call matchit#MultiMatch("bW", "o")<CR>
Description 
Left hand side<Plug>(MatchitOperationBackward)
Right hand side:<C-U>call matchit#Match_wrapper('',0,'o')<CR>
Description 
Left hand side<Plug>(MatchitOperationForward)
Right hand side:<C-U>call matchit#Match_wrapper('',1,'o')<CR>