Skip to content

Instantly share code, notes, and snippets.

@yoandresaav
Last active December 31, 2023 12:56
Show Gist options
  • Save yoandresaav/94179736048314a5a037b4ea485e4505 to your computer and use it in GitHub Desktop.
Save yoandresaav/94179736048314a5a037b4ea485e4505 to your computer and use it in GitHub Desktop.
Vim Examples to Improvement work
### Open in vim all files modified in git
$ nvim $(git status --porcelain | awk '{print $2}')
### Go to next git modification
using https://github.com/lewis6991/gitsigns.nvim
]c and [c
### To see Coc extensions
:CocList
FUZZY> extensions
### LazyVim
https://www.lazyvim.org/configuration/recipes#use-eslint-for-fix-on-save-and-prettier-for-formatting
### Execute a macro in multiples lines with :normal
Execute the macro stored in register a on lines 5 through 10.
:5,10norm! @a
Execute the macro stored in register a on lines 5 through the end of the file.
:5,$norm! @a
Execute the macro stored in register a on all lines.
:%norm! @a
Execute the macro store in register a on all lines matching pattern.
:g/pattern/norm! @a
To execute the macro on visually selected lines, press V and the j or k until the desired region is selected. Then type :norm! @a and observe the that following input line is shown.
:'<,'>norm! @a
Enter :help normal in vim to read more.
### Python Docs
https://github.com/deoplete-plugins/deoplete-jedi/wiki/Setting-up-Python-for-Neovim#using-virtual-environments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment