Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2009, 11:40 AM
Snoopdog
Sarnak
 
Join Date: Sep 2004
Posts: 31
Default 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 ?
Reply With Quote
  #2  
Old 06-08-2009, 03:17 PM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

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.
Reply With Quote
  #3  
Old 06-08-2009, 03:53 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by gaeorn View Post
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.
Reply With Quote
  #4  
Old 06-08-2009, 04:12 PM
Snoopdog
Sarnak
 
Join Date: Sep 2004
Posts: 31
Default

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.
Reply With Quote
  #5  
Old 06-19-2009, 10:33 AM
Belfedia
Demi-God
 
Join Date: Jan 2005
Posts: 1,109
Default

In debian (or ubuntu), use vim in place of vi
That same and that work, that the only clue i found !
__________________
__________________________________________________ _____________________________________
I speak english like a spanish cow..., I speak spanish like a english pudding...
But I try to speak good french !!! (Non au langage SMS sur forum)
http://eqfroggy.new.fr : Froggy French Server Website.
Reply With Quote
  #6  
Old 06-19-2009, 11:05 AM
Yeormom
Discordant
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 402
Default

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.
__________________
Yeorwned
Bane of Life [Custom Classic/PvP]
Reply With Quote
  #7  
Old 06-19-2009, 11:35 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by Belfedia View Post
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 View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:00 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3