Post

Roiz Neovim Configuration Information

Just a random Neovim config found on Github, works well

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

Git repository

https://github.com/MrRoiz/rnvim

Lazy managed plugins

Roiz Keymaps

Normal mode keymaps

DescriptionMove line right
Left hand side<Tab>
Right hand side<Cmd>lua MiniMove.move_line('right')<CR>
DescriptionClose diffview
Left hand side dcc
Right hand side:DiffviewClose<CR>
DescriptionOpen diffview
Left hand side dv
Right hand side:DiffviewOpen<CR>
DescriptionShow current file history
Left hand side dch
Right hand side:DiffviewFileHistory %<CR>
DescriptionShow Commit history with changes
Left hand side dh
Right hand side:DiffviewFileHistory<CR>
DescriptionList PR’s
Left hand side opl
Right hand side:Octo pr list initial_mode=normal<CR>
DescriptionSubmit PR review
Left hand side orss
Right hand side:Octo review submit<CR>
DescriptionStart PR review
Left hand side ors
Right hand side:Octo review start<CR>
DescriptionClose current review
Left hand side orc
Right hand side:Octo review close<CR>
DescriptionResume PR review
Left hand side orr
Right hand side:Octo review resume<CR>
DescriptionReload current PR
Left hand side opr
Right hand side:Octo pr reload<CR>
DescriptionSearch current word with Spectre
Left hand side sw
Right hand side:lua require('spectre').open_visual({select_word=true})<CR>
DescriptionOpen Spectre
Left hand side ss
Right hand side:lua require('spectre').open()<CR>
DescriptionSearch on current file with Spectre
Left hand side sf
Right hand side:lua require('spectre').open_file_search({select_word=true})<CR>
DescriptionOpen Telescope Keymaps
Left hand side k
Right hand side:Telescope keymaps<CR>
DescriptionShow git branches
Left hand side gb
Right hand side:Telescope git_branches initial_mode=normal<CR>
DescriptionShow git log
Left hand side glo
Right hand side:Telescope git_commits initial_mode=normal<CR>
DescriptionOpen Telescope live_grep
Left hand side fg
Right hand side:Telescope live_grep<CR>
DescriptionOpen Telescope
Left hand side ff
Right hand side:Telescope find_files<CR>
DescriptionShow git status
Left hand side gst
Right hand side:Telescope git_status initial_mode=normal<CR>
DescriptionTest keymap
Left hand side test
Right hand side:echo 'This is a test keymap!'<CR>
DescriptionSelect all
Left hand side a
Right hand sideggvG<S-End>
DescriptionWhere am I
Left hand side wai
Right hand side:echo expand('%:p')<CR>
DescriptionOpen a floating term
Left hand side tt
Right hand side:ToggleTerm direction=float<CR>
Description 
Left hand side%
Right hand side<Plug>(MatchitNormalForward)
DescriptionNvim builtin
Left hand side&
Right hand side:&&<CR>
Descriptiongo to the beggining of the line
Left hand sideB
Right hand side^
Descriptiongo to the end of the line
Left hand sideE
Right hand side$
DescriptionNvim builtin
Left hand sideY
Right hand sidey$
Description 
Left hand side[%
Right hand side<Plug>(MatchitNormalMultiBackward)
Description 
Left hand side\\gS
Right hand side<Plug>(VM-Reselect-Last)
Description 
Left hand side\\/
Right hand side<Plug>(VM-Start-Regex-Search)
Description 
Left hand side\\\
Right hand side<Plug>(VM-Add-Cursor-At-Pos)
Description 
Left hand side\\A
Right hand side<Plug>(VM-Select-All)
Description 
Left hand side]%
Right hand side<Plug>(MatchitNormalMultiForward)
DescriptionClear search highlight
Left hand side_
Right hand side:noh<CR>
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseX
Description 
Left hand sideg%
Right hand side<Plug>(MatchitNormalBackward)
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)
DescriptionClose preview windows
Left hand sidegP
Right hand side 
DescriptionPreview references
Left hand sidegpr
Right hand side 
DescriptionPreview implementation
Left hand sidegpi
Right hand side 
DescriptionPreview type definition
Left hand sidegpt
Right hand side 
DescriptionPreview definition
Left hand sidegpd
Right hand side 
DescriptionOpen all folds
Left hand sidezR
Right hand side 
DescriptionClose all folds
Left hand sidezM
Right hand side 
DescriptionMove up faster
Left hand side<C-K>
Right hand side10k
DescriptionQuit Nvim
Left hand side<C-Q>
Right hand side:q<CR>
DescriptionMove down faster
Left hand side<C-J>
Right hand side10j
DescriptionFormat file
Left hand side<M-F>
Right hand side:lua vim.lsp.buf.format({ timeout_ms = 5000 })<CR>
DescriptionClose current buffer
Left hand side<M-w>
Right hand side:bd<CR>
DescriptionMove to the previous buffer
Left hand side<M-h>
Right hand side:BufferLineCyclePrev<CR>
DescriptionMove to the next buffer
Left hand side<M-l>
Right hand side:BufferLineCycleNext<CR>
DescriptionSave current file
Left hand side<C-S>
Right hand side:w<CR>
DescriptionUpdate buffer
Left hand side<F5>
Right hand side:bufdo e!<CR>
DescriptionOpen Nvimtree
Left hand side<C-B>
Right hand side:NvimTreeFindFileToggle<CR>
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>
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 
DescriptionMove line up
Left hand side<M-k>
Right hand side<Cmd>lua MiniMove.move_line('up')<CR>
DescriptionMove line down
Left hand side<M-j>
Right hand side<Cmd>lua MiniMove.move_line('down')<CR>
DescriptionMove line left
Left hand side<S-Tab>
Right hand side<Cmd>lua MiniMove.move_line('left')<CR>
Description 
Left hand side<C-Down>
Right hand side<Plug>(VM-Add-Cursor-Down)
Description 
Left hand side<C-Up>
Right hand side<Plug>(VM-Add-Cursor-Up)
Description 
Left hand side<S-Right>
Right hand side<Plug>(VM-Select-l)
Description 
Left hand side<S-Left>
Right hand side<Plug>(VM-Select-h)
Description 
Left hand side<C-N>
Right hand side<Plug>(VM-Find-Under)
Description 
Left hand side<Plug>(VM-Select-BBW)
Right hand side:<C-U>call vm#commands#motion('BBW', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-gE)
Right hand side:<C-U>call vm#commands#motion('gE', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-ge)
Right hand side:<C-U>call vm#commands#motion('ge', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-E)
Right hand side:<C-U>call vm#commands#motion('E', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-e)
Right hand side:<C-U>call vm#commands#motion('e', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-B)
Right hand side:<C-U>call vm#commands#motion('B', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-b)
Right hand side:<C-U>call vm#commands#motion('b', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-W)
Right hand side:<C-U>call vm#commands#motion('W', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-w)
Right hand side:<C-U>call vm#commands#motion('w', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-l)
Right hand side:<C-U>call vm#commands#motion('l', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-k)
Right hand side:<C-U>call vm#commands#motion('k', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-j)
Right hand side:<C-U>call vm#commands#motion('j', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Select-h)
Right hand side:<C-U>call vm#commands#motion('h', v:count1, 1, 0)<CR>
Description 
Left hand side<Plug>(VM-Mouse-Column)
Right hand side:call vm#commands#mouse_column()<CR>
Description 
Left hand side<Plug>(VM-Mouse-Word)
Right hand side<Plug>(VM-Left-Mouse)<Plug>(VM-Find-Under)
Description 
Left hand side<Plug>(VM-Mouse-Cursor)
Right hand side<Plug>(VM-Left-Mouse)<Plug>(VM-Add-Cursor-At-Pos)
Description 
Left hand side<Plug>(VM-Left-Mouse)
Right hand side<LeftMouse>
Description 
Left hand side<Plug>(VM-Slash-Search)
Right hand side@=vm#commands#find_by_regex(3)<CR>
Description 
Left hand side<Plug>(VM-Start-Regex-Search)
Right hand side@=vm#commands#find_by_regex(1)<CR>
Description 
Left hand side<Plug>(VM-Find-Under)
Right hand side:<C-U>call vm#commands#ctrln(v:count1)<CR>
Description 
Left hand side<Plug>(VM-Select-All)
Right hand side:call vm#commands#find_all(0, 1)<CR>
Description 
Left hand side<Plug>(VM-Reselect-Last)
Right hand side:call vm#commands#reselect_last()<CR>
Description 
Left hand side<Plug>(VM-Select-Cursor-Up)
Right hand side:<C-U>call vm#commands#add_cursor_up(1, v:count1)<CR>
Description 
Left hand side<Plug>(VM-Select-Cursor-Down)
Right hand side:<C-U>call vm#commands#add_cursor_down(1, v:count1)<CR>
Description 
Left hand side<Plug>(VM-Add-Cursor-Up)
Right hand side:<C-U>call vm#commands#add_cursor_up(0, v:count1)<CR>
Description 
Left hand side<Plug>(VM-Add-Cursor-Down)
Right hand side:<C-U>call vm#commands#add_cursor_down(0, v:count1)<CR>
Description 
Left hand side<Plug>(VM-Add-Cursor-At-Word)
Right hand side:call vm#commands#add_cursor_at_word(1, 1)<CR>
Description 
Left hand side<Plug>(VM-Add-Cursor-At-Pos)
Right hand side:call vm#commands#add_cursor_at_pos(0)<CR>
Description 
Left hand side<Plug>PlenaryTestFile
Right hand side:lua require('plenary.test_harness').test_directory(vim.fn.expand("%:p"))<CR>
DescriptionNvim builtin
Left hand side<C-L>
Right hand side<Cmd>nohlsearch|diffupdate|normal! <C-L><CR>
DescriptionClose current buffer
Left hand sideæ
Right hand side:bd<CR>
DescriptionMove to the previous buffer
Left hand side
Right hand side:BufferLineCyclePrev<CR>
DescriptionFormat file
Left hand side
Right hand side:lua vim.lsp.buf.format({ timeout_ms = 5000 })<CR>

