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:

48177

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
2019-08-20
acpid - 2.0.32
Ebuild name:

sys-power/acpid-2.0.32

Description

Daemon for Advanced Configuration and Power Interface

Added to portage

2019-08-20

angband - 4.2.0
Ebuild name:

games-roguelike/angband-4.2.0

Description

A roguelike dungeon exploration game based on the books of J.R.R. Tol

Added to portage

2019-08-20

argus-clients - 3.0.8.2-r3
Ebuild name:

net-analyzer/argus-clients-3.0.8.2-r3

Description

Clients for net-analyzer/argus

Added to portage

2019-08-20

arping - 2.20
Ebuild name:

net-analyzer/arping-2.20

Description

A utility to see if a specific IP address is taken and what MAC address ow

Added to portage

2019-08-20

broadcom-sta - 6.30.223.271-r5
Ebuild name:

net-wireless/broadcom-sta-6.30.223.271-r5

Description

Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver

Added to portage

2019-08-20

cacti-spine - 99999
Ebuild name:

net-analyzer/cacti-spine-99999

Description

Spine is a fast poller for Cacti (formerly known as Cactid)

Added to portage

2019-08-20

debhelper - 12.5.3
Ebuild name:

dev-util/debhelper-12.5.3

Description

Collection of programs that can be used to automate common tasks in debia

Added to portage

2019-08-20

etcd - 3.3.15
Ebuild name:

dev-db/etcd-3.3.15

Description

Highly-available key value store for shared configuration and service discovery

Added to portage

2019-08-20

intel-microcode - 20190618_p20190819
Ebuild name:

sys-firmware/intel-microcode-20190618_p20190819

Description

Intel IA32/IA64 microcode update data

Added to portage

2019-08-20

ipsumdump - 1.86-r1
Ebuild name:

net-analyzer/ipsumdump-1.86-r1

Description

Simple TCP/IP Dump summarizer/analyzer

Added to portage

2019-08-20

kodi-audiodecoder-modplug - 2.0.1
Ebuild name:

media-plugins/kodi-audiodecoder-modplug-2.0.1

Description

Modplug decoder addon for Kodi

Added to portage

2019-08-20

kodi-peripheral-joystick - 1.4.8
Ebuild name:

media-plugins/kodi-peripheral-joystick-1.4.8

Description

Libretro compatibility layer for the Kodi Game API

Added to portage

2019-08-20

kodi-pvr-iptvsimple - 3.6.0
Ebuild name:

media-plugins/kodi-pvr-iptvsimple-3.6.0

Description

Kodi's IPTVSimple client addon

Added to portage

2019-08-20

libgdiplus - 6.0.2
Ebuild name:

dev-dotnet/libgdiplus-6.0.2

Description

Library for using System.Drawing with Mono

Added to portage

2019-08-20

libmissing - 1.0.0-r1
Ebuild name:

dev-libs/libmissing-1.0.0-r1

Description

Library with missing functions based on GNUlib

Added to portage

2019-08-20

libsass - 3.6.1
Ebuild name:

dev-libs/libsass-3.6.1

Description

A C/C++ implementation of a Sass CSS compiler

Added to portage

2019-08-20

libtrace - 4.0.9_p1-r1
Ebuild name:

net-libs/libtrace-4.0.9_p1-r1

Description

A library and tools for trace processing

Added to portage

2019-08-20

magit-popup - 2.12.4
Ebuild name:

app-emacs/magit-popup-2.12.4

Description

Define prefix-infix-suffix command combos

Added to portage

2019-08-20

msi-keyboard - 1.0
Ebuild name:

app-laptop/msi-keyboard-1.0

Description

Control backlight of MSI laptop keyboards

Added to portage

2019-08-20

nDPI - 2.8
Ebuild name:

net-libs/nDPI-2.8

Description

Open Source Deep Packet Inspection Software Toolkit

Added to portage

2019-08-20

nagios-core - 4.4.4-r1
Ebuild name:

net-analyzer/nagios-core-4.4.4-r1

Description

Nagios core - monitoring daemon, web GUI, and documentation

Added to portage

2019-08-20

net-snmp - 5.8-r2
Ebuild name:

net-analyzer/net-snmp-5.8-r2

Description

Software for generating and retrieving SNMP data

Added to portage

2019-08-20

ntpclient - 2018.244-r1
Ebuild name:

net-misc/ntpclient-2018.244-r1

Description

A NTP (RFC-1305 and RFC-4330) client for unix-alike systems

Added to portage

2019-08-20

sysdig - 0.26.3
Ebuild name:

dev-util/sysdig-0.26.3

Description

A system exploration and troubleshooting tool

Added to portage

2019-08-20

vala - 0.36.20
Ebuild name:

dev-lang/vala-0.36.20

Description

Compiler for the GObject type system

Added to portage

2019-08-20

vala - 0.40.16
Ebuild name:

dev-lang/vala-0.40.16

Description

Compiler for the GObject type system

Added to portage

2019-08-20

vala - 0.45.91
Ebuild name:

dev-lang/vala-0.45.91

Description

Compiler for the GObject type system

Added to portage

2019-08-20

vala-common - 0.45.91
Ebuild name:

dev-libs/vala-common-0.45.91

Description

Build infrastructure for packages that use Vala

Added to portage

2019-08-20

vnstat - 2.4
Ebuild name:

net-analyzer/vnstat-2.4

Description

Console-based network traffic monitor that keeps statistics of network usag

Added to portage

2019-08-20

xapian - 1.4.12
Ebuild name:

dev-libs/xapian-1.4.12

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2019-08-20

xapian-bindings - 1.4.12
Ebuild name:

dev-libs/xapian-bindings-1.4.12

Description

SWIG and JNI bindings for Xapian

Added to portage

2019-08-20

xapian-omega - 1.4.12
Ebuild name:

app-text/xapian-omega-1.4.12

Description

An application built on Xapian, consisting of indexers and a CGI searc

Added to portage

2019-08-20

xfsprogs - 5.2.0
Ebuild name:

sys-fs/xfsprogs-5.2.0

Description

xfs filesystem utilities

Added to portage

2019-08-20

2019-08-19
dav1d - 0.4.0
Ebuild name:

media-libs/dav1d-0.4.0

Description

dav1d is an AV1 Decoder

Added to portage

2019-08-19

elasticsearch-py - 6.4.0
Ebuild name:

dev-python/elasticsearch-py-6.4.0

Description

Official Python low-level client for Elasticsearch

Added to portage

2019-08-19

elasticsearch-py - 7.0.2
Ebuild name:

dev-python/elasticsearch-py-7.0.2

Description

Official Python low-level client for Elasticsearch

Added to portage

2019-08-19

ffmpeg - 4.2
Ebuild name:

media-video/ffmpeg-4.2

Description

Complete solution to record, convert and stream audio and video. Includes li

Added to portage

2019-08-19

genkernel - 4.0.0_beta13
Ebuild name:

sys-kernel/genkernel-4.0.0_beta13

Description

Gentoo automatic kernel building scripts

Added to portage

2019-08-19

gentoolkit - 0.4.6
Ebuild name:

app-portage/gentoolkit-0.4.6

Description

Collection of administration scripts for Gentoo

Added to portage

2019-08-19

git - 2.23.0
Ebuild name:

dev-vcs/git-2.23.0

Description

stupid content tracker distributed VCS designed for speed and efficiency

Added to portage

2019-08-19

git-sources - 5.3_rc5
Ebuild name:

sys-kernel/git-sources-5.3_rc5

Description

The very latest -git version of the Linux kernel

Added to portage

2019-08-19

gnome-shell-extension-dash-to-panel - 21
Ebuild name:

gnome-extra/gnome-shell-extension-dash-to-panel-21

Description

An icon taskbar for the Gnome Shell

Added to portage

2019-08-19

gnutls - 3.6.9
Ebuild name:

net-libs/gnutls-3.6.9

Description

A TLS 1.2 and SSL 3.0 implementation for the GNU project

Added to portage

2019-08-19

gtk-engines - 2.20.2-r2
Ebuild name:

