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:

84712

userrating:

average rating: 1.2 (52 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

4. Startup File


Having explored vi commands somewhat, we are now ready to create
a default editing environment through the use of .exrc,
the configuration file which resides in user's home directory.


.exrc typically contains at least three types of entries:



  1. set commands to create preferred editing environment
  2. map commands to assign functions or macros to keys
  3. ab commands to either map abbreviations or automatically
    correct common spelling errors

When mapping escape sequences of some keys, we may need to
quote them, that is, to insert them literally. This can
be accomplished in vi by issuing a text input command and pressing
Ctrl-V before the key we wish to quote is pressed.


Now let's look at a sample .exrc:



set autoindent
set wrapmargin=8
set ignorecase
map #4 !}fmt^M
ab teh the
ab cutsomer customer

Lines 1 and 2 set autoindent mode on and turn on wordwrap at column
72. Line 3 specifies that all searches are to be case insensitive.
Line 4 maps function key 4 to reformat from the cursor position
to the end of the paragraph
. Finally, lines 5 and 6 map some
common misspellings to the correct spelling. Note that ^M
on lines 4 and 5 are created by pressing Ctrl-V and then
hitting Ctrl-M.


With a little creativity you can make vi look as personal as you wish.


NOTE: After creating .exrc make sure that EXINIT
environment variable is not set as it would overwrite whatever
settings you entered into .exrc. You can verify whether
the EXINIT variable is set using this command from the UNIX command
prompt:



$ set | grep EXINIT

If you see no output, you're fine.


Make sure that .exrc contains no blank lines - they
are not allowed.



/* 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: average rating: 1.1 (40 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-04-30
AusweisApp - 2.5.1
Ebuild name:

sys-auth/AusweisApp-2.5.1

Description

Official authentication app for German ID cards and residence permits

Added to portage

2026-04-30

acme-sh - 3.1.3
Ebuild name:

app-crypt/acme-sh-3.1.3

Description

A pure Unix shell script implementing ACME client protocol

Added to portage

2026-04-30

bedrock-server - 1.26.14.1
Ebuild name:

games-server/bedrock-server-1.26.14.1

Description

The official bedrock (non-java) based server for the sandbox

Added to portage

2026-04-30

cryptmount - 6.4.0
Ebuild name:

sys-fs/cryptmount-6.4.0

Description

A utility for management and user-mode mounting of encrypted filesystems

Added to portage

2026-04-30

crystal - 1.20.0-r1
Ebuild name:

dev-lang/crystal-1.20.0-r1

Description

The Crystal Programming Language

Added to portage

2026-04-30

crystal - 1.20.1
Ebuild name:

dev-lang/crystal-1.20.1

Description

The Crystal Programming Language

Added to portage

2026-04-30

distrobox - 1.8.2.5
Ebuild name:

app-containers/distrobox-1.8.2.5

Description

Use any Linux distribution inside your terminal (powered by docker

Added to portage

2026-04-30

dkjson - 2.9
Ebuild name:

dev-lua/dkjson-2.9

Description

David Kolf's JSON module for Lua

Added to portage

2026-04-30

frr - 10.1.5
Ebuild name:

net-misc/frr-10.1.5

Description

The FRRouting Protocol Suite

Added to portage

2026-04-30

frr - 10.3.4
Ebuild name:

net-misc/frr-10.3.4

Description

The FRRouting Protocol Suite

Added to portage

2026-04-30

frr - 10.4.4
Ebuild name:

net-misc/frr-10.4.4

Description

The FRRouting Protocol Suite

Added to portage

2026-04-30

frr - 10.5.4
Ebuild name:

net-misc/frr-10.5.4

Description

The FRRouting Protocol Suite

Added to portage

2026-04-30

frr - 10.6.1
Ebuild name:

net-misc/frr-10.6.1

Description

The FRRouting Protocol Suite

Added to portage

2026-04-30

geekbench - 6.7.1
Ebuild name:

app-benchmarks/geekbench-6.7.1

Description

A Cross-Platform Benchmark for Android, iOS, Linux, MacOS and Window

Added to portage

2026-04-30

gnutls - 3.8.13
Ebuild name:

net-libs/gnutls-3.8.13

Description

Secure communications library implementing the SSL, TLS and DTLS protocols

Added to portage

2026-04-30

h5utils - 1.13.1-r1
Ebuild name:

sci-misc/h5utils-1.13.1-r1

Description

Utilities for visualization and conversion of HDF5 files

Added to portage

2026-04-30

joplin-desktop - 3.6.10
Ebuild name:

app-office/joplin-desktop-3.6.10

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-04-30

level-zero - 1.28.3
Ebuild name:

dev-libs/level-zero-1.28.3

Description

oneAPI Level Zero headers, loader and validation layer

Added to portage

2026-04-30

libupnp - 1.14.31
Ebuild name:

net-libs/libupnp-1.14.31

Description

An Portable Open Source UPnP Development Kit

Added to portage

2026-04-30

libupnp - 1.18.5
Ebuild name:

net-libs/libupnp-1.18.5

Description

An Portable Open Source UPnP Development Kit

Added to portage

2026-04-30

luasystem - 0.7.1
Ebuild name:

dev-lua/luasystem-0.7.1

Description

Platform independent system calls for Lua

Added to portage

2026-04-30

mit-krb5 - 1.22.2-r1
Ebuild name:

app-crypt/mit-krb5-1.22.2-r1

Description

MIT Kerberos V

Added to portage

2026-04-30

ninja-mode - 1.12.1
Ebuild name:

app-emacs/ninja-mode-1.12.1

Description

GNU Emacs mode for handling Ninja build files

Added to portage

2026-04-30

nix-mode - 1.5.0
Ebuild name:

app-emacs/nix-mode-1.5.0

Description

GNU Emacs major mode for editing Nix expressions

Added to portage

2026-04-30

no-littering - 1.8.5
Ebuild name:

app-emacs/no-littering-1.8.5

Description

ELisp library that helps keeping Emacs configuration directory clean

Added to portage

2026-04-30

no-littering - 1.8.6
Ebuild name:

app-emacs/no-littering-1.8.6

Description

ELisp library that helps keeping Emacs configuration directory clean

Added to portage

2026-04-30

polkit - 126-r3
Ebuild name:

sys-auth/polkit-126-r3

Description

Policy framework for controlling privileges for system-wide services

Added to portage

2026-04-30

prosody - 13.0.5
Ebuild name:

net-im/prosody-13.0.5

Description

Prosody is a modern XMPP communication server

Added to portage

2026-04-30

pure-ftpd - 1.0.54
Ebuild name:

net-ftp/pure-ftpd-1.0.54

Description

Fast, production-quality, standard-conformant FTP server

Added to portage

2026-04-30

rar - 7.21
Ebuild name:

app-arch/rar-7.21

Description

RAR compressor/uncompressor

Added to portage

2026-04-30

unifi - 10.3.58
Ebuild name:

net-wireless/unifi-10.3.58

Description

A Management Controller for Ubiquiti Networks UniFi APs

Added to portage

2026-04-30

unrar - 7.2.6
Ebuild name:

app-arch/unrar-7.2.6

Description

Uncompress rar files

Added to portage

2026-04-30

weston - 15.0.1
Ebuild name:

dev-libs/weston-15.0.1

Description

Wayland reference compositor

Added to portage

2026-04-30

ytmusicapi - 1.12.0
Ebuild name:

dev-python/ytmusicapi-1.12.0

Description

Unofficial API for YouTube Music

Added to portage

2026-04-30

2026-04-29
backrefs - 7.0
Ebuild name:

dev-python/backrefs-7.0

Description

Wrapper around re or regex that adds additional back references

Added to portage

2026-04-29

bluez - 5.86-r1
Ebuild name:

net-wireless/bluez-5.86-r1

Description

Bluetooth Tools and System Daemons for Linux

Added to portage

2026-04-29

cbor2 - 6.0.1
Ebuild name:

dev-python/cbor2-6.0.1

Description

CBOR (de)serializer with extensive tag support

Added to portage

2026-04-29

ceph - 20.2.1-r2
Ebuild name:

sys-cluster/ceph-20.2.1-r2

Description

Ceph distributed filesystem

Added to portage

2026-04-29

cfitsio - 4.6.4
Ebuild name:

sci-libs/cfitsio-4.6.4

Description

C and Fortran library for manipulating FITS files

Added to portage

2026-04-29

chrome-binary-plugins - 147.0.7727.137
Ebuild name:

www-plugins/chrome-binary-plugins-147.0.7727.137

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-04-29

chromedriver-bin - 147.0.7727.137
Ebuild name:

www-apps/chromedriver-bin-147.0.7727.137

Description

WebDriver for Chrome

Added to portage

2026-04-29

chromium - 147.0.7727.137
Ebuild name:

www-client/chromium-147.0.7727.137

Description

Open-source version of Google Chrome web browser

Added to portage

2026-04-29

deno-bin - 2.7.14
Ebuild name:

dev-lang/deno-bin-2.7.14

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-04-29

ethtool - 7.0
Ebuild name:

sys-apps/ethtool-7.0

Description

Utility for examining and tuning ethernet-based network interfaces

Added to portage

2026-04-29

experience - 3.04-r2
Ebuild name:

x11-themes/experience-3.04-r2

Description

GTK+2 themes which copy and improve the look of XP Luna

Added to portage

2026-04-29

firefox - 140.10.1
Ebuild name:

www-client/firefox-140.10.1

Description

Firefox Web Browser

Added to portage

2026-04-29

firefox - 150.0.1
Ebuild name:

www-client/firefox-150.0.1

Description

Firefox Web Browser

Added to portage

2026-04-29

firefox-bin - 140.10.1
Ebuild name:

www-client/firefox-bin-140.10.1

Description

Firefox Web Browser

Added to portage

2026-04-29

firefox-l10n - 150.0.1
Ebuild name:

www-client/firefox-l10n-150.0.1

Description

Firefox Web Browser's translation files

Added to portage

2026-04-29

four-in-a-row - 3.38.1-r1
Ebuild name:

games-board/four-in-a-row-3.38.1-r1

Description

Make lines of the same color to win

Added to portage

2026-04-29

getuto - 1.18
Ebuild name:

app-portage/getuto-1.18

Description

Standalone Gentoo gpg trust anchor generation tool for binpkgs

Added to portage

2026-04-29

getuto - 1.19.1
Ebuild name:

app-portage/getuto-1.19.1

Description

Standalone Gentoo gpg trust anchor generation tool for binpkgs

Added to portage

2026-04-29

gitpython - 3.1.49
Ebuild name:

dev-python/gitpython-3.1.49

Description

Library used to interact with Git repositories

Added to portage

2026-04-29

gnome-klotski - 3.38.2-r1
Ebuild name:

games-puzzle/gnome-klotski-3.38.2-r1

Description

Slide blocks to solve the puzzle

Added to portage

2026-04-29

google-chrome - 147.0.7727.137
Ebuild name:

www-client/google-chrome-147.0.7727.137

Description

The web browser from Google

Added to portage

2026-04-29

googleapis-common-protos - 1.73.1-r1
Ebuild name:

dev-python/googleapis-common-protos-1.73.1-r1

Description

Python classes generated from the common protos in th

Added to portage

2026-04-29

googleapis-common-protos - 1.74.0-r1
Ebuild name:

dev-python/googleapis-common-protos-1.74.0-r1

Description

Python classes generated from the common protos in th

Added to portage

2026-04-29

grass - 8.5.0_rc1
Ebuild name:

sci-geosciences/grass-8.5.0_rc1

Description

Free GIS with raster and vector functionality, as well as 3D vizual

Added to portage

2026-04-29

gtk+ - 3.24.52
Ebuild name:

x11-libs/gtk+-3.24.52

Description

Gimp ToolKit +

Added to portage

2026-04-29

hcloud - 2.19.0
Ebuild name:

dev-python/hcloud-2.19.0

Description

Official Hetzner Cloud python library

Added to portage

2026-04-29

htop - 3.5.1
Ebuild name:

sys-process/htop-3.5.1

Description

Interactive process viewer

Added to portage

2026-04-29

ibus - 1.5.33
Ebuild name:

app-i18n/ibus-1.5.33

Description

Intelligent Input Bus for Linux / Unix OS

Added to portage

2026-04-29

libclc - 22.1.4-r1
Ebuild name:

llvm-core/libclc-22.1.4-r1

Description

OpenCL C library

Added to portage

2026-04-29

libnotify - 0.8.8
Ebuild name:

x11-libs/libnotify-0.8.8

Description

A library for sending desktop notifications

Added to portage

2026-04-29

localsearch - 3.10.2-r1
Ebuild name:

app-misc/localsearch-3.10.2-r1

Description

Indexer and search engine that powers desktop search for core GNOME

Added to portage

2026-04-29

loudmouth - 1.5.4-r1
Ebuild name:

net-libs/loudmouth-1.5.4-r1

Description

Lightweight & easy-to-use Jabber library written in C

Added to portage

2026-04-29

mako - 1.3.12
Ebuild name:

dev-python/mako-1.3.12

Description

A Python templating language

Added to portage

2026-04-29

mattermost-desktop-bin - 6.2.0_rc3
Ebuild name:

net-im/mattermost-desktop-bin-6.2.0_rc3

Description

Mattermost Desktop application

Added to portage

2026-04-29

microsoft-edge-beta - 148.0.3967.34
Ebuild name:

www-client/microsoft-edge-beta-148.0.3967.34

Description

The web browser from Microsoft

Added to portage

2026-04-29

microsoft-edge-dev - 149.0.3993.0
Ebuild name:

www-client/microsoft-edge-dev-149.0.3993.0

Description

The web browser from Microsoft

Added to portage

2026-04-29

modsecurity-crs - 3.3.9
Ebuild name:

www-apache/modsecurity-crs-3.3.9

Description

OWASP ModSecurity Core Rule Set

Added to portage

2026-04-29

modsecurity-crs - 4.25.0
Ebuild name:

www-apache/modsecurity-crs-4.25.0

Description

OWASP ModSecurity Core Rule Set

Added to portage

2026-04-29

mu - 1.14.1
Ebuild name:

net-mail/mu-1.14.1

Description

Set of tools to deal with Maildirs, in particular, searching and indexing

Added to portage

2026-04-29

netifrc - 0.7.14
Ebuild name:

net-misc/netifrc-0.7.14

Description

Gentoo Network Interface Management Scripts

Added to portage

2026-04-29

nginx - 1.29.8
Ebuild name:

www-servers/nginx-1.29.8

Description

Added to portage

2026-04-29

nginx - 1.30.0
Ebuild name:

www-servers/nginx-1.30.0

Description

Added to portage

2026-04-29

noflet - 0.0.15_p20141102-r1
Ebuild name:

app-emacs/noflet-0.0.15_p20141102-r1

Description

Dynamic, local advice for Emacs-Lisp code

Added to portage

2026-04-29

nvidia-drivers - 535.309.01
Ebuild name:

x11-drivers/nvidia-drivers-535.309.01

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-04-29

nvidia-drivers - 580.159.03-r1
Ebuild name:

x11-drivers/nvidia-drivers-580.159.03-r1

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-04-29

nvidia-drivers - 595.71.05
Ebuild name:

x11-drivers/nvidia-drivers-595.71.05

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-04-29

openhab-bin - 5.1.4-r1
Ebuild name:

app-misc/openhab-bin-5.1.4-r1

Description

An open-source automation software for your home

Added to portage

2026-04-29

proto-plus - 1.27.2-r1
Ebuild name:

dev-python/proto-plus-1.27.2-r1

Description

Beautiful, Pythonic protocol buffers

Added to portage

2026-04-29

pypy - 2.7.7.3.22
Ebuild name:

dev-lang/pypy-2.7.7.3.22

Description

A fast, compliant alternative implementation of the Python () language

Added to portage

2026-04-29

pypy - 3.11.7.3.22
Ebuild name:

dev-lang/pypy-3.11.7.3.22

Description

A fast, compliant alternative implementation of the Python () language

Added to portage

2026-04-29

pypy-exe - 7.3.22
Ebuild name:

dev-python/pypy-exe-7.3.22

Description

PyPy executable (build from source)

Added to portage

2026-04-29

pypy-exe-bin - 7.3.22
Ebuild name:

dev-python/pypy-exe-bin-7.3.22

Description

PyPy executable (pre-built version)

Added to portage

2026-04-29

pypy3-exe - 3.11.7.3.22
Ebuild name:

dev-lang/pypy3-exe-3.11.7.3.22

Description

PyPy3.11 executable (build from source)

Added to portage

2026-04-29

pypy3-exe-bin - 3.11.7.3.22
Ebuild name:

dev-lang/pypy3-exe-bin-3.11.7.3.22

Description

PyPy3.11 executable (pre-built version)

Added to portage

2026-04-29

reportlab - 4.5.0
Ebuild name:

dev-python/reportlab-4.5.0

Description

Tools for generating printable PDF documents from any data source

Added to portage

2026-04-29

rsync - 3.4.2
Ebuild name:

net-misc/rsync-3.4.2

Description

File transfer program to keep remote files into sync

Added to portage

2026-04-29

sssd - 2.13.0
Ebuild name:

sys-auth/sssd-2.13.0

Description

System Security Services Daemon provides access to identity and authentication

Added to portage

2026-04-29

sssd - 2.9.8-r1
Ebuild name:

sys-auth/sssd-2.9.8-r1

Description

System Security Services Daemon provides access to identity and authenticati

Added to portage

2026-04-29

stripe-mock - 0.198.0
Ebuild name:

dev-util/stripe-mock-0.198.0

Description

Mock HTTP server that responds like the real Stripe API

Added to portage

2026-04-29

synapse - 1.152.0
Ebuild name:

net-im/synapse-1.152.0

Description

Reference implementation of Matrix homeserver

Added to portage

2026-04-29

translate-toolkit - 3.19.7
Ebuild name:

dev-python/translate-toolkit-3.19.7

Description

Toolkit to convert between many translation formats

Added to portage

2026-04-29

trove-classifiers - 2026.4.28.13
Ebuild name:

dev-python/trove-classifiers-2026.4.28.13

Description

Canonical source for classifiers on PyPI (pypi.org)

Added to portage

2026-04-29

vivaldi-snapshot - 7.10.4021.3
Ebuild name:

www-client/vivaldi-snapshot-7.10.4021.3

Description

A browser for our friends

Added to portage

2026-04-29

wget - 1.25.0-r2
Ebuild name:

net-misc/wget-1.25.0-r2

Description

Network utility to retrieve files from the WWW

Added to portage

2026-04-29

wireless-regdb - 20260318
Ebuild name:

net-wireless/wireless-regdb-20260318

Description

Wireless Regulatory database for Linux

Added to portage

2026-04-29

zope-event - 6.2
Ebuild name:

dev-python/zope-event-6.2

Description

Event publishing / dispatch, used by Zope Component Architecture

Added to portage

2026-04-29

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 47.7 ms