5 ms·
No need for "normal Go". ex commands like r take addresses. vim +'$r!date' did.txt
by JdeBP 8y ago
No need for "normal Go". ex commands like r take addresses.
vim +'$r!date' did.txt
- theptrk 8y agooh thats smooth
- Lio 8y agoAt first when I read this I thought why not use Vimwiki or org-mode or taskwarrior, etc... but actually I really like these simple aliases. I use the same approach for a super simple "pomodoro" timer: alias pomo='echo "Starting timer for 25 minutes"; sleep 1500 && zenity --info --text "Pomodoro break; 5 minutes"; sleep 300 && zenity --info --text "Pomodoro: back to work"'
- theptrk 8y agothis doesnt seem to work in the same way for me, it doesnt print a timestamp to the file
- inanutshellus 8y agoNotably, this doesn't add the date at a reliable place in the file. Instead, it adds the date at the last place your cursor was when you had the file open last.
- theptrk 8y agoI think adding a command to go to the next line would be the sweet spot