On Wed, Aug 06, 2003 at 04:28:24PM -0500, Gunnar Wolf wrote:
> ... So vim is just vi becoming Emacs? I know the hard-core vi guys
> just hated Ctrl-combinations.

Straight from the VIM help system, you too can map the <TAB> key to
useful, magical completion...

   " Clever Tab from VIM Help
   function! CleverTab()
     if strpart(getline("."), 0, col('.')-1) =~ '^\s*$'
        return "\<TAB>"
     else
        return "\<C-N>"
   endfunction
   inoremap <TAB> <C-R>=CleverTab()<CR>

Very cool stuff.

-- 
Chad Walstrom <[EMAIL PROTECTED]>           http://www.wookimus.net/
           assert(expired(knowledge)); /* core dump */


Reply via email to