EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   SUSE vi <> Debian vi (https://www.eqemulator.org/forums/showthread.php?t=28503)

Snoopdog 06-08-2009 11:40 AM

SUSE vi <> Debian vi
 
I have been using SUSE for years and never had this problem. I also had this problem with Ubuntu when I tried it out, it drove me nuts.

If I use VI and let's say I want to add something to the end of the makefile, like to enable bots. I hit "end" to go to the end of the line. I hit "i" to do an insert, but it does not insert at the end of the line, always one character before the end of the line. I notice other quirkiness on the keys, not just that one. What am i doing wrong ?

gaeorn 06-08-2009 03:17 PM

I'm not sure this is the right place to ask for vi support.

In any case, "i" is the vi insert command which inserts before the character under the cursor. The command you are looking for is "a" which is append and will insert after the character under the cursor.

The only case where "i" should not insert before the last character on a line is if the line was empty to begin with.

Andrew80k 06-08-2009 03:53 PM

Quote:

Originally Posted by gaeorn (Post 171633)
I'm not sure this is the right place to ask for vi support.

In any case, "i" is the vi insert command which inserts before the character under the cursor. The command you are looking for is "a" which is append and will insert after the character under the cursor.

The only case where "i" should not insert before the last character on a line is if the line was empty to begin with.

Yep.

Also, shift-a will edit at the end of a line no matter where you are in the line. So if you are at the beginning of a line and you want to put something at the end, shift-a and voila! Likewise shift-i will do the same at the beginning of a line.

Snoopdog 06-08-2009 04:12 PM

Thanks. I know this is not a VI support thread, it was just a quick question. I imagine most of the people in this sub forum use VI or have used it in the past.

Belfedia 06-19-2009 10:33 AM

In debian (or ubuntu), use vim in place of vi ;)
That same and that work, that the only clue i found !

Yeormom 06-19-2009 11:05 AM

VI is one of those necessities of life. As much as I hate it, it is the most useful "tool" on any linux operating system once you learn its power.

Andrew80k 06-19-2009 11:35 AM

Quote:

Originally Posted by Belfedia (Post 172497)
In debian (or ubuntu), use vim in place of vi ;)
That same and that work, that the only clue i found !

I think most modern distros have now replaced vi with vim. At least on Fedora this seems to be the case as with most of the other distros I've used.

Quote:

Originally Posted by Yeormom (Post 172504)
VI is one of those necessities of life. As much as I hate it, it is the most useful "tool" on any linux operating system once you learn its power.

Indeed. If you use *nix at all, vi is your friend. I know folks that have tried to live with using the gui text editor from the desktop, but to me if you are making small changes, vi is so much faster. Using regular expressions to make bulk changes is a VERY nice feature as well. It's a very powerful tool once you learn how to use it.


All times are GMT -4. The time now is 05:43 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.