You are not logged in.

#1 2007-10-09 23:11:53

hungsonbk
Member
Registered: 2007-05-26
Posts: 105
Website

Vi editer in Ubuntu

Hi Archers,

I recently set up an Ubuntu server (My Boss likes this, not me), and because i prefer Vi editer so i used it to edit the configuration file, but the vi editer in Ubuntu seems to be slightly different from all the vi editer i know so far from Fedora Core to Arch Linux. So my question is that, what kind of Vi they are using in Ubuntu ?

My another question is that why there are many kind of servers in Ubuntu like bind, bind9
Apache, apache2, dhcp, dhcp3, etc. It made me confused and I really don't like Ubuntu, and i even don't want to go to their forum to waste my time.

Last edited by hungsonbk (2007-10-09 23:12:44)

Offline

#2 2007-10-09 23:13:52

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Vi editer in Ubuntu

Vi on one of the systems may actually be Vim... a lot of distros create a symlink from vim to vi.

PS: You can try running 'vi --help', which you tell you right away if it's actually vi or vim.

Last edited by thayer.w (2007-10-09 23:15:54)


thayer williams ~ cinderwick.ca

Offline

#3 2007-10-09 23:15:06

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Vi editer in Ubuntu

Most likely it is vim complied with a different set of features - vim supports a ridiculous amount of features

This table (see the asterisk columns) will show you what is included in each featureset (tiny, small, normal, big, huge)
http://mysite.verizon.net/astronaut/vim/vimfeat.html

Offline

#4 2007-10-09 23:27:00

hungsonbk
Member
Registered: 2007-05-26
Posts: 105
Website

Re: Vi editer in Ubuntu

Thanks for your replies, archers

I can see that they have compiled Vi in a different way from other Linux. In insert mode, i even can't use my up and down arrow key, can't use the Backspace key, etc. I wonder why they made it different from the standard vi:mad::mad::mad::mad:

VIM - Vi IMproved 7.0 (2006 May 7, compiled Aug 28 2007 18:13:56)
Included patches: 1-164, 234-235
Compiled by buildd@rothera.buildd
Small version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset -cindent -clientserver -clipboard +cmdline_compl
+cmdline_hist +cmdline_info +comments -cryptv -cscope -cursorshape -dialog +diff +digraphs -dnd -ebcdic -emacs_tags +eval
+ex_extra +extra_search -farsi +file_in_path -find_in_path +folding -footer +fork() -gettext -hangul_input +iconv
+insert_expand +jumplist -keymap -langmap +libcall -linebreak -lispindent +listcmds -localmap -menu -mksession -modify_fname
-mouse -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_xterm +multi_byte -multi_lang -mzscheme -netbeans_intg
-osfiletype -path_extra -perl -printer -profile -python +quickfix -reltime -rightleft -ruby +scrollbind -signs +smartindent
-sniff -statusline -sun_workshop -syntax -tag_binary -tag_old_static -tag_any_white -tcl +terminfo -termresponse
+textobjects -title -toolbar +user_commands +vertsplit -virtualedit +visual +visualextra +viminfo -vreplace +wildignore
-wildmenu +windows +writebackup -X11 +xfontset -xim -xsmp -xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -Wall -DFEAT_AUTOCMD -DFEAT_BYTEOFF -DFEAT_CMDL_COMPL -DFEAT_CMDHI
ST -DFEAT_CMDL_INFO -DFEAT_COMMENTS -DFEAT_DIFF -DFEAT_DIGRAPHS -DFEAT_EVAL -DFEAT_EX_EXTRA -DFEAT_SEARCH_EXTRA -DFEAT_SEARCH
PATH -DFEAT_FOLDING -DFEAT_INS_EXPAND -DFEAT_LISTCMDS -DFEAT_QUICKFIX -DFEAT_SCROLLBIND -DFEAT_SMARTINDENT -DFEAT_TEXTOBJ -DF
EAT_USR_CMDS -DFEAT_VERTSPLIT -DFEAT_VIMINFO -DFEAT_VISUALEXTRA
Linking: gcc   -L/usr/local/lib -o vim    -lncurses

Last edited by hungsonbk (2007-10-09 23:29:37)

Offline

#5 2007-10-09 23:39:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Vi editer in Ubuntu

Re your other question:

hungsonbk wrote:

My another question is that why there are many kind of servers in Ubuntu like bind, bind9
Apache, apache2, dhcp, dhcp3, etc.

The obvious answer is to ask Ubuntu people - someone here may know the answer, but a forum full of Ubuntu users seems a more likely source of relevant info, don't you think?

hungsonbk wrote:

i even don't want to go to their forum to waste my time.

IMO, you're wasting your time asking here, since you are likely to get an appropriate answer much faster over there.

General observation - the purpose of this "Linux discussion" forum is to facilitate discussion of issues relevant to Linux in general, rather than to any particular distro.

Offline

#6 2007-10-09 23:58:39

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Vi editer in Ubuntu

I also recommend to ask the Ubuntu community, as a former Ubuntu user I can guarantee it's a very friendly community, not a waste of time wink
I can't help you much because I didn't use those apps you are mentioning at the time...


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#7 2007-10-10 00:02:48

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Vi editer in Ubuntu

obviously theres a much better place to ask this question than here....
ubuntu as well as debian comes with many flavours of vim if i am not mistaking. try installing vim-full or similar.
idealy try the specialised fora


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#8 2007-10-10 00:27:03

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Vi editer in Ubuntu

sudo aptitude install vim-full + the right settings in .vimrc will get you the same vim on arch and ubuntu wink

Offline

#9 2007-10-10 06:08:46

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: Vi editer in Ubuntu

hungsonbk wrote:

Thanks for your replies, archers

I can see that they have compiled Vi in a different way from other Linux. In insert mode, i even can't use my up and down arrow key, can't use the Backspace key, etc. I wonder why they made it different from the standard vi

You obviously never used the standard vi because that is actually how the standard vi behaves in insert mode. wink


Todays mistakes are tomorrows catastrophes.

Offline

#10 2007-10-10 08:30:15

hungsonbk
Member
Registered: 2007-05-26
Posts: 105
Website

Re: Vi editer in Ubuntu

mucknert wrote:

You obviously never used the standard vi because that is actually how the standard vi behaves in insert mode. wink

big_smile:D:D You are right, I know the standard Vi will not use up, down arrow keys, etc but these keys are used for that purpose and many Distros use that keys in the same time with keys like j and k for up and down, x, dd, etc to delete. Anyway, i got the answer so thanks everybody.

I know many of you are from the ubuntu world, and don't like  to hear somethings like this in this forum. I can set up most the server i mentioned before because it's quite easy in Ubuntu But because i have been with Arch Linux for a while and like the KISS philosophy, it made me confured when configuring ubuntu servers. I got only a few curious questions so i think it's not necessary to go to their forum.

Offline

Board footer

Powered by FluxBB