vim
[Vim Tips]Jump to link in Vim's help
2021-01-05
When I use Vim's help, I usually forget how to jump to the links. So I write the tips down to keep mind in them. The links in Vim’ help is not really links, they are tags. Following shortcut will simplely jump into tags and jump back. Follow the link(jump to the link) Ctrl-] Jump back previous location Ctrl-t or Ctrl-o Also you can jump to a specific subjects(tags) by using :ta {subjects}” instead of Ctrl-].…
[Vim Tips]设置Windows Terminal内vim的光标
2020-11-07
本文主要解决 vim 和 Windows Terminal 在光标上的一些兼容性问题。 设置光标的形状 在 Windows Terminal 里使用 wsl2 下的 vim,光标不能根据模式的变化而变化,比如 normal 模式下是方块(So…
[Vim Tips]在vim和tmux中开启真彩色
2020-11-06
在 vim 和 tmux 中开启真彩色,可以获得更好的视觉体验。 在 vimrc 中加入下面的设置: if exists('+termguicolors') let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" set termguicolors endif Tmux 需要在 .tmux.conf 配置文件里添加下面的内容: set -g default-terminal tmux-256color #…
让 Windows 中的 Vim 支持 Python
2020-04-08
这段时间一直在家,于是又折腾起了 Vim。今天遇到了一个问题,Vim 有很多插件是依赖 Python 的,而我在 Windows 上安装的 Vim 不能正确地调用之前安装的 Anaconda 中的 Py…