telescope
nvim lsp
emmet-vim
null-ls
vim-go
wiki.vim
vim-fugitive
gv.vim
gitsigns
vim-plug
A minimalist Vim plugin manager.
Install (places plug.vim
in ~/.local/share/nvim/site/autoload/
:
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'
At the top of your vim config:
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
call plug#end()
vim packages
To add a new package:
git submodule add https://github.com/tpope/vim-surround neovim/.config/nvim/pack/plugins/start/vim-surround
Import the manual:
nvim -c 'helptags ~/.config/nvim/pack/plugins/start/vim-surround/doc' -c quit
OR import all manuals:
:helptags ALL
You may then use all the submodule commands for updating and deletion.
NOTE: You need to run git clone --recursive
when you clone your dots onto a
new computer:
git clone --recursive git@git.sr.ht:~kota/dots
vim-visual-multi
Ctrl-N
- select words
Ctrl-Up/Down
- create cursors vertically
Shift-Arrows
- select one character at a time
n/N
- next/previous occurrence
[/]
- next/previous cursor
q
- skip current and get next occurrence
Q
- remove current cursor/selection\
https://github.com/tpope/vim-surround
yss"
- Wrap current line in ""
cs"'
- Change "" to ''
cs'<q>
- Change '' to
dst
- Delete \
vim-easy-align
gaip=
- Align inner paragraph on =\
vim-splitjoin
gS
- Split a long code line into several.
gJ
- Join it back into one long line.\
vim-exchange
Select the first item you want to swap using cx{motion}
. Then select the other
hing and press cx
again to swap them. For example, to swap two words use
cxiw
and then press .
on the second word. Or perhaps you want to swap the
text within parenthesis on two seperate lines cxi)
then press .
on within
the second parenthesis. You can of course use cxx
to select an entire line to
swap. In visual mode the binding is X
. If you invoke cx
by mistake you can
use cxc
to clear it.