x11-themes/gtk-engines-2.20.2-r2

Description

GTK+2 standard engines and themes

Added to portage

2019-08-19

gtk-engines-adwaita - 3.22.3
Ebuild name:

x11-themes/gtk-engines-adwaita-3.22.3

Description

Adwaita GTK+2 theme engine

Added to portage

2019-08-19

gtk-engines-adwaita - 3.28
Ebuild name:

x11-themes/gtk-engines-adwaita-3.28

Description

Adwaita GTK+2 theme engine

Added to portage

2019-08-19

hwids - 20190818
Ebuild name:

sys-apps/hwids-20190818

Description

Hardware (PCI, USB, OUI, IAB) IDs databases

Added to portage

2019-08-19

iml - 1.0.5
Ebuild name:

sci-libs/iml-1.0.5

Description

Integer Matrix Library

Added to portage

2019-08-19

ipmiutil - 3.1.4
Ebuild name:

sys-apps/ipmiutil-3.1.4

Description

IPMI Management Utilities

Added to portage

2019-08-19

kube-apiserver - 1.13.10
Ebuild name:

sys-cluster/kube-apiserver-1.13.10

Description

Kubernetes API server

Added to portage

2019-08-19

kube-apiserver - 1.14.6
Ebuild name:

sys-cluster/kube-apiserver-1.14.6

Description

Kubernetes API server

Added to portage

2019-08-19

kube-apiserver - 1.15.3
Ebuild name:

sys-cluster/kube-apiserver-1.15.3

Description

Kubernetes API server

Added to portage

2019-08-19

kube-controller-manager - 1.13.10
Ebuild name:

sys-cluster/kube-controller-manager-1.13.10

Description

Kubernetes Controller Manager

Added to portage

2019-08-19

kube-controller-manager - 1.14.6
Ebuild name:

sys-cluster/kube-controller-manager-1.14.6

Description

Kubernetes Controller Manager

Added to portage

2019-08-19

kube-controller-manager - 1.15.3
Ebuild name:

sys-cluster/kube-controller-manager-1.15.3

Description

Kubernetes Controller Manager

Added to portage

2019-08-19

kube-proxy - 1.13.10
Ebuild name:

sys-cluster/kube-proxy-1.13.10

Description

Kubernetes Proxy service

Added to portage

2019-08-19

kube-proxy - 1.14.6
Ebuild name:

sys-cluster/kube-proxy-1.14.6

Description

Kubernetes Proxy service

Added to portage

2019-08-19

kube-proxy - 1.15.3
Ebuild name:

sys-cluster/kube-proxy-1.15.3

Description

Kubernetes Proxy service

Added to portage

2019-08-19

kube-scheduler - 1.13.10
Ebuild name:

sys-cluster/kube-scheduler-1.13.10

Description

Kubernetes Scheduler

Added to portage

2019-08-19

kube-scheduler - 1.14.6
Ebuild name:

sys-cluster/kube-scheduler-1.14.6

Description

Kubernetes Scheduler

Added to portage

2019-08-19

kube-scheduler - 1.15.3
Ebuild name:

sys-cluster/kube-scheduler-1.15.3

Description

Kubernetes Scheduler

Added to portage

2019-08-19

kubeadm - 1.13.10
Ebuild name:

sys-cluster/kubeadm-1.13.10

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2019-08-19

kubeadm - 1.14.6
Ebuild name:

sys-cluster/kubeadm-1.14.6

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2019-08-19

kubeadm - 1.15.3
Ebuild name:

sys-cluster/kubeadm-1.15.3

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2019-08-19

kubectl - 1.13.10
Ebuild name:

sys-cluster/kubectl-1.13.10

Description

CLI to run commands against Kubernetes clusters

Added to portage

2019-08-19

kubectl - 1.14.6
Ebuild name:

sys-cluster/kubectl-1.14.6

Description

CLI to run commands against Kubernetes clusters

Added to portage

2019-08-19

kubectl - 1.15.3
Ebuild name:

sys-cluster/kubectl-1.15.3

Description

