Skip to content

Instantly share code, notes, and snippets.

@ston1x
Last active February 14, 2019 10:13
Show Gist options
  • Save ston1x/5a92c4f55197daac778c7a2a050f064e to your computer and use it in GitHub Desktop.
Save ston1x/5a92c4f55197daac778c7a2a050f064e to your computer and use it in GitHub Desktop.
Quick notes in vim
# Write a quick note and instantly stash it to a place where all your quick
# thoughts can be stored to sort them out later.
# Can be added to your .bashrc / .zshrc / etc.
function stash_note {
echo $(date; cat ~/note) >> ~/notes && cat /dev/null > ~/note
}
alias notes='vim ~/notes'
alias note='vim ~/note && stash_note'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment