Create an alias in $HOME/.bashrc alias vi='vim'
it shall always open in vim... Venkatesh Nandakumar Undergraduate Student IIT Roorkee ----- Original Message ---- From: Baishampayan Ghose <[EMAIL PROTECTED]> To: Ubuntu India Local Community <[email protected]> Sent: Monday, 14 May, 2007 1:19:50 AM Subject: Re: [ubuntu-in] Erratic Vi on FeistyFawn -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 14 May 2007 12:37 AM, Gora Mohanty cobbled together some glyphs to say: >> But, that doesn't explain why that problem is occuring in the first place. >> In fact, if it's the same application being called if you type vi or vim then >> the behaviour should be the same, but it's not, in his case. > > I believe what he is saying is that, in your case, vi and vim, are *not* > symlinks to the same application, as some other package (e.g., vile) has > replaced vi or vim. You can check for yourself by doing a > "ls -l `which vi`", and a "ls -l `which vim`", and following the > symlinks till you come to the actual application used. It is also > possible that the application looks at how it has been invoked, and > changes behaviour accordingly, though I have no idea if vim does that. $ sudo update-alternatives --config vi and $ sudo update-alternatives --config vim can also provide some useful information. Regards, BG - -- Baishampayan Ghose <[EMAIL PROTECTED]> Ubuntu -- Linux for Human Beings http://www.ubuntu.com/ 1024D/86361B74 BB2C E244 15AD 05C5 523A 90E7 4249 3494 8636 1B74 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGR2veQkk0lIY2G3QRAoR4AJ9n0/CV/XNng2Rxk9G9q1sK0AtQ7QCcCwC5 47/glSMkzMQLp/fqxzwobIA= =cgJS -----END PGP SIGNATURE----- -- ubuntu-in mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-in ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
-- ubuntu-in mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
