On 26/10/08 02:22, yitzchas wrote:
>
> Greetings:
>
> Under FreeBSD I was able to SSH in using Putty, and use Tab for autocomplete
> when assigning settings, e.g.:
>
> :set nonum<TAB>
>
> would autocomplete to 'nonumber'
>
> Under Ubuntu, I'm getting a ^I instead of the actual Tab.  Tab works for
> autocomplete in the shell (Bash).  Any suggestions?  I was surprised I
> didn't find any solutions via Google.
>
> Thanks,
> Yitzchas

For help about Vim, you should always search the Vim help first; it is 
much more complete and more to-the-point than anything you could find on 
Google.

In this case, the relevant sections are
        :help 'wildchar'
and maybe also
        :help 'compatible'
        :help 'wildmode'
        :help 'wildmenu'

The most common reason for the tab not working as an autocomplete key is 
that you're in 'compatible' mode, which would e.g. be the case when 
running without a vimrc (inless you have the -N switch on the Vim 
command-line). I personally recommend the following as a basic vimrc, 
which you'll "flesh up" as you go along:

----- start -----
set nocompatible

" uncomment the following snippet if you want to always have
" English menus. Unlike most user customizations, this one must go
" before sourcing the vimrc_example.vim.
" if has('multi_lang')
"       if has('unix')
"               language messages C
"       else
"               language messages en
"       endif
" endif

runtime vimrc_example.vim          " include many useful settings

" if desired, add additional user customizations below
----- end -----

Paste the above (without the "----- start -----" and "----- end -----" 
lines of course) into a Vim session, save it by means of

        :saveas ~/.vimrc

then restart Vim.


About ^I, Tab and Ctrl-I are synonymous to Vim (also Esc and Ctrl-[, 
Return and Ctrl-M, etc.). On the command-line (at the bottom of the Vim 
window), a tab is usually displayed as ^I (and in blue if you haven't 
set a colorscheme).


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
228. You spend Saturday night making the counter on your home page
      pass that 2000 mark.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to