Vim 相关技巧

收集一些常用的 Vim 相关技巧,包括插件、快捷键、命令等。(using lazyvim)

Nice Motion

  • f{char}: 移动到下一个 {char} 出现的位置, 类似于 t{char}
  • F{char}: 移动到上一个 {char} 出现的位置, 类似于 T{char}
  • ;,: 重复上一次的 f, F, t, T 命令

Plugins

  • lualine: vscode like status line
  • gitblame: show git blame history

Keymaps

1. todo-comments keymaps

|Key|Description|Mode| |st | Todo |n| |sT (not working)| Todo/Fix/Fixme |n| |xt (not working)| Todo (Trouble) |n| |xT | Todo/Fix/Fixme (Trouble) |n| |[t | Previous Todo Comment |n| |]t | Next Todo Comment |n|

Issues

1. bug: Floating terminal is now static at bottom! #4740

现在 lazyvim 默认的终端位置在底部,你可以通过设置 bug: Floating terminal is now static at bottom! #4740

2

References

Articles

1.boost-your-coding-speed-with-vim-tricks 2.lazyvim.org

Videos

1.Lazy vim zero to ide

Books

1.Practical Vim 2. LazyVim for Ambitious Developers

This book shows how to config lazyvim to be a powerful IDE. 3. …