2022-08-26 09:56:17 +00:00
|
|
|
# vim
|
|
|
|
|
2022-10-09 03:04:29 +00:00
|
|
|
My Vim configuration
|
|
|
|
|
|
|
|
## vim-plug
|
|
|
|
#### Vim
|
2022-10-09 03:11:07 +00:00
|
|
|
###### Linux
|
2022-10-09 03:04:29 +00:00
|
|
|
```sh
|
|
|
|
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
|
|
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
|
|
```
|
|
|
|
#### Neovim
|
|
|
|
###### Linux
|
|
|
|
```sh
|
|
|
|
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
|
|
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
|
|
```
|
2022-10-09 03:11:07 +00:00
|
|
|
Install plugins:
|
|
|
|
```
|
|
|
|
:PlugInstall
|
|
|
|
```
|
2022-10-09 03:04:29 +00:00
|
|
|
## Conquer of Completion
|
2022-10-09 03:18:18 +00:00
|
|
|
Nodejs is a requirement:
|
|
|
|
```
|
|
|
|
curl -sL install-node.vercel.app/lts | bash
|
|
|
|
```
|
2022-10-09 03:04:29 +00:00
|
|
|
Run commands in NeoVim/Vim:
|
|
|
|
```
|
2023-10-28 08:24:49 +00:00
|
|
|
:CocInstall coc-json coc-tsserver coc-snippets coc-pairs
|
2022-10-09 03:04:29 +00:00
|
|
|
```
|
2023-10-28 08:24:49 +00:00
|
|
|
Tex completion source for vimtex:
|
|
|
|
```
|
|
|
|
:CocInstall coc-vimtex
|
|
|
|
```
|