Re: vim word and code completion

Inizio della pagina
Allegati:
Messaggio come e-mail
+ (text/plain)
Delete this message
Reply to this message
Autore: Johannes Segitz
Data:  
To: list
Oggetto: 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