CLI to run commands against Kubernetes clusters

Added to portage

2019-08-19

kubelet - 1.13.10
Ebuild name:

sys-cluster/kubelet-1.13.10

Description

Kubernetes Node Agent

Added to portage

2019-08-19

kubelet - 1.14.6
Ebuild name:

sys-cluster/kubelet-1.14.6

Description

Kubernetes Node Agent

Added to portage

2019-08-19

kubelet - 1.15.3
Ebuild name:

sys-cluster/kubelet-1.15.3

Description

Kubernetes Node Agent

Added to portage

2019-08-19

libassuan - 2.5.3
Ebuild name:

dev-libs/libassuan-2.5.3

Description

IPC library used by GnuPG and GPGME

Added to portage

2019-08-19

libbsd - 0.10.0
Ebuild name:

dev-libs/libbsd-0.10.0

Description

An library to provide useful functions commonly found on BSD systems

Added to portage

2019-08-19

liblouis - 3.10.0
Ebuild name:

dev-libs/liblouis-3.10.0

Description

An open-source braille translator and back-translator

Added to portage

2019-08-19

libtasn1 - 4.14
Ebuild name:

dev-libs/libtasn1-4.14

Description

ASN.1 library

Added to portage

2019-08-19

lxsession - 0.5.4-r1
Ebuild name:

lxde-base/lxsession-0.5.4-r1

Description

LXDE session manager

Added to portage

2019-08-19

mixxx - 2.2.2
Ebuild name:

media-sound/mixxx-2.2.2

Description

Advanced Digital DJ tool based on Qt

Added to portage

2019-08-19

nessus-agent-bin - 7.4.2
Ebuild name:

net-analyzer/nessus-agent-bin-7.4.2

Description

A remote security scanner for Linux - agent component

Added to portage

2019-08-19

nufw - 2.2.22-r3
Ebuild name:

net-firewall/nufw-2.2.22-r3

Description

An enterprise grade authenticating firewall based on netfilter

Added to portage

2019-08-19

pgf - 3.1.4-r1
Ebuild name:

dev-tex/pgf-3.1.4-r1

Description

The TeX Portable Graphic Format

Added to portage

2019-08-19

pgf - 3.1.4b-r1
Ebuild name:

dev-tex/pgf-3.1.4b-r1

Description

The TeX Portable Graphic Format

Added to portage

2019-08-19

pigiarniq - 2
Ebuild name:

media-fonts/pigiarniq-2

Description

Nunavut's official Inuktitut font

Added to portage

2019-08-19

portage - 2.3.72
Ebuild name:

sys-apps/portage-2.3.72

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2019-08-19

prometheus - 2.12.0
Ebuild name:

app-metrics/prometheus-2.12.0

Description

Prometheus monitoring system and time series database

Added to portage

2019-08-19

protobuf-c - 1.3.2
Ebuild name:

dev-libs/protobuf-c-1.3.2

Description

Protocol Buffers implementation in C

Added to portage

2019-08-19

tomcat - 9.0.24
Ebuild name:

www-servers/tomcat-9.0.24

Description

Tomcat Servlet-4.0/JSP-2.4?/EL-3.1?/WebSocket-1.2?/JASPIC-1.1 Container

Added to portage

2019-08-19

tomcat-servlet-api - 9.0.24
Ebuild name:

dev-java/tomcat-servlet-api-9.0.24

Description

Tomcat's Servlet API 4.0/JSP API 2.4?/EL API 3.1? implementation

Added to portage

2019-08-19

vivaldi-snapshot - 2.7.1628.28_p1
Ebuild name:

www-client/vivaldi-snapshot-2.7.1628.28_p1

Description

A browser for our friends

Added to portage

2019-08-19

wesnoth - 1.15.0
Ebuild name:

games-strategy/wesnoth-1.15.0

Description

Battle for Wesnoth - A fantasy turn-based strategy game

Added to portage

2019-08-19

whois - 5.5.1
Ebuild name:

net-misc/whois-5.5.1

Description

improved Whois Client

Added to portage

2019-08-19

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: 57.4 ms