https://github.com/frigus02/vim-profile
My personal vim config
https://github.com/frigus02/vim-profile
Last synced: 7 months ago
JSON representation
My personal vim config
- Host: GitHub
- URL: https://github.com/frigus02/vim-profile
- Owner: frigus02
- License: mit
- Created: 2020-04-10T09:04:59.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-04-16T08:02:17.000Z (over 3 years ago)
- Last Synced: 2024-10-06T09:43:22.038Z (almost 2 years ago)
- Language: Vim Script
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vim profile
## Installation
Create init.vim:
```
cp init.vim.sample init.vim
```
### macOS
Symlink config directory (assuming the repository is cloned at `$HOME/Projects/vim-profile`):
```sh
ln -s "$HOME/Projects/vim-profile" "$HOME/.config/nvim"
```
Install dependencies:
```sh
brew install bat node ripgrep
```
### Windows
Start `cmd` as Administrator and run (assuming the repository is cloned at `C:\code\vim-profile`):
```
cd %LOCALAPPDATA%
mklink /D nvim C:\code\vim-profile
```
Install dependencies:
```
scoop install bat ripgrep
```
In WSL, download and add [win32yank.exe](https://github.com/equalsraf/win32yank) to the PATH to enable system clipboard integration. See also [Neovim Wiki](https://github.com/neovim/neovim/wiki/FAQ#how-to-use-the-windows-clipboard-from-wsl).
## Initial configuration
- Configure fzf default command to respect .gitignore. For this set the following environment variable:
```
export FZF_DEFAULT_COMMAND='rg --files --hidden --iglob !.git'
```
- Install minpac package manager:
```sh
git clone https://github.com/k-takata/minpac.git pack/minpac/opt/minpac
```
- Install plugins (minpac):
```
call minpac#update()
```
- Install coc extensions:
```
:CocInstall coc-rust-analyzer coc-tsserver
```
- If you're using `coc-java` you can add Lombok support like so:
```
mkdir -p /usr/local/opt/lombok/
curl -L https://projectlombok.org/downloads/lombok.jar -o /usr/local/opt/lombok/lombok.jar
```