from small one page howto to huge articles all in one place
 

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

40718

userrating:

average rating: 1.5 (4 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tutorials per portage category->app-editors->VI

8. Macros


Buffers can also act as macros if they contain valid vi or ex commands.
To execute such a macro, type:



@a - where "a" is the name of the buffer

Example: From a file containing definitions of complex macros, yank
one paragraph (say, 20 lines) to a named buffer "a". Then
return to a file you were originally editing and type @a.
The commands contained in the buffer will be executed on the file
being edited.


It is possible to make files act as vi macros by using command:


:so filename

The most powerful macros, however, are created using programs combined
into shell scripts (or DOS batch files), and acting as filters on the text
sent to them from within vi. Such shell scripts or programs must take standard
input and send results to standard output (which most UNIX tools do).


Even though seemingly strange at first, with a little practice using
vi becomes second nature.



/* The article above and any accompanying files are freely
* distributable, but please leave this notice and the text intact.
* Home for this document: http://www.infobound.com/vi.html
* Copyright (C) 1994, 1999 Tony Thomas
* Contact author through email:
tony@infobound.com
* Last revision Feb 23, 1999
* UNIX is a trademark of X/Open
*/

rate this article:
current rating: no votes yet
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2018-05-21
cmake - 3.11.2
Ebuild name:

dev-util/cmake-3.11.2

Description

Cross platform Make

Added to portage

2018-05-21

hg-git - 0.8.11
Ebuild name:

dev-vcs/hg-git-0.8.11

Description

push to and pull from a Git repository using Mercurial

Added to portage

2018-05-21

pgmodeler - 0.9.1
Ebuild name:

dev-db/pgmodeler-0.9.1

Description

PostgreSQL Database Modeler

Added to portage

2018-05-21

procps - 3.3.15
Ebuild name:

sys-process/procps-3.3.15

Description

standard informational utilities and process-handling tools

Added to portage

2018-05-21

texlive-core - 2017-r4
Ebuild name:

app-text/texlive-core-2017-r4

Description

A complete TeX distribution

Added to portage

2018-05-21

urlwatch - 2.11
Ebuild name:

www-misc/urlwatch-2.11

Description

A tool for monitoring webpages for updates

Added to portage

2018-05-21

wayland-protocols - 1.14
Ebuild name:

dev-libs/wayland-protocols-1.14

Description

Wayland protocol files

Added to portage

2018-05-21

2018-05-20
asciinema - 2.0.1
Ebuild name:

app-misc/asciinema-2.0.1

Description

Command line recorder for asciinema.org service

Added to portage

2018-05-20

byacc - 20180510
Ebuild name:

dev-util/byacc-20180510

Description

the best variant of the Yacc parser generator

Added to portage

2018-05-20

chrootuid - 1.3-r2
Ebuild name:

app-admin/chrootuid-1.3-r2

Description

Run a network service at low privilege level and restricted file system

Added to portage

2018-05-20

collectd - 5.8.0
Ebuild name:

app-metrics/collectd-5.8.0

Description

Collects system statistics and provides mechanisms to store the values

Added to portage

2018-05-20

dash - 0.5.10.2
Ebuild name:

app-shells/dash-0.5.10.2

Description

Debian Almquist Shell

Added to portage

2018-05-20

debianutils - 4.8.6
Ebuild name:

sys-apps/debianutils-4.8.6

Description

A selection of tools from Debian

Added to portage

2018-05-20

debootstrap - 1.0.99
Ebuild name:

dev-util/debootstrap-1.0.99

Description

Debian/Ubuntu bootstrap scripts

Added to portage

2018-05-20

hplip - 3.18.4
Ebuild name:

net-print/hplip-3.18.4

Description

HP Linux Imaging and Printing - Print, scan, fax drivers and service tools

Added to portage

2018-05-20

irqbalance - 1.4.0
Ebuild name:

sys-apps/irqbalance-1.4.0

Description

Distribute hardware interrupts across processors on a multiprocessor syst

Added to portage

2018-05-20

kpeg - 1.1.0-r1
Ebuild name:

dev-ruby/kpeg-1.1.0-r1

Description

A simple PEG library for Ruby

Added to portage

2018-05-20

libsfml - 2.5.0
Ebuild name:

media-libs/libsfml-2.5.0

Description

Simple and Fast Multimedia Library (SFML)

Added to portage

2018-05-20

libtorrent - 0.13.6-r2
Ebuild name:

net-libs/libtorrent-0.13.6-r2

Description

BitTorrent library written in C++ for *nix

Added to portage

2018-05-20

mariadb - 10.2.15
Ebuild name:

dev-db/mariadb-10.2.15

Description

An enhanced, drop-in replacement for MySQL

Added to portage

2018-05-20

mbuffer - 20180505
Ebuild name:

sys-block/mbuffer-20180505

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2018-05-20

meson - 0.46.1
Ebuild name:

dev-util/meson-0.46.1

Description

Open source build system

Added to portage

2018-05-20

neofetch - 4.0.1
Ebuild name:

app-misc/neofetch-4.0.1

Description

Simple information system script

Added to portage

2018-05-20

pcl - 1.12-r1
Ebuild name:

dev-libs/pcl-1.12-r1

Description

Portable Coroutine Library

Added to portage

2018-05-20

pwcrypt - 1.2.2-r2
Ebuild name:

app-admin/pwcrypt-1.2.2-r2

Description

An improved version of cli-crypt (encrypts data sent to it from the cli)

Added to portage

2018-05-20

pysolfc - 2.2.0
Ebuild name:

games-board/pysolfc-2.2.0

Description

An exciting collection of more than 1000 solitaire card games

Added to portage

2018-05-20

random2 - 1.0.1
Ebuild name:

dev-python/random2-1.0.1

Description

Python-2.7 random module ported to python-3

Added to portage

2018-05-20

rdoc - 6.0.4
Ebuild name:

dev-ruby/rdoc-6.0.4

Description

An extended version of the RDoc library from Ruby 1.8

Added to portage

2018-05-20

rt-sources - 4.14.40_p30
Ebuild name:

sys-kernel/rt-sources-4.14.40_p30

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2018-05-20

rt-sources - 4.16.8_p2
Ebuild name:

sys-kernel/rt-sources-4.16.8_p2

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2018-05-20

rt-sources - 4.4.131_p148
Ebuild name:

sys-kernel/rt-sources-4.4.131_p148

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2018-05-20

rt-sources - 4.9.98_p76
Ebuild name:

sys-kernel/rt-sources-4.9.98_p76

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2018-05-20

runit - 2.1.1-r2
Ebuild name:

sys-process/runit-2.1.1-r2

Description

A UNIX init scheme with service supervision

Added to portage

2018-05-20

sanitize - 4.6.5
Ebuild name:

dev-ruby/sanitize-4.6.5

Description

Sanitize is a whitelist-based HTML sanitizer

Added to portage

2018-05-20

tensorflow - 1.8.0-r1
Ebuild name:

sci-libs/tensorflow-1.8.0-r1

Description

Computation framework using data flow graphs for scalable machine lear

Added to portage

2018-05-20

toolz - 0.9.0
Ebuild name:

dev-python/toolz-0.9.0

Description

List processing tools and functional utilities

Added to portage

2018-05-20

xf86-video-vmware - 13.3.0
Ebuild name:

x11-drivers/xf86-video-vmware-13.3.0

Description

VMware SVGA video driver

Added to portage

2018-05-20

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 4.4 ms