Vim - nryoung/wiki GitHub Wiki

Tips and tricks I find useful when using (neo)vim.

Sort lines alphabetically

Select the lines you want to sort visually with:

Shift + V

Then invoke the vim builtin sort function:

:sort

Zoom in vim pane that you are on

for vsplits:

c-w-|

for hsplits:

c-w-_

to restore panes back:

c-w-=

Search and replace within a range

since I always forget how to do this:

5,12s/foo/bar/g

Install plugins for coc.nvim

:CocInstall coc-tsserver coc-eslint coc-json coc-prettier coc-css