Re: vim word and code completion

Etusivu
Liitteet:
Viesti alkuperäisessä muodossaan
+ (text/plain)
Poista viesti
Vastaa
Lähettäjä: Johannes Segitz
Päiväys:  
Vastaanottaja: list
Aihe: 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