mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
modify readme
This commit is contained in:
parent
cd5606ff51
commit
031da46a98
33
README.md
33
README.md
@ -1,18 +1,43 @@
|
|||||||

|

|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
## install vim-plug
|
|
||||||
|
|
||||||
|
## download repo
|
||||||
|
git clone https://github.com/yuanyahao333/vimconfig.git ~/.vim_runtime
|
||||||
|
git checkout myConfig
|
||||||
|
|
||||||
|
## install vim-plug
|
||||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
|
||||||
## install coc.nvim
|
## install coc.nvim
|
||||||
|
download nodejs
|
||||||
|
vim test
|
||||||
|
:PlugInstall
|
||||||
|
:q
|
||||||
|
cd ~/.vim/plugged/coc.nvim
|
||||||
|
npm ci
|
||||||
|
|
||||||
git clone --depth=1 https://github.com/yuanyahao333/vimconfig.git ~/.vim_runtime
|
config language server
|
||||||
git checkout myConfig
|
vim test
|
||||||
|
|
||||||
|
:CocConfig
|
||||||
|
{
|
||||||
|
"languageserver": {
|
||||||
|
"go": {
|
||||||
|
"command": "gopls",
|
||||||
|
"rootPatterns": ["go.mod"],
|
||||||
|
"trace.server": "verbose",
|
||||||
|
"filetypes": ["go"]
|
||||||
|
},
|
||||||
|
"clangd": {
|
||||||
|
"command": "clangd",
|
||||||
|
"rootPatterns": ["compile_flags.txt", "compile_commands.json"],
|
||||||
|
"filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
## basic version
|
## basic version
|
||||||
|
|
||||||
sh ~/.vim_runtime/install_basic_vimrc.sh
|
sh ~/.vim_runtime/install_basic_vimrc.sh
|
||||||
## awesome version
|
## awesome version
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user