Post

SingleFile Neovim Configuration Information

A clean, organized pre-configured Neovim configuration guide in a single ‘init.lua’

  • Install and initialize: lazyman -x SingleFile
  • Configuration category: Starter
  • Base configuration: Custom
  • Plugin manager: Packer
  • Installation location: ~/.config/nvim-SingleFile

Git repository

https://github.com/creativenull/nvim-oneconfig

Packer managed plugins

SingleFile Keymaps

Normal mode keymaps

DescriptionToggle file tree (neo-tree)
Left hand side ff
Right hand side<Cmd>Neotree reveal toggle right<CR>
DescriptionPaste from system clipboard
Left hand side p
Right hand side"+p
DescriptionYank from system clipboard
Left hand side y
Right hand side"+y
DescriptionReload current buffer with the file
Left hand side r
Right hand side<Cmd>edit!<CR>
DescriptionReload init.lua
Left hand side vs
Right hand side<Cmd>ConfigReload<CR>
DescriptionOpen init.lua
Left hand side ve
Right hand side<Cmd>edit $MYVIMRC<CR>
DescriptionClose all buffers except current
Left hand side bx
Right hand side<Cmd>%bd|e#|bd#<CR>
DescriptionClose current buffer
Left hand side bd
Right hand side<Cmd>bp|sp|bn|bd<CR>
DescriptionPrevious buffer
Left hand side bp
Right hand side<Cmd>bprevious<CR>
DescriptionNext buffer
Left hand side bn
Right hand side<Cmd>bnext<CR>
DescriptionShow buffers
Left hand side bl
Right hand side<Cmd>buffers<CR>
DescriptionDisable search highlight
Left hand side <CR>
Right hand side<Cmd>noh<CR>
Description 
Left hand side%
Right hand side<Plug>(MatchitNormalForward)
DescriptionNvim builtin
Left hand side&
Right hand side:&&<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.
Left hand sidecs
Right hand side 
DescriptionDelete a surrounding pair.
Left hand sideds
Right hand side 
DescriptionComment insert end of line
Left hand sidegcA
Right hand side 
DescriptionComment insert above
Left hand sidegcO
Right hand side 
DescriptionComment insert below
Left hand sidegco
Right hand side 
DescriptionComment toggle current block
Left hand sidegbc
Right hand side 
DescriptionComment toggle current line
Left hand sidegcc
Right hand side 
DescriptionComment toggle blockwise
Left hand sidegb
Right hand side<Plug>(comment_toggle_blockwise)
DescriptionComment toggle linewise
Left hand sidegc
Right hand side<Plug>(comment_toggle_linewise)
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseX
Description 
Left hand sideg%
Right hand side<Plug>(MatchitNormalBackward)
DescriptionAdd a surrounding pair around the current line, on new lines (normal mode).
Left hand sideySS
Right hand side 
DescriptionAdd a surrounding pair around a motion, on new lines (normal mode).
Left hand sideyS
Right hand side 
DescriptionAdd a surrounding pair around the current line (normal mode).
Left hand sideyss
Right hand side 
DescriptionAdd a surrounding pair around a motion (normal mode).
Left hand sideys
Right hand side 
Description 
Left hand side<Plug>(vsnip-cut-text)
Right hand side:set operatorfunc=<SNR>42_vsnip_cut_text_normal<CR>g@
Description 
Left hand side<Plug>(vsnip-select-text)
Right hand side:set operatorfunc=<SNR>42_vsnip_select_text_normal<CR>g@
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-Q>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-Q>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-Q>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-Q>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-Q>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-Q>/
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-Q>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-Q>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-Q>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-Q>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-Q>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-Q>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-Q>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-Q>;
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-Q>,
Right hand side<Plug>(emmet-expand-abbr)
Description 
Left hand side<Plug>(emmet-expand-abbr)
Right hand side:call emmet#expandAbbr(3,"")<CR>
DescriptionComment toggle blockwise with count
Left hand side<Plug>(comment_toggle_blockwise_count)
Right hand side 
DescriptionComment toggle linewise with count
Left hand side<Plug>(comment_toggle_linewise_count)
Right hand side 
DescriptionComment toggle current block
Left hand side<Plug>(comment_toggle_blockwise_current)
Right hand side 
DescriptionComment toggle current line
Left hand side<Plug>(comment_toggle_linewise_current)
Right hand side 
DescriptionComment toggle blockwise
Left hand side<Plug>(comment_toggle_blockwise)
Right hand side 
DescriptionComment toggle linewise
Left hand side<Plug>(comment_toggle_linewise)
Right hand side 
DescriptionOpen text search (telescope)
Left hand side<C-T>
Right hand side 
DescriptionOpen file finder (telescope)
Left hand side<C-P>
Right hand side 
Description 
Left hand side<Plug>NetrwBrowseX
Right hand side:call netrw#BrowseX(netrw#GX(),netrw#CheckIfRemote(netrw#GX()))<CR>
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>
DescriptionPrevious buffer
Left hand side<C-H>
Right hand side<Cmd>bprevious<CR>
Description 
Left hand side<Right>
Right hand side<Cmd>vertical resize +2<CR>
Description 
Left hand side<Left>
Right hand side<Cmd>vertical resize -2<CR>
Description 
Left hand side<Down>
Right hand side<Cmd>resize -2<CR>
Description 
Left hand side<Up>
Right hand side<Cmd>resize +2<CR>
DescriptionNext buffer
Left hand side<C-L>
Right hand side<Cmd>bnext<CR>

