⌨️LazyVim快捷键

2023-4-5|2025-1-1
Yawatasensei
Yawatasensei
type
status
date
slug
summary
tags
category
icon
password
😀
这是一篇LazyVim的快捷键页面,还在翻译中,没有完工。

⌨️ Keymaps

LazyVim使用which-key.nvim来帮助你记住快捷键。只需按下任意键,如<space>,你就会看到一个弹出窗口,显示所有以<space>开头的可能快捷键。
notion image
  • 默认的<leader><space>
  • 默认的<localleader>\

通用

Key
Description
Mode
j
nx
<Down>
nx
k
nx
<Up>
nx
<C-h>
跳转至左边窗口
nt
<C-j>
跳转至下边窗口
nt
<C-k>
跳转至上边窗口
nt
<C-l>
跳转至右边窗口
nt
<C-Up>
增加窗口高度
n
<C-Down>
降低窗口高度
n
<C-Left>
增加窗口宽度
n
<C-Right>
降低窗口宽度
n
<A-j>
向上
niv
<A-k>
向下
niv
<S-h>
之前的缓冲区
n
<S-l>
下一个缓冲区
n
[b
之前的缓冲区
n
]b
下一个缓冲区
n
<leader>bb
切换至其他缓冲区
n
<leader>`
切换至其他缓冲区
n
<leader>bd
删除缓冲区
n
<leader>bD
删除缓冲区并关闭当前窗口
n
<esc>
退出搜索模式并清空检索条件
in
<leader>ur
重绘/清除搜索高亮/更新差异
n
n
下一个检索结果
nxo
N
上一个检索结果
nxo
<C-s>
保存文件
ixns
<leader>K
Keywordprg
n
gco
在下方添加注释
n
gcO
在上方添加注释
n
<leader>l
Lazy
n
<leader>fn
新建文件
n
<leader>xl
位置列表
n
<leader>xq
问题列表
n
[q
上一个问题
n
]q
下一个问题
n
<leader>cf
格式化
nv
<leader>cd
行诊断
n
]d
上一个诊断
n
[d
下一个诊断
n
]e
下一个Error错误
n
[e
上一个Error错误
n
]w
下一个警告
n
[w
上一个警告
n
<leader>uf
切换自动格式化 (全局)
n
<leader>uF
切换自动格式化 (缓冲区)
n
<leader>us
切换拼写检查
n
<leader>uw
切换自动换行
n
<leader>uL
切换显示相对行号
n
<leader>ud
切换诊断信息显示
n
<leader>ul
切换行号显示
n
<leader>uc
切换隐藏字符显示
n
<leader>uT
切换Treesitter的高亮显示
n
<leader>ub
切换背景颜色
n
<leader>uh
切换嵌入提示
n
<leader>gg
Lazygit (根目录)
n
<leader>gG
Lazygit (当前工作目录)
n
<leader>gb
Git 责备当前行
n
<leader>gB
Git浏览器
n
<leader>gf
Lazygit当前文件的变动记录
n
<leader>gl
Lazygit日志
n
<leader>gL
Lazygit日志 (当前工作目录)
n
<leader>qq
退出所有
n
<leader>ui
检查位置信息
n
<leader>uI
检查文件树信息
n
<leader>L
LazyVim的更新日志
n
<leader>ft
Terminal终端 (根目录)
n
<leader>fT
Terminal (当前工作目录)
n
<c-/>
Terminal终端 (根目录)
n
<c-_>
忽略 which_key
nt
<esc><esc>
进入Normal模式
t
<C-/>
隐藏终端
t
<leader>w
进入窗口模式
n
<leader>-
下方分割窗口
n
<leader>|
右侧分割窗口
n
<leader>wd
关闭窗口
n
<leader>wm
最大化
n
<leader><tab>l
最后一个tag
n
<leader><tab>o
关闭其他所有tab
n
<leader><tab>f
第一个tab
n
<leader><tab><tab>
新建一个tab
n
<leader><tab>]
下一个tab
n
<leader><tab>d
关闭tab
n
<leader><tab>[
上一个tab
n

LSP

Key
Description
Mode
<leader>cl
LSP系统信息
n
gd
跳转到定义
n
gr
跳转到引用
n
gI
跳转到实现
n
gy
跳转到类型定义
n
gD
跳转到声明
n
K
悬停
n
gK
签名帮助
n
<c-k>
签名帮助
i
<leader>ca
代码操作
nv
<leader>cc
运行Codelens
nv
<leader>cC
刷新并显示Codelens
n
<leader>cR
重命名文件
n
<leader>cr
重命名
n
<leader>cA
来源操作
n
]]
下一个引用
n
[[
上一个引用
n
<a-n>
下一个引用
n
<a-p>
上一个引用
n

bufferline.nvim

Key
描述
Mode
<leader>bl
删除左侧缓冲区
n
<leader>bo
删除其他缓冲区
n
<leader>bp
切换固定缓冲区
n
<leader>bP
删除所有未固定缓冲区
n
<leader>br
删除右侧缓冲区
n
[b
上一个缓冲区
n
[B
将缓冲区移动到上一个位置
n
]b
下一个缓冲区
n
]B
将缓冲区移动到下一个位置
n
<S-h>
上一个缓冲区
n
<S-l>
下一个缓冲区
n

conform.nvim

Key
Description
Mode
<leader>cF
对嵌入的语言进行格式化
nv

flash.nvim

Key
Description
Mode
<c-s>
切换闪电搜索
c
r
远程闪电搜索
o
R
Treesitter搜索
ox
s
闪电搜索
nox
S
Treesitter闪电搜索
nox

grug-far.nvim

Key
Description
Mode
<leader>sr
搜索并替换
nv

mason.nvim

Key
Description
Mode
<leader>cm
打开Mason
n

neo-tree.nvim

Key
Description
Mode
<leader>be
Buffer浏览器
n
<leader>e
浏览NeoTree(Root根目录)
n
<leader>E
浏览NeoTree(cwd目录)
n
<leader>fe
浏览NeoTree(Root根目录)
n
<leader>fE
浏览NeoTree(cwd目录)
n
<leader>ge
Git浏览器
n

noice.nvim

Key
描述
Mode
<c-b>
向后滚动
nis
<c-f>
向前滚动
nis
<leader>sn
+noice
n
<leader>sna
显示所有通知
n
<leader>snd
忽略所有通知
n
<leader>snh
通知历史
n
<leader>snl
最后一条通知
n
<leader>snt
通知提取器(通过Telescope/FzfLua实现)
n
<S-Enter>
重定向命令行
c

nvim-notify

Key
Description
Mode
<leader>un
忽略所有通知
n

nvim-treesitter

Key
Description
Mode
<bs>
减少选择范围
x
<c-space>
增加选择范围
n

persistence.nvim

Key
Description
Mode
<leader>qd
退出且不保存当前会话
n
<leader>ql
恢复上一个会话
n
<leader>qs
恢复会话
n

telescope.nvim

Key
Description
Mode
<leader><space>
查找文件(根目录开始)
n
<leader>,
切换Buffer
n
<leader>/
Grep(Root Dir)
n
<leader>:
命令历史
n
<leader>fb
Buffers
n
<leader>fc
查找配置文件Config
n
<leader>ff
查找文件(在根目录)
n
<leader>fF
Find Files(cwd)
n
<leader>fg
查找文件(git文件)
n
<leader>fr
Recent
n
<leader>fR
Recent(cwd)
n
<leader>gc
Commits
n
<leader>gs
Status
n
<leader>s"
Registers
n
<leader>sa
Auto Commands
n
<leader>sb
Buffer
n
<leader>sc
Command History
n
<leader>sC
Commands
n
<leader>sd
Document Diagnostics
n
<leader>sD
Workspace Diagnostics
n
<leader>sg
Grep(Root Dir)
n
<leader>sG
Grep(cwd)
n
<leader>sh
Help Pages
n
<leader>sH
Search Highlight Groups
n
<leader>sj
Jumplist
n
<leader>sk
快捷键映射图
n
<leader>sl
Location List
n
<leader>sm
Jump to Mark
n
<leader>sM
帮助页面
n
<leader>so
选项
n
<leader>sq
Quickfix List
n
<leader>sR
Resume
n
<leader>ss
Goto Symbol
n
<leader>sS
Goto Symbol(Workspace)
n
<leader>sw
Word(Root Dir)
n
<leader>sW
Word(cwd)
n
<leader>sw
Selection(Root Dir)
v
<leader>sW
Selection(cwd)
v
<leader>uC
Colorscheme with Preview
n

todo-comments.nvim

Key
Description
Mode
<leader>st
待办清单
n
<leader>sT
Todo/Fix/Fixme
n
<leader>xt
Todo(Trouble)
n
<leader>xT
Todo/Fix/Fixme(Trouble)
n
[t
Previous Todo Comment
n
]t
Next Todo Comment
n

trouble.nvim

Key
Description
Mode
<leader>cs
Symbols (Trouble)
n
<leader>cS
LSP references/definitions/... (Trouble)
n
<leader>xL
Location List (Trouble)
n
<leader>xQ
Quickfix List (Trouble)
n
<leader>xx
Diagnostics (Trouble)
n
<leader>xX
Buffer Diagnostics (Trouble)
n
[q
Previous Trouble/Quickfix Item
n
]q
Next Trouble/Quickfix Item
n

which-key.nvim

Key
Description
Mode
<c-w><space>
Window Hydra Mode (which-key)
n
<leader>?
Buffer Keymaps (which-key)
n

CopilotChat.nvim

Key
Description
Mode
<c-s>
Submit Prompt
n
<leader>a
+ai
nv
<leader>aa
Toggle (CopilotChat)
nv
<leader>ad
Diagnostic Help (CopilotChat)
nv
<leader>ap
Prompt Actions (CopilotChat)
nv
<leader>aq
Quick Chat (CopilotChat)
nv
<leader>ax
Clear (CopilotChat)
nv

mini.surround

Key
Description
Mode
gsa
Add Surrounding
nv
gsd
Delete Surrounding
n
gsf
Find Right Surrounding
n
gsF
Find Left Surrounding
n
gsh
Highlight Surrounding
n
gsn
Update MiniSurround.config.n_lines
n
gsr
Replace Surrounding
n

neogen

Key
Description
Mode
<leader>cn
Generate Annotations (Neogen)
n

yanky.nvim

Key
Description
Mode
<leader>p
打开Yank的历史记录
nx
<p
Put and Indent Left
n
<P
Put Before and Indent Left
n
=p
Put After Applying a Filter
n
=P
Put Before Applying a Filter
n
>p
Put and Indent Right
n
>P
Put Before and Indent Right
n
[p
Put Indented Before Cursor (Linewise)
n
[P
Put Indented Before Cursor (Linewise)
n
[y
Cycle Forward Through Yank History
n
]p
Put Indented After Cursor (Linewise)
n
]P
Put Indented After Cursor (Linewise)
n
]y
Cycle Backward Through Yank History
n
gp
Put Text After Selection
nx
gP
Put Text Before Selection
nx
p
Put Text After Cursor
nx
P
Put Text Before Cursor
nx
y
Yank Text
nx

nvim-dap

Key
Description
Mode
<leader>d
+debug
nv
<leader>da
Run with Args
n
<leader>db
Toggle Breakpoint
n
<leader>dB
Breakpoint Condition
n
<leader>dc
继续
n
<leader>dC
Run to Cursor
n
<leader>dg
Go to Line (No Execute)
n
<leader>di
Step Into
n
<leader>dj
Down
n
<leader>dk
Up
n
<leader>dl
Run Last
n
<leader>do
Step Out
n
<leader>dO
Step Over
n
<leader>dp
暂停
n
<leader>dr
Toggle REPL
n
<leader>ds
Session
n
<leader>dt
Terminate
n
<leader>dw
Widgets
n

nvim-dap-ui

Key
Description
Mode
<leader>de
Eval
nv
<leader>du
Dap UI
n

aerial.nvim

Key
Description
Mode
<leader>cs
Aerial (Symbols)
n

telescope.nvim

Key
Description
Mode
<leader>ss
Goto Symbol (Aerial)
n

dial.nvim

Key
Description
Mode
<C-a>
Increment
nv
<C-x>
Decrement
nv
g<C-a>
Increment
nv
g<C-x>
Decrement
nv

fzf-lua

Key
Description
Mode
<leader><space>
查找文件 (根目录开始)
n
<leader>,
切换Buffer
n
<leader>/
Grep (Root Dir)
n
<leader>:
命令历史记录
n
<leader>fb
Buffers
n
<leader>fc
查找配置文件
n
<leader>ff
Find Files (Root Dir)
n
<leader>fF
Find Files (cwd)
n
<leader>fg
Find Files (git-files)
n
<leader>fr
Recent
n
<leader>fR
Recent (cwd)
n
<leader>gc
Commits
n
<leader>gs
状态
n
<leader>s"
Registers
n
<leader>sa
Auto Commands
n
<leader>sb
Buffer
n
<leader>sc
Command History
n
<leader>sC
Commands
n
<leader>sd
Document Diagnostics
n
<leader>sD
Workspace Diagnostics
n
<leader>sg
Grep (Root Dir)
n
<leader>sG
Grep (cwd)
n
<leader>sh
帮助页面
n
<leader>sH
Search Highlight Groups
n
<leader>sj
Jumplist
n
<leader>sk
按键映射
n
<leader>sl
Location List
n
<leader>sm
跳转到标记
n
<leader>sM
帮助页面
n
<leader>sq
Quickfix List
n
<leader>sR
继续
n
<leader>ss
Goto Symbol
n
<leader>sS
Goto Symbol (Workspace)
n
<leader>sw
Word (Root Dir)
n
<leader>sW
Word (cwd)
n
<leader>sw
Selection (Root Dir)
v
<leader>sW
Selection (cwd)
v
<leader>uC
Colorscheme with Preview
n

todo-comments.nvim

Key
Description
Mode
<leader>st
Todo
n
<leader>sT
Todo/Fix/Fixme
n

harpoon

Key
Description
Mode
<leader>1
Harpoon to File 1
n
<leader>2
Harpoon to File 2
n
<leader>3
Harpoon to File 3
n
<leader>4
Harpoon to File 4
n
<leader>5
Harpoon to File 5
n
<leader>h
Harpoon Quick Menu
n
<leader>H
Harpoon File
n

vim-illuminate

Key
Description
Mode
[[
前一个引用
n
]]
下一个引用
n

leap.nvim

Key
Description
Mode
gs
Leap from Windows
nox
s
Leap Forward to
nox
S
Leap Backward to
nox

mini.surround

Key
Description
Mode
gz
+surround
n

mini.diff

Key
Description
Mode
<leader>go
Toggle mini.diff overlay
n

mini.files

Key
Description
Mode
<leader>fm
Open mini.files (Directory of Current File)
n
<leader>fM
Open mini.files (cwd)
n

outline.nvim

Key
Description
Mode
<leader>cs
Toggle Outline
n

overseer.nvim

Key
Description
Mode
<leader>ob
Task builder
n
<leader>oc
清除缓存
n
<leader>oi
Overseer Info
n
<leader>oo
Run task
n
<leader>oq
Action recent task
n
<leader>ot
Task action
n
<leader>ow
Task list
n

refactoring.nvim

Key
Description
Mode
<leader>r
+refactor
nv
<leader>rb
Extract Block
n
<leader>rc
Debug Cleanup
n
<leader>rf
Extract Block To File
n
<leader>rf
Extract Function
v
<leader>rF
Extract Function To File
v
<leader>ri
Inline Variable
nv
<leader>rp
Debug Print Variable
nv
<leader>rP
Debug Print
n
<leader>rs
Refactor
v
<leader>rx
Extract Variable
v

telescope.nvim

Key
Description
Mode
<leader><space>
Find Files (Root Dir)
n
<leader>,
Switch Buffer
n
<leader>/
Grep (Root Dir)
n
<leader>:
Command History
n
<leader>fb
Buffers
n
<leader>fc
Find Config File
n
<leader>ff
Find Files (Root Dir)
n
<leader>fF
Find Files (cwd)
n
<leader>fg
Find Files (git-files)
n
<leader>fr
Recent
n
<leader>fR
Recent (cwd)
n
<leader>gc
Commits
n
<leader>gs
显示telescope状态
n
<leader>s"
Registers
n
<leader>sa
Auto Commands
n
<leader>sb
Buffer
n
<leader>sc
Command History
n
<leader>sC
Commands
n
<leader>sd
Document Diagnostics
n
<leader>sD
Workspace Diagnostics
n
<leader>sg
Grep (Root Dir)
n
<leader>sG
Grep (cwd)
n
<leader>sh
Help Pages
n
<leader>sH
Search Highlight Groups
n
<leader>sj
Jumplist
n
<leader>sk
显示telescope的按键映射
n
<leader>sl
Location List
n
<leader>sm
Jump to Mark
n
<leader>sM
Man Pages
n
<leader>so
显示telescope的选项
n
<leader>sq
Quickfix List
n
<leader>sR
Resume
n
<leader>ss
Goto Symbol
n
<leader>sS
Goto Symbol (Workspace)
n
<leader>sw
Word (Root Dir)
n
<leader>sW
Word (cwd)
n
<leader>sw
Selection (Root Dir)
v
<leader>sW
Selection (cwd)
v
<leader>uC
Colorscheme with Preview
n

nvim-ansible

Key
Description
Mode
<leader>ta
Ansible Run Playbook/Role
n

markdown-preview.nvim

Key
Description
Mode
<leader>cp
Markdown格式的预览
n

nvim-dap-python

Key
Description
Mode
<leader>dPc
Debug Class
n
<leader>dPt
Debug Method
n

venv-selector.nvim

Key
Description
Mode
<leader>cv
选择虚拟环境
n

vim-dadbod-ui

Key
Description
Mode
<leader>D
Toggle DBUI
n

vimtex

Key
Description
Mode
<localLeader>l
+vimtext
n

neotest

Key
Description
Mode
<leader>t
+test
n
<leader>tl
Run Last
n
<leader>to
Show Output
n
<leader>tO
Toggle Output Panel
n
<leader>tr
Run Nearest
n
<leader>ts
Toggle Summary
n
<leader>tS
Stop
n
<leader>tt
Run File
n
<leader>tT
Run All Test Files
n
<leader>tw
Toggle Watch
n

nvim-dap

Key
Description
Mode
<leader>td
Debug Nearest
n

edgy.nvim

Key
Description
Mode
<leader>ue
Edgy Toggle
n
<leader>uE
Edgy Select Window
n

chezmoi.nvim

Key
Description
Mode
<leader>sz
Chezmoi
n

mason.nvim

Key
Description
Mode
<leader>gg
GitUi (Root Dir)
n
<leader>gG
GitUi (cwd)
n

octo.nvim

Key
Description
Mode
<leader>a
+assignee (Octo)
n
<leader>c
+comment/code (Octo)
n
<leader>gi
List Issues (Octo)
n
<leader>gI
Search Issues (Octo)
n
<leader>gp
List PRs (Octo)
n
<leader>gP
Search PRs (Octo)
n
<leader>gr
List Repos (Octo)
n
<leader>gS
Search (Octo)
n
<leader>i
+issue (Octo)
n
<leader>l
+label (Octo)
n
<leader>p
+pr (Octo)
n
<leader>r
+react (Octo)
n
<leader>v
+review (Octo)
n

fzf-lua

Key
Description
Mode
<leader>fp
项目
n

telescope.nvim

Key
Description
Mode
<leader>fp
项目
n

kulala.nvim

主要用于API调试
Key
Description
Mode
<leader>R
+Rest
n
<leader>Rn
跳转到下一个请求
n
<leader>Rp
跳转到上一个请求
n
<leader>Rs
发送请求
n
<leader>Rt
收起/打开head和body
n
 
💡
有关NeoVim安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~
优化您的WordPress站点- 有效的搜索引擎优化技巧Android免拔SIM卡使用官方TikTok
Loading...