Re: Default editor



On Sat, 2008-09-13 at 13:37 -0600, Karl Larsen wrote:

Well for some reason it does not work for me at all. In a terminal I
write sudo vim /etc/X11 and then a Tab and it looks like /etc/X11\ and
it does not work. What have I done wrong?

Typing

vi /etc/X11<tab>

will complete the directory name with a trailing "/".

At this point typing <tab><tab> will show you the list of files in
the /etc/X11 directory. What the shell is doing when you type the first
<tab> is returning the common prefix of all the files in the /etc/X11
directory which in this case is the <null> string. The 2nd <tab>
enumerates all the choices of files in the /etc/X11 directory with the
common prefix. In this case since the common prefix is the null string,
it enumerates all the files in /etc/X11/.

--
Smoot Carl-Mitchell
System/Network Architect
smoot@xxxxxxx
+1 480 922 7313
cell: +1 602 421 9005

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users