vi help

Giorgos Keramidas keramida at ceid.upatras.gr
Tue May 9 00:01:14 EEST 2000


On Mon, May 08, 2000 at 07:27:47AM -0400, I.Ioannou wrote:
> Yparxei tropos sto vi (vim) na toy pw na mou antistrepsei tin seira
> kapoiwn grammwn ? (kanei to tac se arxeia, alla gia sygkekrimeno
> block grammwn)

Isos sou kanei, isos oxi.. ego pantos, otan thelo na metatrepso kati
se greeklish, exo ena filtro sto path mou pou kanei tin metatropi, to
/usr/local/bin/greeklish.  Auto douleuei opws kai to tac(1), diabazei apo
stdin kai grafei stdout.

An thelo p.x. na kano tin trexousa paragrafo greeklish, patao apla to
aggliko 'n', afou exo kanei:

	:map	n	{!}greeklish^M

Auto to periergo pragma, to {!} kanei to ejhs:

	{	  => move stin arxi ths paragrafou
	!}	  => filter mexri to telos tis paragrafou me...
	greeklish => to filtro.

Mporeis stin thesi tou { kai }, na baleis opoiadnpote alli entoli pou tha
metakinouse ton cursor.  P.x. an eisai paranoid, mporeis na metatrepseis olo
to buffer me to tac(1) kanontas (se command mode):

	1G!Gtac^M

opou ^M profanos einai na pathseis to <return>.  H omorfia tou pragmatos
jekina otan arxiseis na `onomatizeis' shmeia mesa ston buffer me marks.  Pas
stin arxi tou block, kai patas (panta command-mode):

	ma

(Xoris keno, apla patas 'm' kai meta 'a').  Auto bazei to mark 'a' sto telos
tou block.  Meta pas stin arxi tou block kai kaneis:

	!'atac^M

Kai auto pernaei to block mexri kai to mark 'a' apo to *tac* (h grammh
pou einai to mark sumperilabanetai sto filtrarisma).

Ciao,
Giorgos Keramidas.

--
PS: Yeah, I know.. I should not use Emacs too much.  H orologia twn 'buffers',
mark points, kai loipa den einai ki oti pio vi-specific :>

--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list