Posted By: znouza (fuck.the.world) on 'CZunix' Title: Re: otvirani souboru ve vim Date: Thu May 11 13:15:16 2006 tuto do vimrc > filetype on > if has("autocmd") && exists("+omnifunc") > autocmd Filetype * > if &omnifunc == "" | > setlocal omnifunc=syntaxcomplete#Complete | > endif > endif > > pak si dej $ vim test.c, napis in<C-X><C-O> a uvidis sam :) > - znouza - > -- > At a higher altitude with flag unfurled > We reached the dizzy heights of that dreamed of world... > -- a jeste jsem si pridal remap na "." pro autocomplete - v mym .vimrc inoremap <expr> . MayComplete() func MayComplete() if &omnifunc != "" return "<C-X><C-O>" endif "return '.' endfunc funguje to tak, ze v i_ pises, a kdyz chces doplnit, tak zmacknes . - a ono to doplni :) pomerne rychle... - znouza - -- At a higher altitude with flag unfurled We reached the dizzy heights of that dreamed of world... --