[vim] volani funkci ve ft pluginech

Matej Cepl matej na ceplovi.cz
Středa Prosinec 11 17:07:47 CET 2002


Karel Polak wrote:
> Pokud zavolam tuto funkci pomocí :call Top() v NORMAL modu, tak vse
> funguje jak ma. Ale nedari se me, aby se tato funkce provedla
> automaticky, kdyz se natahuje soubor. Dat na konec tohoto souboru call s
> nazvem teto funkce nepomaha, BufRead ci BufReadPost take ne.

Ten příkaz musí jít do ~/.vimrc. Já tam mám třeba:

  au BufNewFile,BufRead /tmp/mutt*	set tw=65

Mimochodem, předpokládám, že používáte mail.vim (pokud ne, tak
byste měl).

Hezký den,

   Matěj

-- 
Matej Cepl, matej na ceplovi.cz,
Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
As a rule of thumb, the more qualifiers there are before the name
of a country, the more corrupt the rulers. A country called The
Socialist People's Democratic Republic of X is probably the last
place in the world you'd want to live.
	-- Paul Graham discussing (not only) Nigerian spam
	   (http://www.paulgraham.com/spam.html)



Další informace o konferenci Editors