Quote:
Originally Posted by visitnag
Hi all,
I am used to work on RHEL4es. Recently i hv installed ubuntu8.1. I use vi editor. My problem is vi shows line numbers and colum numbers in RHEL4.0 but i am unable to see line and column numbers in ubutu vi. How to modify vi in ubuntu8.1 to show rows and columns.
|
Ubuntu actually ships with a castrated version of vim called vim-tiny. You want to install the full version of vim to get the functionality you're generally used to. There are a lot of general options you could set in your .vimrc file that would make your experience more familiar and more what you are used to. I'm a fan of setting the following:
Turn on the ruler and highlighting, off wordwrapping, visualbell, and vi compatibility.
set ruler
set hls
set nowrap
set novisualbell
set nocompatible
Default to ignoring case and don't butcher existing stuff
set ignorecase
set preservecase
Make backups but don't leave them scattered all over system.
set backup
set backupdir=~/.vim/backups
Turn on line numbers, autoindent, and don't use real tabs use spaces.
set number
set autoindent
set expandtabs
Turn on syntax highlighting
syntax on
ymmv based on what you do with the editor specifically.
Run "apt-get install vim-full" to fix most of your basic problems (without the need for a .vimrc even).
Most people type vi, but that's typically a link to another "version" of vi like vim-tiny, vim-full, or vile (shudder). It's nice that you can use (g)vim in windows and x too.