Visual mode keymaps

DescriptionYank from system clipboard
Left hand side y
Right hand side"+y
DescriptionNvim builtin
Left hand side#
Right hand sidey?\V<C-R>"<CR>
Description 
Left hand side%
Right hand side<Plug>(MatchitVisualForward)
DescriptionNvim builtin
Left hand side*
Right hand sidey/\V<C-R>"<CR>
DescriptionAdd a surrounding pair around a visual selection.
Left hand sideS
Right hand side<Esc><Cmd>lua require'nvim-surround'.visual_surround()<CR>
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)
DescriptionComment toggle blockwise (visual)
Left hand sidegb
Right hand side<Plug>(comment_toggle_blockwise_visual)
DescriptionComment toggle linewise (visual)
Left hand sidegc
Right hand side<Plug>(comment_toggle_linewise_visual)
DescriptionAdd a surrounding pair around a visual selection, on new lines.
Left hand sidegS
Right hand side<Esc><Cmd>lua require'nvim-surround'.visual_surround(true)<CR>
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseXVis
Description 
Left hand sideg%
Right hand side<Plug>(MatchitVisualBackward)
DescriptionPaste from yanked contents only
Left hand sidep
Right hand side"_dP
Description 
Left hand side<Plug>(vsnip-cut-text)
Right hand side:<C-U>call <SNR>42_vsnip_visual_text(visualmode())<CR>gv"_c
Description 
Left hand side<Plug>(vsnip-select-text)
Right hand side:<C-U>call <SNR>42_vsnip_visual_text(visualmode())<CR>gv
Description 
Left hand side<C-Q>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-Q>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-Q>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-Q>,
Right hand side<Plug>(emmet-expand-abbr)
Description 
Left hand side<Plug>(emmet-expand-abbr)
Right hand side:call emmet#expandAbbr(2,"")<CR>
DescriptionComment toggle blockwise (visual)
Left hand side<Plug>(comment_toggle_blockwise_visual)
Right hand side<Esc><Cmd>lua require("Comment.api").locked("toggle.blockwise")(vim.fn.visualmode())<CR>
DescriptionComment toggle linewise (visual)
Left hand side<Plug>(comment_toggle_linewise_visual)
Right hand side<Esc><Cmd>lua require("Comment.api").locked("toggle.linewise")(vim.fn.visualmode())<CR>
Description 
Left hand side<Plug>NetrwBrowseXVis
Right hand side:<C-U>call netrw#BrowseXVis()<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``
Description 
Left hand side<Right>
Right hand side
Description 
Left hand side<Left>
Right hand side
Description 
Left hand side<Down>
Right hand side
Description 
Left hand side<Up>
Right hand side

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>(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>
Description 
Left hand side<Right>
Right hand side
Description 
Left hand side<Left>
Right hand side
Description 
Left hand side<Down>
Right hand side
Description 
Left hand side<Up>
Right hand side