有使用 vim 写代码的兄弟姐妹么?你们都安装了哪些插件?
先祝大家新年快乐!
如题!
有直接使用 vim coding 的兄弟么?( vim/neovim ) 你们都使用了哪些插件?
比如, 插件管理器,vundle or vim-plug ? 文件浏览,nerdtree ? 状态栏,airline ? 或者,什么,文件查找搜索,fzf ? CtrlP? 又或者什么代码提示 Coc 还是 LSP ?
等等……
分享一下。
先祝大家新年快乐!
如题!
有直接使用 vim coding 的兄弟么?( vim/neovim ) 你们都使用了哪些插件?
比如, 插件管理器,vundle or vim-plug ? 文件浏览,nerdtree ? 状态栏,airline ? 或者,什么,文件查找搜索,fzf ? CtrlP? 又或者什么代码提示 Coc 还是 LSP ?
等等……
分享一下。
Plug ‘tpope/vim-fugitive’
Plug ‘vim-airline/vim-airline’
Plug ‘vim-airline/vim-airline-themes’
Plug ‘nathanaelkane/vim-indent-guides’
Plug ‘morhetz/gruvbox’
Plug ‘scrooloose/nerdtree’
Plug ‘Xuyuanp/nerdtree-git-plugin’
Plug ‘edkolev/tmuxline.vim’ ” See tmuxline.vim settings section
Plug ‘lervag/vimtex’
Plug ‘godlygeek/tabular’ ” tabular plugin must come before vim-markdown
Plug ‘plasticboy/vim-markdown’
Plug ‘JamshedVesuna/vim-markdown-preview’
Plug ‘neoclide/coc.nvim’
Plug ‘SirVer/ultisnips’
Plug ‘honza/vim-snippets’
Plug ‘Yggdroot/LeaderF’, { ‘do’: ‘:LeaderfInstallCExtension’ }
Plug ‘psliwka/vim-smoothie’
Plug ‘skywind3000/Leaderf-snippet’
地址在这里: https://github.com/xzhangxa/dotfiles/blob/master/vimrc
– 里面虽然有 gruvbox colorscheme 插件但是默认没有设它,因为要自动化 vim-plug 装插件引用一个还没装的会有 error ;
– 用 YouCompleteMe 做 LSP client,别的看起来都很折腾,相对来说 YouCompleteMe 最不折腾就用这个了,想等 neovim 原生的 LSP client 出来看怎么样;
– FZF 和 fzf.vim 大量使用,FZF 用 vim plugin 管理自动化脚本直接装给 zsh 。fzf.vim 非常有用,现在我用它来管理 buffers/windows/git history/search (ripgrep);
– 别的一些很大众的插件也都装了,文件里能看到就不挨个说了。
总得来说这个插件数量很少所以没有感觉有延迟或者什么问题,虽然现在在用 neovim 但是还是用这个 vimrc 并保持 vim 的设置。同级目录里放了其它一些配置文件和自动化 shell 环境安装脚本( for Debian, Mac),vimrc 里一些依赖在安装脚本里能找到,就不详细说了。
call plug#begin(‘~/.vim/plugged’)
” git
Plug ‘tpope/vim-fugitive’
” nerdtree
Plug ‘preservim/nerdtree’
Plug ‘Xuyuanp/nerdtree-git-plugin’
” clang-foramt
” Plug ‘rhysd/vim-clang-format’
” colorscheme
Plug ‘vim-airline/vim-airline’
Plug ‘challenger-deep-theme/vim’, { ‘as’: ‘challenger-deep’ }
” translator
Plug ‘voldikss/vim-translator’
” coc
Plug ‘neoclide/coc.nvim’, {‘branch’: ‘release’}
” history
Plug ‘mhinz/vim-startify’
” tagbar
Plug ‘preservim/tagbar’
Plug ‘mg979/vim-visual-multi’, {‘branch’: ‘master’}
call plug#end()
” general =====================
Plug ‘junegunn/fzf’, { ‘do’: { -> fzf#install() } }
Plug ‘junegunn/fzf.vim’
” code ======================== Plug ‘tommcdo/vim-fugitive-blame-ext’ ” git 信息
Plug ‘tpope/vim-fugitive’ ” git 相关
Plug ‘dense-analysis/ale’
Plug ‘liuchengxu/vista.vim’ ” tag
Plug ‘ap/vim-css-color’
Plug ‘scrooloose/nerdcommenter’ ” 注释
Plug ‘tpope/vim-surround’ ” 快捷操作
” coc.nvim
Plug ‘neoclide/coc.nvim’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘fannheyward/coc-marketplace’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘iamcco/coc-actions’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘neoclide/coc-lists’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘neoclide/coc-yank’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘neoclide/coc-snippets’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘iamcco/coc-spell-checker’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘neoclide/coc-git’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘weirongxu/coc-explorer’, {‘do’: ‘yarn install –frozen-lockfile’}
Plug ‘josa42/coc-sh’, {‘do’: ‘yarn install –frozen-lockfile && npm i -g bash-language-server’, ‘for’: ‘sh’}
” rust
Plug ‘fannheyward/coc-rust-analyzer’, {‘do’: ‘yarn install –frozen-lockfile’, ‘for’: ‘rust’}
” gopls
Plug ‘josa42/coc-go’, {‘do’: ‘yarn install –frozen-lockfile’, ‘for’: ‘go’}
” markdown
” Plug ‘plasticboy/vim-markdown’, {‘for’: ‘markdown’}
Plug ‘iamcco/markdown-preview.nvim’, { ‘do’: ‘cd app & yarn install’ }
Plug ‘neoclide/coc-json’, {‘do’: ‘yarn install –frozen-lockfile’, ‘for’: ‘json’}
Plug ‘neoclide/coc-yaml’, {‘do’: ‘yarn install –frozen-lockfile’, ‘for’: ‘yaml’}
Plug ‘neoclide/coc-css’, {‘do’: ‘yarn install –frozen-lockfile’, ‘for’: ‘css’}
https://github.com/howie6879/vim_config
@wqzjk393 主要是个人习惯,neovim + tmux 一套组合拳已经习惯了。而且还可以把公司服务器当作开发机来使唤,自己的机器就开个 ssh 上去就行。
fzf.vim: https://github.com/junegunn/fzf.vim
leaderf: https://github.com/Yggdroot/LeaderF
可以参考我这个
fatal: could not create leading directories of ‘/Users/yazoox/.cache/vimfiles/repos/github.com/Shougo/dein.vim’: Permission denied
手工先创建 这个目录,然后再 sudo curl -sLf https://spacevim.org/install.sh | bash 可以成功。
但是启动 nvim/vim 的时候,还是报错
Error detected while processing function SpaceVim#begin[75]..SpaceVim#default#options:
line 70:
E739: Cannot create directory /Users/yazoox/.cache//SpaceVim: permission denied
Error detected while processing function SpaceVim#custom#load[34]..<SNR>19_load_glob_conf:
line 13:
E482: Can’t open file /Users/yazoox/.cache/SpaceVim/conf/.SpaceVim.dinit.json for writing: no such f
ile or directory
Error detected while processing function SpaceVim#end[97]..SpaceVim#plugins#load[2]..SpaceVim#plugin
s#begin[9]..dein#begin[1]..dein#util#_begin[20]..dein#util#_get_runtime_path[5]..dein#util#_get_cach
e_path:
line 9:
E739: Cannot create directory /Users/yazoox/.cache/vimfiles: permission denied
Press ENTER or type command to continu
不知道是不是我用的 zsh 不是 bash 的原因…
call dein#add(‘~/.cache/dein/repos/github.com/Shougo/dein.vim’)
call dein#add(‘mhinz/vim-startify’)
call dein#add(‘junegunn/vim-easy-align’)
call dein#add(‘junegunn/goyo.vim’)
call dein#add(‘junegunn/limelight.vim’)
call dein#add(‘junegunn/seoul256.vim’)
call dein#add(‘ianva/vim-youdao-translater’)
call dein#add(‘matze/vim-move’)
call dein#add(‘yuttie/comfortable-motion.vim’)
call dein#add(‘tpope/vim-surround’)
call dein#add(‘tpope/vim-repeat’)
call dein#add(‘jiangmiao/auto-pairs’)
call dein#add(‘preservim/nerdcommenter’)
call dein#end()
call dein#save_state()
endif
““