Dev Cheatsheet

A collection of useful commands that I use frequently


Managing profiles

There is a neat way to manage multiple git profiles, mainly the email address.

git config --global 'config "roy@work"'
git config --global alias.personal 'config "roy@home"'

Then within a project, run git work or git personal to set the local git profile.



Spell Checking

Enable spell checking with:

:se spell

Spelling corrections will be underlined, to fix a spelling error, move the cursor over it and press z=, then select the option from the list.

Repeating a command



Select some line of texts and run: