💾 Archived View for tommi.space › Vim.gmi captured on 2023-01-29 at 03:16:58. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

To learn

<br>
<br>

Cheat Sheet

Count occurrences

:%s/some_pattern//n

<br>

Toggling spell checking

:set spell "nospell

Sometimes, when I activate spell checking, I need to change the language, since my init.vim file has set spelllang=it by default

spell checking

my init.vim file

:set spell spelllang=en

<br>

Navigate changes (by using g; and g,)

Navigate changes

: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.

<br>

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

<br>

Cheat Sheets

<br>
<br>

Vim Cheat Sheet

DevHints cheatsheet

Resources

<br>
<br>

vim-galore

Vim casts

Vim help

Vim cookbook

Vim FAQ

Practical Vim

Drew Neil

Vim subreddit

Vim intermediate guide

Vim as an IDE

Jake Zimmerman

personal notetaking in Vim

.vimrc

.vimrc is the file containing the Vim configuration. For the ones using Neovim, it is ~/.config/nvim/init.vim.

My Neovim configuration file

<br>

Color schemes

Solarized 8