A modern Neovim configuration with full support for Python, Lua, C++, Markdown, LaTeX, and more
- Install and initialize:
lazyman -w Jdhao - Configuration category: Personal
- Base configuration: Custom
- Plugin manager: Lazy
- Installation location:
~/.config/nvim-Jdhao
Git repository
https://github.com/jdhao/nvim-config
Neovimcraft entry
https://neovimcraft.com/plugin/jdhao/nvim-config
Dotfyle entry
https://dotfyle.com/jdhao/nvim-config
Website
https://jdhao.github.io
Lazy managed plugins
Jdhao Keymaps
Normal mode keymaps
| Description | |
|---|
| Left hand side | u |
| Right hand side | :MundoToggle<CR> |
| Description | |
|---|
| Left hand side | t |
| Right hand side | :<C-U>Vista!!<CR> |
| Description | |
|---|
| Left hand side | s |
| Right hand side | |
| Description | insert line above |
|---|
| Left hand side | O |
| Right hand side | printf('m`%sO<Esc>``', v:count1) |
| Description | insert line below |
|---|
| Left hand side | o |
| Right hand side | printf('m`%so<Esc>``', v:count1) |
| Description | |
|---|
| Left hand side | # |
| Right hand side | |
| Description | Nvim builtin |
|---|
| Left hand side | & |
| Right hand side | :&&<CR> |
| Description | |
|---|
| Left hand side | * |
| Right hand side | |
| Description | |
|---|
| Left hand side | ,dp |
| Right hand side | :<C-U>GdbStartPDB python -m pdb %<CR> |
| Description | |
|---|
| Left hand side | ,fr |
| Right hand side | :<C-U>Leaderf mru --popup --absolute-path<CR> |
| Description | |
|---|
| Left hand side | ,fb |
| Right hand side | :<C-U>Leaderf buffer --popup<CR> |
| Description | |
|---|
| Left hand side | ,ft |
| Right hand side | :<C-U>Leaderf bufTag --popup<CR> |
| Description | |
|---|
| Left hand side | ,fh |
| Right hand side | :<C-U>Leaderf help --popup<CR> |
| Description | |
|---|
| Left hand side | ,fg |
| Right hand side | :<C-U>Leaderf rg --no-messages --popup<CR> |
| Description | |
|---|
| Left hand side | ,ff |
| Right hand side | :<C-U>Leaderf file --popup<CR> |
| Description | |
|---|
| Left hand side | ,cb |
| Right hand side | |
| Description | toggle cursor column |
|---|
| Left hand side | ,cl |
| Right hand side | <Cmd>call utils#ToggleCursorCol()<CR> |
| Description | yank entire buffer |
|---|
| Left hand side | ,y |
| Right hand side | <Cmd>%yank<CR> |
| Description | check syntax group |
|---|
| Left hand side | ,st |
| Right hand side | <Cmd>call utils#SynGroup()<CR> |
| Description | remove trailing space |
|---|
| Left hand side | , |
| Right hand side | <Cmd>StripTrailingWhitespace<CR> |
| Description | change cwd |
|---|
| Left hand side | ,cd |
| Right hand side | <Cmd>lcd %:p:h<CR><Cmd>pwd<CR> |
| Description | reselect last pasted area |
|---|
| Left hand side | ,v |
| Right hand side | printf('`[%s`]', getregtype()[0]) |
| Description | reload init.lua |
|---|
| Left hand side | ,sv |
| Right hand side | |
| Description | open init.lua |
|---|
| Left hand side | ,ev |
| Right hand side | <Cmd>tabnew $MYVIMRC | tcd %:h<CR> |
| Description | quit nvim |
|---|
| Left hand side | ,Q |
| Right hand side | <Cmd>qa!<CR> |
| Description | quit current window |
|---|
| Left hand side | ,q |
| Right hand side | <Cmd>x<CR> |
| Description | save buffer |
|---|
| Left hand side | ,w |
| Right hand side | <Cmd>update<CR> |
| Description | paste above current line |
|---|
| Left hand side | ,P |
| Right hand side | m`O<Esc>p`` |
| Description | paste below current line |
|---|
| Left hand side | ,p |
| Right hand side | m`o<Esc>p`` |
| Description | |
|---|
| Left hand side | / |
| Right hand side | /\v |
| Description | |
|---|
| Left hand side | 0 |
| Right hand side | g0 |
| Description | |
|---|
| Left hand side | ; |
| Right hand side | : |
| Description | |
|---|
| Left hand side | C |
| Right hand side | "_C |
| Description | |
|---|
| Left hand side | H |
| Right hand side | ^ |
| Description | join line |
|---|
| Left hand side | J |
| Right hand side | |
| Description | |
|---|
| Left hand side | L |
| Right hand side | g_ |
| Description | |
|---|
| Left hand side | N |
| Right hand side | |
| Description | Nvim builtin |
|---|
| Left hand side | Y |
| Right hand side | y$ |
| Description | first qf item |
|---|
| Left hand side | [Q |
| Right hand side | <Cmd>cfirst<CR>zv |
| Description | previous qf item |
|---|
| Left hand side | [q |
| Right hand side | <Cmd>cprevious<CR>zv |
| Description | first location item |
|---|
| Left hand side | [L |
| Right hand side | <Cmd>lfirst<CR>zv |
| Description | previous location item |
|---|
| Left hand side | [l |
| Right hand side | <Cmd>lprevious<CR>zv |
| Description | delete buffer |
|---|
| Left hand side | \d |
| Right hand side | <Cmd>bprevious | bdelete #<CR> |
| Description | close qf and location list |
|---|
| Left hand side | \x |
| Right hand side | <Cmd>windo lclose | cclose <CR> |
| Description | last qf item |
|---|
| Left hand side | ]Q |
| Right hand side | <Cmd>clast<CR>zv |
| Description | next qf item |
|---|
| Left hand side | ]q |
| Right hand side | <Cmd>cnext<CR>zv |
| Description | last location item |
|---|
| Left hand side | ]L |
| Right hand side | <Cmd>llast<CR>zv |
| Description | next location item |
|---|
| Left hand side | ]l |
| Right hand side | <Cmd>lnext<CR>zv |
| Description | |
|---|
| Left hand side | ^ |
| Right hand side | g^ |
| Description | |
|---|
| Left hand side | cc |
| Right hand side | "_cc |
| Description | |
|---|
| Left hand side | c |
| Right hand side | "_c |
| Description | |
|---|
| Left hand side | ga |
| Right hand side | <Plug>(UnicodeGA) |
| Description | join visual lines |
|---|
| Left hand side | gJ |
| Right hand side | |
| Description | go to buffer (backward) |
|---|
| Left hand side | gB |
| Right hand side | <Cmd>call buf_utils#GoToBuffer(v:count, "backward")<CR> |
| Description | go to buffer (forward) |
|---|
| Left hand side | gb |
| Right hand side | <Cmd>call buf_utils#GoToBuffer(v:count, "forward")<CR> |
| Description | |
|---|
| Left hand side | j |
| Right hand side | v:count == 0 ? 'gj' : 'j' |
| Description | |
|---|
| Left hand side | k |
| Right hand side | v:count == 0 ? 'gk' : 'k' |
| Description | |
|---|
| Left hand side | n |
| Right hand side | |
| Description | |
|---|
| Left hand side | s |
| Right hand side | |
| Description | |
|---|
| Left hand side | <Plug>PlenaryTestFile |
| Right hand side | :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p"))<CR> |
| Description | |
|---|
| Left hand side | <Down> |
| Right hand side | <C-W>j |
| Description | |
|---|
| Left hand side | <Up> |
| Right hand side | <C-W>k |
| Description | |
|---|
| Left hand side | <Right> |
| Right hand side | <C-W>l |
| Description | |
|---|
| Left hand side | <Left> |
| Right hand side | <C-W>h |
| Description | move line down |
|---|
| Left hand side | <M-j> |
| Right hand side | <Cmd>call utils#SwitchLine(line("."), "down")<CR> |
| Description | move line up |
|---|
| Left hand side | <M-k> |
| Right hand side | <Cmd>call utils#SwitchLine(line("."), "up")<CR> |
| Description | toggle spell |
|---|
| Left hand side | <F11> |
| Right hand side | <Cmd>set spell!<CR> |
| Description | Nvim builtin |
|---|
| Left hand side | <C-L> |
| Right hand side | <Cmd>nohlsearch|diffupdate|normal! <C-L><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 | g_ |
| Description | Nvim builtin |
|---|
| Left hand side | * |
| Right hand side | y/\V<C-R>"<CR> |
| Description | |
|---|
| Left hand side | ; |
| Right hand side | : |
| Description | |
|---|
| Left hand side | <lt> |
| Right hand side | <lt>gv |
| Description | |
|---|
| Left hand side | > |
| Right hand side | >gv |
| Description | |
|---|
| Left hand side | H |
| Right hand side | ^ |
| Description | |
|---|
| Left hand side | L |
| Right hand side | g_ |
| Description | |
|---|
| Left hand side | c |
| Right hand side | "_c |
| Description | buffer text object |
|---|
| Left hand side | iB |
| Right hand side | <Cmd>call text_obj#Buffer()<CR> |
| Description | URL text object |
|---|
| Left hand side | iu |
| Right hand side | <Cmd>call text_obj#URL()<CR> |
| Description | |
|---|
| Left hand side | p |
| Right hand side | "_c<Esc>p |
| Description | move selection down |
|---|
| Left hand side | <M-j> |
| Right hand side | <Cmd>call utils#MoveSelection("down")<CR> |
| Description | move selection up |
|---|
| Left hand side | <M-k> |
| Right hand side | <Cmd>call utils#MoveSelection("up")<CR> |
Operator mode keymaps
| Description | buffer text object |
|---|
| Left hand side | iB |
| Right hand side | <Cmd>call text_obj#Buffer()<CR> |
| Description | URL text object |
|---|
| Left hand side | iu |
| Right hand side | <Cmd>call text_obj#URL()<CR> |
| Description | |
|---|
| Left hand side | s |
| Right hand side | |