LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vi editor in ubuntu turns me off (https://www.linuxquestions.org/questions/linux-newbie-8/vi-editor-in-ubuntu-turns-me-off-936178/)

sysmicuser 03-24-2012 07:38 AM

vi editor in ubuntu turns me off
 
I have worked pretty comfortably on rhel servers with vi editors and It comes like a smooth free flowing editor.

The story becomes interesting when I work on same "vi" editor in Ubuntu 12.04 Desktop edition....

if I do "I" I cannot see I have entered "insert mode.
If i press down or up arrow key some funky letter comes up on screen...

I am extremly annoyed on this, why is this happening on two different distros I would like to know if there is any problem with ubtu vi editor....


Thanks

bigrigdriver 03-24-2012 08:27 AM

There are many preferences which can be set to control the behavior of vim. For system-wide settings, look in /etc/vim/vimrc. For your personal preferences look in ~/.vimrc.

The default settings will vary from one distro to another.

smilemukul 03-24-2012 08:33 AM

Function of Vi editor in Ubuntu is different as compared to rhel. Before using vi in ubuntu, you have to export your editor as,

export EDITOR="vi" or export EDITOR="vim" & edit the same in .bash_profile file.

TroN-0074 03-24-2012 08:54 AM

You could download a vi tutorial and learn how to customize it the way you like it. Each individual has different preferences and vi allow you to change things around.

sysmicuser 03-24-2012 09:38 AM

Thanks Guys as @smilemukul says I perform export EDITOR=vim and it started behaving friendly as like on rhel server.


All times are GMT -5. The time now is 12:23 AM.