Follow

@maiki Crude hack time ! Wrap your vim in a shell script like this :

#!/bin/bash

vim $1
grep -i "I think" $1 1> /dev/null
if [ $? -eq 0 ]
then
printf "Stop using that !\n"
fi

Set it as alias / open you file with it

Will only works when you exit vim, I'm sure there's a better way with vimscript or else :)

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko