Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
I some times found frustrating to write config files, which requires root access, by going to the shell and then all the way to the folder I first found the file. So I started to look how others had writen their scirpts (coz I sure never had) and tried to learn of them. And this was the solution. "sudo_gvim" simply runs the textfile in gvim as root,
there is similar scripts for other texteditors, like gedit, but not for gvim (At least I could not find one).

requirement: gvim. On ubuntu you can find it from packagemanager or by commanding in shell "sudo apt-get install gvim".

Install: untar and copy the file to ~/.gnome2/nautilus-scripts, and make sure it is executable.


Notice: I have had some minor problems opening textfiles, it sometimes just opens a "new" file with the name of the old file, I think this is because there are spaces in the file name. Going to look into that one in near future.

I have to remind you that if you are using this script there is allways danger of hurting your computer when altering config files, so please be allways sure what you are doing before you do it. And dont plame me.
Last changelog:

Nothing....yet.


Ratings & Comments

1 Comment

sergeant

Just remembered that by default the skript opens gvim in reverse colors, because I like white on black more. If you want to get rid of this edit the script by removing the command "-reverse" just after the "gvim" command.

Pling
0 Affiliates
Details
license
version 0.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Nautilus Scripts:

Gflv2avi
acidc00l
last update date: 15 years ago

Score 5.0

My Movie Portal v3.2.8
iTechScripts
last update date: 13 years ago

Score 4.7

Browse Nautilus as root
SteveSims
last update date: 17 years ago

Score 5.0

Open Nautilus as Root
Mariux
last update date: 17 years ago

Score 5.0

Compare Strings
cdmn
last update date: 17 years ago

Score 5.0

grooto
pontos
last update date: 17 years ago

Score 5.0



System Tags