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:

87576

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.2 (63 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-08-11
android-studio - 2026.1.3.8
Ebuild name:

dev-util/android-studio-2026.1.3.8

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-08-11

cachebox - 6.2.5
Ebuild name:

dev-python/cachebox-6.2.5

Description

The fastest memoizing and caching Python library written in Rust

Added to portage

2026-08-11

eiciel - 0.10.1-r1
Ebuild name:

gnome-extra/eiciel-0.10.1-r1

Description

ACL editor for GNOME, with Nautilus extension

Added to portage

2026-08-11

feedparser-sgmllib - 2.1.0
Ebuild name:

dev-python/feedparser-sgmllib-2.1.0

Description

sgmllib from Python 2.7 for feedparser use

Added to portage

2026-08-11

heroic-bin - 2.22.1
Ebuild name:

games-util/heroic-bin-2.22.1

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-08-11

intellij-idea - 2026.2.1
Ebuild name:

dev-util/intellij-idea-2026.2.1

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-08-11

2026-08-10
apache_exporter - 0-r1
Ebuild name:

acct-group/apache_exporter-0-r1

Description

Group used for the apache_exporter prometheus plugin

Added to portage

2026-08-10

apache_exporter - 0-r1
Ebuild name:

acct-user/apache_exporter-0-r1

Description

User for the apache_exporter prometheus plugin

Added to portage

2026-08-10

apache_exporter - 1.1.1
Ebuild name:

app-metrics/apache_exporter-1.1.1

Description

Prometheus exporter for apache metrics

Added to portage

2026-08-10

at-spi2-core - 2.58.8
Ebuild name:

app-accessibility/at-spi2-core-2.58.8

Description

D-Bus accessibility specifications and registration daemon

Added to portage

2026-08-10

b4 - 0.16.0
Ebuild name:

net-mail/b4-0.16.0

Description

Utility for fetching patchsets from public-inbox

Added to portage

2026-08-10

bats - 1.14.0
Ebuild name:

dev-util/bats-1.14.0

Description

Bats-core Bash Automated Testing System

Added to portage

2026-08-10

cjose - 0.6.2.7
Ebuild name:

dev-libs/cjose-0.6.2.7

Description

C library implementing the Javascript Object Signing and Encryption (JOSE)

Added to portage

2026-08-10

curses - 1.0.12
Ebuild name:

dev-ml/curses-1.0.12

Description

Bindings to ncurses

Added to portage

2026-08-10

dist-kernel - 6.12.103
Ebuild name:

virtual/dist-kernel-6.12.103

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-10

dist-kernel - 6.18.44
Ebuild name:

virtual/dist-kernel-6.18.44

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-10

dist-kernel - 6.6.151
Ebuild name:

virtual/dist-kernel-6.6.151

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-10

dist-kernel - 7.1.8
Ebuild name:

virtual/dist-kernel-7.1.8

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-10

dnsdist - 2.1.1
Ebuild name:

net-dns/dnsdist-2.1.1

Description

A highly DNS-, DoS- and abuse-aware loadbalancer

Added to portage

2026-08-10

elixir - 1.20.2
Ebuild name:

dev-lang/elixir-1.20.2

Description

Elixir programming language

Added to portage

2026-08-10

esptool - 4.12.0
Ebuild name:

dev-embedded/esptool-4.12.0

Description

Utility to communicate with the ROM bootloader in Espressif ESP8266 and

Added to portage

2026-08-10

esptool - 5.3.1
Ebuild name:

dev-embedded/esptool-5.3.1

Description

Serial utility for flashing and interacting with Espressif ESP8266 and E

Added to portage

2026-08-10

eza - 0.23.5
Ebuild name:

sys-apps/eza-0.23.5

Description

A modern, maintained replacement for ls

Added to portage

2026-08-10

gajim - 2.5.0
Ebuild name:

net-im/gajim-2.5.0

Description

GTK XMPP Client

Added to portage

2026-08-10

gcc - 16.2.1_p20260808
Ebuild name:

sys-devel/gcc-16.2.1_p20260808

Description

The GNU Compiler Collection

Added to portage

2026-08-10

gcc - 17.0.0_p20260809
Ebuild name:

sys-devel/gcc-17.0.0_p20260809

Description

The GNU Compiler Collection

Added to portage

2026-08-10

gdal - 3.13.2
Ebuild name:

sci-libs/gdal-3.13.2

Description

Translator library for raster geospatial data formats (includes OGR support)

Added to portage

2026-08-10

gdbus-codegen - 2.88.3
Ebuild name:

dev-util/gdbus-codegen-2.88.3

Description

GDBus code and documentation generator

Added to portage

2026-08-10

gdm - 49.2-r3
Ebuild name:

gnome-base/gdm-49.2-r3

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-08-10

gdm - 49.3-r3
Ebuild name:

gnome-base/gdm-49.3-r3

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-08-10

gdm - 49.4
Ebuild name:

gnome-base/gdm-49.4

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-08-10

gentoo-kernel - 6.12.103
Ebuild name:

sys-kernel/gentoo-kernel-6.12.103

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-10

gentoo-kernel - 6.18.44
Ebuild name:

sys-kernel/gentoo-kernel-6.18.44

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-10

gentoo-kernel - 6.6.151
Ebuild name:

sys-kernel/gentoo-kernel-6.6.151

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-10

gentoo-kernel - 7.1.8
Ebuild name:

sys-kernel/gentoo-kernel-7.1.8

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-10

gentoo-kernel-bin - 6.12.103
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.103

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-10

gentoo-kernel-bin - 6.18.44
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.44

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-10

gentoo-kernel-bin - 6.6.151
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.151

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-10

gentoo-kernel-bin - 7.1.8
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.8

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-10

gentoo-kernel-modprep - 6.12.103
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.103

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-10

gentoo-kernel-modprep - 6.18.44
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.44

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-10

gentoo-kernel-modprep - 6.6.151
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.151

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-10

gentoo-kernel-modprep - 7.1.8
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.8

Description

Minimal subset of gentoo-kernel-bin for building modules, fo

Added to portage

2026-08-10

gentoo-sources - 6.12.103
Ebuild name:

sys-kernel/gentoo-sources-6.12.103

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-10

gentoo-sources - 6.18.44
Ebuild name:

sys-kernel/gentoo-sources-6.18.44

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-10

gentoo-sources - 6.6.151
Ebuild name:

sys-kernel/gentoo-sources-6.6.151

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-10

gentoo-sources - 7.1.8
Ebuild name:

sys-kernel/gentoo-sources-7.1.8

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-10

gexiv2 - 0.14.7
Ebuild name:

media-libs/gexiv2-0.14.7

Description

GObject-based wrapper around the Exiv2 library

Added to portage

2026-08-10

git-sources - 7.2_rc7
Ebuild name:

sys-kernel/git-sources-7.2_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2026-08-10

glances - 4.5.6
Ebuild name:

sys-process/glances-4.5.6

Description

CLI curses based monitoring tool

Added to portage

2026-08-10

glib - 2.88.3
Ebuild name:

dev-libs/glib-2.88.3

Description

The GLib library of C routines

Added to portage

2026-08-10

glib-utils - 2.88.3
Ebuild name:

dev-util/glib-utils-2.88.3

Description

Build utilities for GLib using projects

Added to portage

2026-08-10

gnome-control-center - 49.9
Ebuild name:

gnome-base/gnome-control-center-49.9

Description

GNOME's main interface to configure various aspects of the des

Added to portage

2026-08-10

gnome-session-openrc - 49.3
Ebuild name:

gnome-base/gnome-session-openrc-49.3

Description

Gnome session leader for OpenRC

Added to portage

2026-08-10

gnome-shell - 49.9
Ebuild name:

gnome-base/gnome-shell-49.9

Description

Provides core UI functions for the GNOME desktop

Added to portage

2026-08-10

gnome-user-docs - 49.9
Ebuild name:

gnome-extra/gnome-user-docs-49.9

Description

GNOME end user documentation

Added to portage

2026-08-10

gtkmm - 4.20.0-r1
Ebuild name:

dev-cpp/gtkmm-4.20.0-r1

Description

C++ interface for GTK+

Added to portage

2026-08-10

httpx2 - 2.10.0
Ebuild name:

dev-python/httpx2-2.10.0

Description

The next generation HTTP client (Pydantic fork)

Added to portage

2026-08-10

ipmicfg - 1.38.0.260701
Ebuild name:

sys-apps/ipmicfg-1.38.0.260701

Description

An in-band utility for configuring Supermicro IPMI devices

Added to portage

2026-08-10

kdeconnect - 26.04.3-r3
Ebuild name:

kde-misc/kdeconnect-26.04.3-r3

Description

Adds communication between KDE Plasma and your smartphone

Added to portage

2026-08-10

keepassxc - 2.8.0_pre20260629-r1
Ebuild name:

app-admin/keepassxc-2.8.0_pre20260629-r1

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2026-08-10

knowit - 0.6.1
Ebuild name:

dev-python/knowit-0.6.1

Description

Know better your media files

Added to portage

2026-08-10

libadwaita - 1.8.7
Ebuild name:

gui-libs/libadwaita-1.8.7

Description

Building blocks for modern GNOME applications

Added to portage

2026-08-10

libcec - 8.1.6
Ebuild name:

dev-libs/libcec-8.1.6

Description

Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor

Added to portage

2026-08-10

liblore - 0.8.1
Ebuild name:

dev-python/liblore-0.8.1

Description

Shared library for public-inbox / lore.kernel.org access

Added to portage

2026-08-10

libssh - 0.11.5
Ebuild name:

net-libs/libssh-0.11.5

Description

Access a working SSH implementation by means of a library

Added to portage

2026-08-10

libssh - 0.12.2
Ebuild name:

net-libs/libssh-0.12.2

Description

Access a working SSH implementation by means of a library

Added to portage

2026-08-10

lmdb - 0.9.36
Ebuild name:

dev-db/lmdb-0.9.36

Description

An ultra-fast, ultra-compact key-value embedded data store

Added to portage

2026-08-10

lmdb - 1.0.1
Ebuild name:

dev-db/lmdb-1.0.1

Description

An ultra-fast, ultra-compact key-value embedded data store

Added to portage

2026-08-10

lsp-mode - 10.0.0
Ebuild name:

app-emacs/lsp-mode-10.0.0

Description

Emacs client/library for the Language Server Protocol

Added to portage

2026-08-10

lsp-mode - 9999
Ebuild name:

app-emacs/lsp-mode-9999

Description

Emacs client/library for the Language Server Protocol

Added to portage

2026-08-10

methane - 3.0.1-r1
Ebuild name:

games-arcade/methane-3.0.1-r1

Description

Port from an old Amiga game

Added to portage

2026-08-10

monitoring-plugins - 3.0.3
Ebuild name:

net-analyzer/monitoring-plugins-3.0.3

Description

50+ standard plugins for Icinga, Naemon, Nagios, Shinken, Sen

Added to portage

2026-08-10

mycli - 2.9.0
Ebuild name:

dev-db/mycli-2.9.0

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2026-08-10

numpy - 2.5.2
Ebuild name:

dev-python/numpy-2.5.2

Description

Fast array and numerical python library

Added to portage

2026-08-10

nwjs - 0.114.0-r1
Ebuild name:

dev-libs/nwjs-0.114.0-r1

Description

Framework that lets you call all Node.js modules directly from the DOM

Added to portage

2026-08-10

odamex - 12.3.0
Ebuild name:

games-engines/odamex-12.3.0

Description

Online multiplayer free software engine for DOOM

Added to portage

2026-08-10

owntracks-recorder - 1.0.3
Ebuild name:

sci-geosciences/owntracks-recorder-1.0.3

Description

Stores and accesses location data published by the OwnTrac

Added to portage

2026-08-10

pmix - 6.1.0
Ebuild name:

sys-cluster/pmix-6.1.0

Description

The Process Management Interface (PMI) Exascale

Added to portage

2026-08-10

postfix - 3.12_pre20260809
Ebuild name:

mail-mta/postfix-3.12_pre20260809

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-08-10

prrte - 3.0.13
Ebuild name:

sys-cluster/prrte-3.0.13

Description

PMIx Reference RunTime Environment

Added to portage

2026-08-10

prrte - 4.1.0
Ebuild name:

sys-cluster/prrte-4.1.0

Description

PMIx Reference RunTime Environment

Added to portage

2026-08-10

pykeepass - 4.2.0
Ebuild name:

dev-python/pykeepass-4.2.0

Description

Python library to interact with keepass databases (supports KDBX3 and KD

Added to portage

2026-08-10

pylint - 4.0.7
Ebuild name:

dev-python/pylint-4.0.7

Description

Python code static checker

Added to portage

2026-08-10

pysequoia - 0.1.34
Ebuild name:

dev-python/pysequoia-0.1.34

Description

Provides OpenPGP facilities using Sequoia-PGP library

Added to portage

2026-08-10

qemu-guest-agent - 10.2.3
Ebuild name:

app-emulation/qemu-guest-agent-10.2.3

Description

QEMU Guest Agent (qemu-ga) for use when running inside a VM

Added to portage

2026-08-10

qpdf - 12.4.0
Ebuild name:

app-text/qpdf-12.4.0

Description

Command-line tool for structural, content-preserving transformation of PDF fil

Added to portage

2026-08-10

roundcube - 1.6.18
Ebuild name:

mail-client/roundcube-1.6.18

Description

Browser-based multilingual IMAP client with an application-like user i

Added to portage

2026-08-10

roundcube - 1.7.3
Ebuild name:

mail-client/roundcube-1.7.3

Description

A browser-based multilingual IMAP client with an application-like user

Added to portage

2026-08-10

samba - 4.23.11
Ebuild name:

net-fs/samba-4.23.11

Description

Samba Suite Version 4

Added to portage

2026-08-10

scribus - 1.7.3-r1
Ebuild name:

app-office/scribus-1.7.3-r1

Description

Desktop publishing (DTP) and layout program

Added to portage

2026-08-10

syd - 3.58.0
Ebuild name:

sys-apps/syd-3.58.0

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2026-08-10

telega - 0.8.660_p20260806
Ebuild name:

app-emacs/telega-0.8.660_p20260806

Description

Full-featured unofficial GNU Emacs client for Telegram

Added to portage

2026-08-10

thriftpy2 - 0.7.0
Ebuild name:

dev-python/thriftpy2-0.7.0

Description

Pure python approach of Apache Thrift

Added to portage

2026-08-10

tremc - 0.9.6
Ebuild name:

net-p2p/tremc-0.9.6

Description

Ncurses interface for the Transmission BitTorrent client

Added to portage

2026-08-10

udisks - 2.11.2
Ebuild name:

sys-fs/udisks-2.11.2

Description

Daemon providing interfaces to work with storage devices

Added to portage

2026-08-10

unreal - 227k_p14-r1
Ebuild name:

games-fps/unreal-227k_p14-r1

Description

Modern build of the original Unreal engine

Added to portage

2026-08-10

vanilla-kernel - 6.12.103
Ebuild name:

sys-kernel/vanilla-kernel-6.12.103

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-10

vanilla-kernel - 6.18.44
Ebuild name:

sys-kernel/vanilla-kernel-6.18.44

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-10

vanilla-kernel - 6.6.151
Ebuild name:

sys-kernel/vanilla-kernel-6.6.151

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-10

vanilla-kernel - 7.1.8
Ebuild name:

sys-kernel/vanilla-kernel-7.1.8

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-10

vanilla-sources - 6.12.103
Ebuild name:

sys-kernel/vanilla-sources-6.12.103

Description

Full sources for the Linux kernel

Added to portage

2026-08-10

vanilla-sources - 6.18.44
Ebuild name:

sys-kernel/vanilla-sources-6.18.44

Description

Full sources for the Linux kernel

Added to portage

2026-08-10

vanilla-sources - 6.6.151
Ebuild name:

sys-kernel/vanilla-sources-6.6.151

Description

Full sources for the Linux kernel

Added to portage

2026-08-10

vanilla-sources - 7.1.8
Ebuild name:

sys-kernel/vanilla-sources-7.1.8

Description

Full sources for the Linux kernel

Added to portage

2026-08-10

vivaldi - 8.1.4087.61-r1
Ebuild name:

www-client/vivaldi-8.1.4087.61-r1

Description

A browser for our friends

Added to portage

2026-08-10

wofi - 1.5
Ebuild name:

gui-apps/wofi-1.5

Description

Wofi is a launcher/menu program for wlroots based wayland compositors like sway

Added to portage

2026-08-10

zxing-cpp - 3.1.0
Ebuild name:

media-libs/zxing-cpp-3.1.0

Description

C++ Multi-format 1D/2D barcode image processing library

Added to portage

2026-08-10

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