Visual mode keymaps

DescriptionMove right
Left hand side<Tab>
Right hand side<Cmd>lua MiniMove.move_selection('right')<CR>
DescriptionSearch on current file with Spectre
Left hand side sw
Right hand side<Esc><Cmd>lua require('spectre').open_visual()<CR>
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>
Description 
Left hand side[%
Right hand side<Plug>(MatchitVisualMultiBackward)
Description 
Left hand side\\c
Right hand side<Plug>(VM-Visual-Cursors)
Description 
Left hand side\\a
Right hand side<Plug>(VM-Visual-Add)
Description 
Left hand side\\f
Right hand side<Plug>(VM-Visual-Find)
Description 
Left hand side\\/
Right hand side<Plug>(VM-Visual-Regex)
Description 
Left hand side\\A
Right hand side<Plug>(VM-Visual-All)
Description 
Left hand side]%
Right hand side<Plug>(MatchitVisualMultiForward)
Description 
Left hand sidea%
Right hand side<Plug>(MatchitVisualTextObject)
Description 
Left hand sidegx
Right hand side<Plug>NetrwBrowseXVis
Description 
Left hand sideg%
Right hand side<Plug>(MatchitVisualBackward)
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)
DescriptionMove up faster
Left hand side<C-K>
Right hand side10k
DescriptionMove down faster
Left hand side<C-J>
Right hand side10j
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``
DescriptionMove up
Left hand side<M-k>
Right hand side<Cmd>lua MiniMove.move_selection('up')<CR>
DescriptionMove down
Left hand side<M-j>
Right hand side<Cmd>lua MiniMove.move_selection('down')<CR>
DescriptionMove left
Left hand side<S-Tab>
Right hand side<Cmd>lua MiniMove.move_selection('left')<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<C-N>
Right hand side<Plug>(VM-Find-Subword-Under)
Description 
Left hand side<Plug>(VM-Visual-Regex)
Right hand side:call vm#commands#find_by_regex(2)<CR>:call feedkeys('/', 'n')<CR>
Description 
Left hand side<Plug>(VM-Find-Subword-Under)
Right hand side<SNR>11_Visual('under')
Description 
Left hand side<Plug>(VM-Visual-Reduce)
Right hand side:<C-U>call vm#visual#reduce()<CR>
Description 
Left hand side<Plug>(VM-Visual-Add)
Right hand side<Esc>:call vm#commands#visual_add()<CR>
Description 
Left hand side<Plug>(VM-Visual-Cursors)
Right hand side<Esc>:call vm#commands#visual_cursors()<CR>
Description 
Left hand side<Plug>(VM-Visual-All)
Right hand side<SNR>11_Visual('all')
Description 
Left hand side<Plug>(VM-Visual-Find)
Right hand sidevm#operators#find(1, 1)

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>