Tobias SchlittWI - [W]riteable checker for v[I]mWed, 19 Nov 2008 23:29:46 +0100CC by-nc-saentext/htmlJakob Westhoff (one of my usergroup fellows) created a tiny but very
efficient bash script to avoid a big annoyance: I'm using "sudo" on my
work station to not have the need to completly switch to root for
administrative tasks. Still I usually forget to type "sudo" when I intend
to edit a file with is not writeable for my current user. I asume people
with similar environments know that problem. WI ([W]riteable checker for
v[I]m) wraps around VIM on startup and checks the file permissions. If you
may not edit the file, WI asks you if you want to start VI through sudo or
quit.Tobias SchlittWI - [W]riteable checker for v[I]mWed, 19 Nov 2008 23:29:46 +0100CC by-nc-saentext/plainJakob Westhoff (one of my usergroup fellows) created a tiny but very
efficient bash script to avoid a big annoyance: I'm using "sudo" on my
work station to not have the need to completly switch to root for
administrative tasks. Still I usually forget to type "sudo" when I intend
to edit a file with is not writeable for my current user. I asume people
with similar environments know that problem. WI ([W]riteable checker for
v[I]m) wraps around VIM on startup and checks the file permissions. If you
may not edit the file, WI asks you if you want to start VI through sudo or
quit.Tobias SchlittWI - [W]riteable checker for v[I]mWed, 19 Nov 2008 23:29:46 +0100CC by-nc-saenapplication/rss+xmlJakob Westhoff (one of my usergroup fellows) created a tiny but very
efficient bash script to avoid a big annoyance: I'm using "sudo" on my
work station to not have the need to completly switch to root for
administrative tasks. Still I usually forget to type "sudo" when I intend
to edit a file with is not writeable for my current user. I asume people
with similar environments know that problem. WI ([W]riteable checker for
v[I]m) wraps around VIM on startup and checks the file permissions. If you
may not edit the file, WI asks you if you want to start VI through sudo or
quit.