To do
- Track config file within a dotfiles repository
- Publish here Vim config file
- firenvim: embed Neovim in browser
To learn
- buffers management
- macros recording
Cheat Sheet
- Count occurrences:
:%s/some_pattern//n
- Toggling spell checking:
:set spell "nospell
. - Sometimes, when I activate spell checking, I need to change the language, since my
init.vim
file hasset spelllang=it
by default::set spell spelllang=en
. - Navigate changes (by using
g;
andg,
)::changes
. - Use
:retab
to convert the buffer to your setup for indentation. For instance, if you configured vim to have 4 spaces for indentation, it will convert the tabs to 4 spaces. - Time travel
:earlier 3 'undo the last three changes
:earlier 5m 'Go back to the state of the file 5 minutes ago
:later 1h 'Travel forward through the change history 1 hour
Cheat Sheets
Resources
- vim-galore, a repository collecting all sorts of resources about Vim
- Vim casts, the best video tutorials you can find
- Vim help, a website made of Vim man pages
- Vim cookbook
- Vim FAQ
- Practical Vim a book - the best book you can find - on Vim, by the same creator of Vim Casts: Drew Neil.
- Vim subreddit
- Vim intermediate guide
- Vim as an IDE, a workshop by Jake Zimmerman
- Obsidian is awesome, nevertheless it is not the best performance-wise. Even if it becomes way harder and complicated to manage, it is worth keeping note of personal notetaking in Vim
.vimrc
.vimrc
is the file containing the Vim configuration. For the ones using Neovim, it is ~/.config/nvim/init.vim
.