Re: vim word and code completion

Page principale
Attachements:
Message en tant que courrier électronique
+ (text/plain)
Supprimer ce message
Répondre à ce message
Auteur: Johannes Segitz
Date:  
À: list
Sujet: 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