I have always wanted one program to open to access all important (for me) files in a system. This can for instance be http.conf, passwd, groups and so on. Using tabs in vim, the -p option (from version 7 and above) and a small script can make vim into a nice little admin console:
I call my script ‘configs’ and it looks like this (put it in your PATH for easy access):
#!/bin/bash sudo vim -p /etc/hosts /private/etc/php.ini /etc/httpd.conf
Too move between tabs in command mode:
gt - next tab gT - previous tab
Too move between tabs in insert mode (and also in command mode):
CTRL + PgUp - next tab CTRL + PgDown - previous tab
0 Comments.