Only tested on macOS for now.
.vim folder is located in $XDG_DATA_HOME system variable (~/.local/share/vim by default) instead of ~/.vim
Want custom .vimrc location? 1
You have to have git installed and in PATH.
Clone repository.
Run install.sh.
Then delete repository.
This supports LSP via lsp plugin from yegappan. You have a template how do add LSP server in vimrc.
Remember that vimrc uses vim9script, so his README examples won't work, read doc/lsp.txt instead. Servers not mentioned in docs should work, you can use nvim-lspconfig for help. And don't forget about installing LSP server.
TODO: package groups
:Packinstall <url>
- for downloading the plugin. It will automatically be loaded. If you want manual control: 2:Packupdate
- update all plugins. Any changes will be reverted(git reset --hard).:Packlist
- list all plugins installed.:Packdelete <name>
- removes plugin.:Packunload <name>
- unloads plugin(but keeps it on drive):Packload <name>
- loads plugin back in
The leader key can be different depending on system. For me it's \
. You can customise it in vimrc (var mapleader = 'key'
).
- <leader> + n - tree explorer
- <leader> + t - new tab
- <leader> + s - vertical split
- <Ctrl> + w - switch splits
- <Tab> - When completion window is visible, goes down in completion list
- <Shift-Tab> - When completion window is visible goes up in completion list
- :Template - load template if avaliable.
To turn on just paste function name to vimrc
- g:DisableArrows() - disables arrows, on by default
- g:AutoPairs() - simple autopairing, to be extended.
- Bind ESC to Caps-Lock, for example on mac:
Delete .vimrc and ~/.local/share/vim/pack/triton
Footnotes
-
Put this
export VIMINIT='let $MYVIMRC="<location>/vimrc" | source $MYVIMRC'
in your .bash_profile, .zsh_profile, or whatever init file you are using ↩ -
then you'll need to put plugin to ~/.local/share/vim/pack/triton/opt/ and load it under some circumstances with packadd. More on that you'll find on stack overflow. I assume 99% of times you won't care. ↩