Josean Martinez video tutorial
- Install and initialize:
lazyman -w Josean - Configuration category: Personal
- Base configuration: Custom
- Plugin manager: Packer
- Installation location:
~/.config/nvim-Josean
Git repository
https://github.com/josean-dev/dev-environment-files
YouTube channel
https://www.youtube.com/@joseanmartinez
Packer managed plugins
Josean Keymaps
Normal mode keymaps
| Description | Go to previous harpoon mark |
|---|
| Left hand side | hp |
| Right hand side | <Cmd>lua require('harpoon.ui').nav_prev()<CR> |
| Description | Go to next harpoon mark |
|---|
| Left hand side | hn |
| Right hand side | <Cmd>lua require('harpoon.ui').nav_next()<CR> |
| Description | Mark file with harpoon |
|---|
| Left hand side | hm |
| Right hand side | <Cmd>lua require('harpoon.mark').add_file()<CR> |
| Description | Refresh file explorer |
|---|
| Left hand side | er |
| Right hand side | <Cmd>NvimTreeRefresh<CR> |
| Description | Collapse file explorer |
|---|
| Left hand side | ec |
| Right hand side | <Cmd>NvimTreeCollapse<CR> |
| Description | Toggle file explorer on current file |
|---|
| Left hand side | ef |
| Right hand side | <Cmd>NvimTreeFindFileToggle<CR> |
| Description | Toggle file explorer |
|---|
| Left hand side | ee |
| Right hand side | <Cmd>NvimTreeToggle<CR> |
| Description | Save session for auto session root dir |
|---|
| Left hand side | ws |
| Right hand side | <Cmd>SessionSave<CR> |
| Description | Restore session for cwd |
|---|
| Left hand side | wr |
| Right hand side | <Cmd>SessionRestore<CR> |
| Description | Find string under cursor in cwd |
|---|
| Left hand side | fc |
| Right hand side | <Cmd>Telescope grep_string<CR> |
| Description | Find string in cwd |
|---|
| Left hand side | fs |
| Right hand side | <Cmd>Telescope live_grep<CR> |
| Description | Fuzzy find recent files |
|---|
| Left hand side | fr |
| Right hand side | <Cmd>Telescope oldfiles<CR> |
| Description | Fuzzy find files in cwd |
|---|
| Left hand side | ff |
| Right hand side | <Cmd>Telescope find_files<CR> |
| Description | |
|---|
| Left hand side | sm |
| Right hand side | |
| Description | Open current buffer in new tab |
|---|
| Left hand side | tf |
| Right hand side | <Cmd>tabnew %<CR> |
| Description | Go to previous tab |
|---|
| Left hand side | tp |
| Right hand side | <Cmd>tabp<CR> |
| Description | Go to next tab |
|---|
| Left hand side | tn |
| Right hand side | <Cmd>tabn<CR> |
| Description | Close current tab |
|---|
| Left hand side | tx |
| Right hand side | <Cmd>tabclose<CR> |
| Description | Open new tab |
|---|
| Left hand side | to |
| Right hand side | <Cmd>tabnew<CR> |
| Description | Close current split |
|---|
| Left hand side | sx |
| Right hand side | <Cmd>close<CR> |
| Description | Make splits equal size |
|---|
| Left hand side | se |
| Right hand side | <C-W>= |
| Description | Split window horizontally |
|---|
| Left hand side | sh |
| Right hand side | <C-W>s |
| Description | Split window vertically |
|---|
| Left hand side | sv |
| Right hand side | <C-W>v |
| Description | Decrement number |
|---|
| Left hand side | - |
| Right hand side | <C-X> |
| Description | Increment number |
|---|
| Left hand side | + |
| Right hand side | <C-A> |
| Description | Clear search highlights |
|---|
| Left hand side | nh |
| Right hand side | :nohl<CR> |
| Description | |
|---|
| Left hand side | % |
| Right hand side | <Plug>(MatchitNormalForward) |
| Description | Nvim builtin |
|---|
| Left hand side | & |
| Right hand side | :&&<CR> |
| Description | Nvim builtin |
|---|
| Left hand side | Y |
| Right hand side | y$ |
| Description | |
|---|
| Left hand side | [% |
| Right hand side | <Plug>(MatchitNormalMultiBackward) |
| Description | |
|---|
| Left hand side | ]% |
| Right hand side | <Plug>(MatchitNormalMultiForward) |
| Description | |
|---|
| Left hand side | g% |
| Right hand side | <Plug>(MatchitNormalBackward) |
| Description | |
|---|
| Left hand side | grr |
| Right hand side | <Plug>ReplaceWithRegisterLine |
| Description | |
|---|
| Left hand side | gr |
| Right hand side | <Plug>ReplaceWithRegisterOperator |
| 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-Bslash> |
| Right hand side | :<C-U>TmuxNavigatePrevious<CR> |
| Description | |
|---|
| Left hand side | <C-K> |
| Right hand side | :<C-U>TmuxNavigateUp<CR> |
| Description | |
|---|
| Left hand side | <C-J> |
| Right hand side | :<C-U>TmuxNavigateDown<CR> |
| Description | |
|---|
| Left hand side | <C-H> |
| Right hand side | :<C-U>TmuxNavigateLeft<CR> |
| 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 | <Plug>ReplaceWithRegisterVisual |
| Right hand side | :<C-U>call setline('.', getline('.'))|execute 'silent! call repeat#setreg("\<lt>Plug>ReplaceWithRegisterVisual", v:register)'|call ReplaceWithRegister#SetRegister()|if ReplaceWithRegister#IsExprReg()| let g:ReplaceWithRegister#expr = getreg('=')|endif|execute 'normal!' ReplaceWithRegister#VisualMode()|call ReplaceWithRegister#Operator('visual', "\<lt>Plug>ReplaceWithRegisterVisual")<CR> |
| Description | |
|---|
| Left hand side | <Plug>ReplaceWithRegisterLine |
| Right hand side | :<C-U>call setline('.', getline('.'))|execute 'silent! call repeat#setreg("\<lt>Plug>ReplaceWithRegisterLine", v:register)'|call ReplaceWithRegister#SetRegister()|if ReplaceWithRegister#IsExprReg()| let g:ReplaceWithRegister#expr = getreg('=')|endif|call ReplaceWithRegister#SetCount()|execute 'normal! V' . v:count1 . "_\<lt>Esc>"|call ReplaceWithRegister#Operator('visual', "\<lt>Plug>ReplaceWithRegisterLine", 1)<CR> |
| Description | |
|---|
| Left hand side | <Plug>ReplaceWithRegisterExpressionSpecial |
| Right hand side | :<C-U>let g:ReplaceWithRegister#expr = getreg('=')|execute 'normal!' v:count1 . '.'<CR> |
| Description | |
|---|
| Left hand side | <Plug>ReplaceWithRegisterOperator |
| Right hand side | ReplaceWithRegister#OperatorExpression() |
| Description | |
|---|
| Left hand side | <C-L> |
| Right hand side | :<C-U>TmuxNavigateRight<CR> |
Visual mode keymaps
| Description | Nvim builtin |
|---|
| Left hand side | # |
| Right hand side | y?\V<C-R>"<CR> |
| Description | |
|---|
| Left hand side | % |
| Right hand side | <Plug>(MatchitVisualForward) |
| Description | Nvim builtin |
|---|
| Left hand side | * |
| Right hand side | y/\V<C-R>"<CR> |
| Description | |
|---|
| Left hand side | [% |
| Right hand side | <Plug>(MatchitVisualMultiBackward) |
| Description | |
|---|
| Left hand side | ]% |
| Right hand side | <Plug>(MatchitVisualMultiForward) |
| Description | |
|---|
| Left hand side | a% |
| Right hand side | <Plug>(MatchitVisualTextObject) |
| Description | |
|---|
| Left hand side | g% |
| Right hand side | <Plug>(MatchitVisualBackward) |
| Description | |
|---|
| Left hand side | gr |
| Right hand side | <Plug>ReplaceWithRegisterVisual |
| 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 | <C-Bslash> |
| Right hand side | :<C-U>TmuxNavigatePrevious<CR> |
| Description | |
|---|
| Left hand side | <C-K> |
| Right hand side | :<C-U>TmuxNavigateUp<CR> |
| Description | |
|---|
| Left hand side | <C-J> |
| Right hand side | :<C-U>TmuxNavigateDown<CR> |
| Description | |
|---|
| Left hand side | <C-H> |
| Right hand side | :<C-U>TmuxNavigateLeft<CR> |
| Description | |
|---|
| Left hand side | <Plug>ReplaceWithRegisterVisual |
| Right hand side | :<C-U>call setline('.', getline('.'))|execute 'silent! call repeat#setreg("\<lt>Plug>ReplaceWithRegisterVisual", v:register)'|call ReplaceWithRegister#SetRegister()|if ReplaceWithRegister#IsExprReg()| let g:ReplaceWithRegister#expr = getreg('=')|endif|call ReplaceWithRegister#Operator('visual', "\<lt>Plug>ReplaceWithRegisterVisual")<CR> |
| Description | |
|---|
| Left hand side | <C-L> |
| Right hand side | :<C-U>TmuxNavigateRight<CR> |
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 side | g% |
| 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 | <C-Bslash> |
| Right hand side | :<C-U>TmuxNavigatePrevious<CR> |
| Description | |
|---|
| Left hand side | <C-K> |
| Right hand side | :<C-U>TmuxNavigateUp<CR> |
| Description | |
|---|
| Left hand side | <C-J> |
| Right hand side | :<C-U>TmuxNavigateDown<CR> |
| Description | |
|---|
| Left hand side | <C-H> |
| Right hand side | :<C-U>TmuxNavigateLeft<CR> |
| Description | |
|---|
| Left hand side | <C-L> |
| Right hand side | :<C-U>TmuxNavigateRight<CR> |