Keep your notes in plain text files with vim, automatically synced to GitHub.
- Notes live in
~/n/— a git repo connected to GitHub - Every
:win vim auto-commits and pushes your changes - Every time you open vim or a new shell, it pulls the latest changes
- Works from any machine
- vim
- git
- A GitHub repo to store your notes (can be private)
git clone https://github.com/your-username/gnotes
cd gnotes
make installYou'll be prompted for your GitHub notes repo URL. The script will clone it to ~/n/ and patch your .vimrc and shell config.
Restart your shell (or source ~/.zshrc / source ~/.bashrc) when done.
make uninstallRemoves the snippets from your .vimrc and shell config. Optionally deletes ~/n/.
Open any file in ~/n/ with vim and just write. Saving syncs automatically.
vim ~/n/ideas.md
vim ~/n/work.md