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 |
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. |
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. |
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.
|
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. |