Re: vim word and code completion

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Johannes Segitz
Date:  
To: list
Subject: Re: vim word and code completion
On Fri, Mar 11, 2005 at 11:59:31PM +0100, Norbert Tretkowski wrote:
> http://little.xmtp.net/blog/?p=17


Nett, allerdings ziehe ich das hier vor

if !exists("g:loaded_InsertTabWrapper")
function InsertTabWrapper()
let col = col('.') - 1
if !col || getline('.')[col - 1] !~ '\k'
return "\<tab>"
else
return "\<c-p>"
endif
endfunction
endif
let g:loaded_InsertTabWrapper="v1"
inoremap <tab> <c-r>=InsertTabWrapper()<cr>

Gruss,
Jonny