[SATLUG] vi editor and insert mode as regular user
trunty at linuxismybff.com
Thu Jul 23 21:35:40 CDT 2009
Does the user you are using have write permissions to the file? If not 'vi'
will open it as read-only...
On Thu, Jul 23, 2009 at 9:29 PM, John D Choate <jdchoate at gmail.com> wrote:
> I have often used 'vi' for editing files, all as root. I am familiar with
> pressing the 'insert' key to get into insert mode and 'esc' to return to
> command mode. The letter 'i' can do the same thing.
> I recently tried to edit a file as my regular user and found that I cannot
> enable the insert mode by either pressing the 'insert' key or the 'i' key. I
> have not found any documentation to explain this.
> Can anyone explain this?
> A couple of requests:
> 1. I have Googled this and found nothing specifying any difference between
> using 'vi' as root or as a user (so please don't reply with "google it").
> All results seem to indicate that pressing either 'insert' or 'i' will
> simply do what it is supposed to.
> 2. I am interested in a solution to this particular problem, so please
> don't waste your keystrokes to tell me to use emacs. :) <<<--- friendly
> smile. I am not being grumpy, I just want this thread to stay on topic.
> John C.
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to manage/unsubscribe
> Powered by Rackspace (www.rackspace.com)
More information about the SATLUG