Vim9
Since the neovim API is not stable, I quit using neovim, so this is the configuaration of Original Vim with the version 9
Liked fonts
- Monolisa(13, 100, 135)
- Menlo(13, 100, 110)
- JetBrainsMono
- version 9.0.1833 works
Note: all fonts are nerd-font patched.
Notes
- remove
set termguicolors
// https://apple.stackexchange.com/questions/165158/where-are-terminal-app-profiles-files-located 2. you can backup terminal.app config file // 如果移除了那么应该使用 ctermfg, 否则 guifg 即可。
- Meta key
In terminal setting, you can set 'option' key as 'meta' key.
-
change zsh full path https://stackoverflow.com/a/64441730
-
dont use
f
as prefix to map since it overlap with vim search -
use /* stylelint-disable */ to disable autofix certain line
注:tmux session 可以按照需求来 group 代码库来做成一个 project, dev server 可以放到 tmux split 里,平时开发就直接全屏 tmux 里开发的那个 split。
-
Ctrl + b + % to split the current pane vertically.
-
Ctrl + b + " to split the current pane horizontally.
-
You can toggle the full-screen mode by using the same keyboard shortcut – Prefix + z
-
注意 im-select 需要看下自己的默认键盘
-
lsp config https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#eslint
-
current version neovim 0.10.0
-
很多插件直接参考了这里 https://www.lazyvim.org/plugins
-
有了鼠标的能力之后,你会发现 neo-tree 也可以直接拖动宽度了
-
找不到要改那个颜色, 可以直接去插件代码仓库看怎么定义的
-
出现一个很奇怪的现象就是 vim 一打开 telscope 就自动打开了,我现在用了 iterm2 nightly 的版本倒是解决了,很奇怪
-
bufferline 插件会让进入的vim的时候抖动一下,所以移除了
-
如果 eslint 等 lsp 安装失败了 mason,那么可能是 npm 源的问题,改成默认的源就好了。
-
brew 用国内的源(https://zhuanlan.zhihu.com/p/324691527), 注意如果用 zsh 那么记得导出下变量,可以直接用下面的命令
cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc source ~/.zshrc
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
- nerdfont 字体 fontforge -script /Users/cary/Downloads/nerd-fonts-master\ 2/font-patcher /Users/cary/Library/Fonts/BerkeleyMono-Regular.otf -c
里面的 -c 可以直接加入所有的 glyph
-
Plug 'JoosepAlviste/nvim-ts-context-commentstring' 下面这个插件会影响性能 很严重
-
you can use tab to auto complete in vim commandline mode
, , ,
https://alpha2phi.medium.com/neovim-for-beginners-built-in-completion-8bbbb0f16c9c
TODO
- Vim git previous commit up down in fzf(虽然不能用 key map 但是发现可以直接 鼠标/触摸板 进行滚动)
- tmux copy vi mode not work in terminal.app(but you can use
fn
to select), maybe because xclip? - jsx color heighlight
- zsh,回车后下一行开头会回显命令
- react 多行 comment 的时候,会出现多个 {} 想要一个怎么半
- 大文件还是公司的电脑上可以浮现,以及测试了下调用 :LspStop 才能解决9万行大文件
- ts comment 的问题应该还是 treesitter 的问题,所以 tscomment 代码能改监听 trssiter 是否被 disabled了 应该就行了
- send command to all tmux sessions(like source all .zshrc on all sessions)