bloggalerietagcloudalleslinks

sudo write with vim

In case you edited a file only writable by root (or another user) in vim with an unprivileged user and now want to save it without using a temporary file (and copying back this files using sudo afterward), just issue the following command instead of ':w':

:w !sudo tee %
Ähnliche Beiträge:
Manpage direkt aus VIM aufrufen
List all GCC standard defines
Tagcloud
pf ruleset (neu) laden
Unter OpenBSD sshd und sendmail neu starten
Kommentare (3)  Permalink

Manpage direkt aus VIM aufrufen

Man lernt nie aus:
<Shift>-K
in vim zeigt die Manpage zum entsprechenden Wort unter dem Cursor. Gibt man davor eine Zahl ein, wird die Manpage aus der entsprechenden Section angezeigt. Danke Alex :-)
Ähnliche Beiträge:
sudo write with vim
Tagcloud
List all GCC standard defines
pf ruleset (neu) laden
Unter OpenBSD sshd und sendmail neu starten
Kommentare (1)  Permalink
1-2/2