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:

87805

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-20
apr-util - 1.6.5
Ebuild name:

dev-libs/apr-util-1.6.5

Description

Apache Portable Runtime Utility Library

Added to portage

2026-08-20

aurorae - 6.6.6-r1
Ebuild name:

kde-plasma/aurorae-6.6.6-r1

Description

Themeable window decoration for KWin

Added to portage

2026-08-20

aurorae - 6.7.4-r1
Ebuild name:

kde-plasma/aurorae-6.7.4-r1

Description

Themeable window decoration for KWin

Added to portage

2026-08-20

bluedevil - 6.6.6-r1
Ebuild name:

kde-plasma/bluedevil-6.6.6-r1

Description

Bluetooth stack for KDE Plasma

Added to portage

2026-08-20

bluedevil - 6.7.4-r1
Ebuild name:

kde-plasma/bluedevil-6.7.4-r1

Description

Bluetooth stack for KDE Plasma

Added to portage

2026-08-20

breeze - 6.6.6-r1
Ebuild name:

kde-plasma/breeze-6.6.6-r1

Description

Breeze visual style for the Plasma desktop

Added to portage

2026-08-20

breeze - 6.7.4-r1
Ebuild name:

kde-plasma/breeze-6.7.4-r1

Description

Breeze visual style for the Plasma desktop

Added to portage

2026-08-20

breeze-grub - 6.6.6-r1
Ebuild name:

kde-plasma/breeze-grub-6.6.6-r1

Description

Breeze theme for GRUB

Added to portage

2026-08-20

breeze-grub - 6.7.4-r1
Ebuild name:

kde-plasma/breeze-grub-6.7.4-r1

Description

Breeze theme for GRUB

Added to portage

2026-08-20

breeze-gtk - 6.6.6-r1
Ebuild name:

kde-plasma/breeze-gtk-6.6.6-r1

Description

Official GTK+ port of Plasma's Breeze widget style

Added to portage

2026-08-20

breeze-gtk - 6.7.4-r1
Ebuild name:

kde-plasma/breeze-gtk-6.7.4-r1

Description

Official GTK+ port of Plasma's Breeze widget style

Added to portage

2026-08-20

breeze-plymouth - 6.6.6-r1
Ebuild name:

kde-plasma/breeze-plymouth-6.6.6-r1

Description

Breeze theme for Plymouth

Added to portage

2026-08-20

breeze-plymouth - 6.7.4-r1
Ebuild name:

kde-plasma/breeze-plymouth-6.7.4-r1

Description

Breeze theme for Plymouth

Added to portage

2026-08-20

claude-code - 2.1.236
Ebuild name:

dev-util/claude-code-2.1.236

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-08-20

discover - 6.6.6-r1
Ebuild name:

kde-plasma/discover-6.6.6-r1

Description

KDE Plasma resources management GUI

Added to portage

2026-08-20

discover - 6.7.4-r1
Ebuild name:

kde-plasma/discover-6.7.4-r1

Description

KDE Plasma resources management GUI

Added to portage

2026-08-20

drkonqi - 6.6.6-r1
Ebuild name:

kde-plasma/drkonqi-6.6.6-r1

Description

Plasma crash handler, gives the user feedback if a program crashed

Added to portage

2026-08-20

drkonqi - 6.7.4-r1
Ebuild name:

kde-plasma/drkonqi-6.7.4-r1

Description

Plasma crash handler, gives the user feedback if a program crashed

Added to portage

2026-08-20

flatpak-kcm - 6.6.6-r1
Ebuild name:

kde-plasma/flatpak-kcm-6.6.6-r1

Description

Flatpak Permissions Management KCM

Added to portage

2026-08-20

flatpak-kcm - 6.7.4-r1
Ebuild name:

kde-plasma/flatpak-kcm-6.7.4-r1

Description

Flatpak Permissions Management KCM

Added to portage

2026-08-20

go - 1.25.14
Ebuild name:

dev-lang/go-1.25.14

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2026-08-20

go - 1.26.7
Ebuild name:

dev-lang/go-1.26.7

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2026-08-20

go - 1.27.0
Ebuild name:

dev-lang/go-1.27.0

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2026-08-20

kactivitymanagerd - 6.6.6-r1
Ebuild name:

kde-plasma/kactivitymanagerd-6.6.6-r1

Description

System service to manage user's activities, track the usage p

Added to portage

2026-08-20

kactivitymanagerd - 6.7.4-r1
Ebuild name:

kde-plasma/kactivitymanagerd-6.7.4-r1

Description

System service to manage user's activities, track the usage p

Added to portage

2026-08-20

kde-cli-tools - 6.6.6-r1
Ebuild name:

kde-plasma/kde-cli-tools-6.6.6-r1

Description

Tools based on KDE Frameworks 6 to better interact with the syste

Added to portage

2026-08-20

kde-cli-tools - 6.7.4-r1
Ebuild name:

kde-plasma/kde-cli-tools-6.7.4-r1

Description

Tools based on KDE Frameworks 6 to better interact with the syste

Added to portage

2026-08-20

kde-cli-tools-common - 6.6.6-r1
Ebuild name:

kde-plasma/kde-cli-tools-common-6.6.6-r1

Description

Common files for

Added to portage

2026-08-20

kde-cli-tools-common - 6.7.4-r1
Ebuild name:

kde-plasma/kde-cli-tools-common-6.7.4-r1

Description

Common files for

Added to portage

2026-08-20

kde-gtk-config - 6.6.6-r1
Ebuild name:

kde-plasma/kde-gtk-config-6.6.6-r1

Description

Syncs KDE Plasma theme settings to GTK applications

Added to portage

2026-08-20

kde-gtk-config - 6.7.4-r1
Ebuild name:

kde-plasma/kde-gtk-config-6.7.4-r1

Description

Syncs KDE Plasma theme settings to GTK applications

Added to portage

2026-08-20

kdecoration - 6.6.6-r1
Ebuild name:

kde-plasma/kdecoration-6.6.6-r1

Description

Plugin based library to create window decorations

Added to portage

2026-08-20

kdecoration - 6.7.4-r1
Ebuild name:

kde-plasma/kdecoration-6.7.4-r1

Description

Plugin based library to create window decorations

Added to portage

2026-08-20

kdeplasma-addons - 6.6.6-r1
Ebuild name:

kde-plasma/kdeplasma-addons-6.6.6-r1

Description

Extra Plasma applets and engines

Added to portage

2026-08-20

kdeplasma-addons - 6.7.4-r1
Ebuild name:

kde-plasma/kdeplasma-addons-6.7.4-r1

Description

Extra Plasma applets and engines

Added to portage

2026-08-20

kdesu-gui - 6.6.6-r1
Ebuild name:

kde-plasma/kdesu-gui-6.6.6-r1

Description

Graphical frontend for KDE Frameworks' kdesu

Added to portage

2026-08-20

kdesu-gui - 6.7.4-r1
Ebuild name:

kde-plasma/kdesu-gui-6.7.4-r1

Description

Graphical frontend for KDE Frameworks' kdesu

Added to portage

2026-08-20

keditfiletype - 6.6.6-r1
Ebuild name:

kde-plasma/keditfiletype-6.6.6-r1

Description

File Type Editor

Added to portage

2026-08-20

keditfiletype - 6.7.4-r1
Ebuild name:

kde-plasma/keditfiletype-6.7.4-r1

Description

File Type Editor

Added to portage

2026-08-20

kgamma - 6.6.6-r1
Ebuild name:

kde-plasma/kgamma-6.6.6-r1

Description

Screen gamma values kcontrol module

Added to portage

2026-08-20

kgamma - 6.7.4-r1
Ebuild name:

kde-plasma/kgamma-6.7.4-r1

Description

Screen gamma values kcontrol module

Added to portage

2026-08-20

kglobalacceld - 6.6.6-r2
Ebuild name:

kde-plasma/kglobalacceld-6.6.6-r2

Description

Daemon providing Global Keyboard Shortcut (Accelerator) functiona

Added to portage

2026-08-20

kglobalacceld - 6.7.4-r1
Ebuild name:

kde-plasma/kglobalacceld-6.7.4-r1

Description

Daemon providing Global Keyboard Shortcut (Accelerator) functiona

Added to portage

2026-08-20

kinfocenter - 6.6.6-r1
Ebuild name:

kde-plasma/kinfocenter-6.6.6-r1

Description

Utility providing information about the computer hardware

Added to portage

2026-08-20

kinfocenter - 6.7.4-r1
Ebuild name:

kde-plasma/kinfocenter-6.7.4-r1

Description

Utility providing information about the computer hardware

Added to portage

2026-08-20

kmenuedit - 6.6.6-r1
Ebuild name:

kde-plasma/kmenuedit-6.6.6-r1

Description

KDE Plasma menu editor

Added to portage

2026-08-20

kmenuedit - 6.7.4-r1
Ebuild name:

kde-plasma/kmenuedit-6.7.4-r1

Description

KDE Plasma menu editor

Added to portage

2026-08-20

knighttime - 6.6.6-r1
Ebuild name:

kde-plasma/knighttime-6.6.6-r1

Description

Helpers for scheduling the dark-light cycle

Added to portage

2026-08-20

knighttime - 6.7.4-r1
Ebuild name:

kde-plasma/knighttime-6.7.4-r1

Description

Helpers for scheduling the dark-light cycle

Added to portage

2026-08-20

libevdev - 1.13.7
Ebuild name:

dev-libs/libevdev-1.13.7

Description

Handler library for evdev events

Added to portage

2026-08-20

2026-08-19
boto3 - 1.43.74
Ebuild name:

dev-python/boto3-1.43.74

Description

The AWS SDK for Python

Added to portage

2026-08-19

botocore - 1.43.74
Ebuild name:

dev-python/botocore-1.43.74

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-19

chrome-binary-plugins - 151.0.7922.169
Ebuild name:

www-plugins/chrome-binary-plugins-151.0.7922.169

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-08-19

chromedriver-bin - 151.0.7922.169
Ebuild name:

www-apps/chromedriver-bin-151.0.7922.169

Description

WebDriver for Chrome

Added to portage

2026-08-19

chromium - 151.0.7922.169-r1
Ebuild name:

www-client/chromium-151.0.7922.169-r1

Description

Open-source version of Google Chrome web browser

Added to portage

2026-08-19

django-js-asset - 4.0.2
Ebuild name:

dev-python/django-js-asset-4.0.2

Description

Script tag with additional attributes for django.forms.Media

Added to portage

2026-08-19

dkms - 3.4.3
Ebuild name:

sys-kernel/dkms-3.4.3

Description

Dynamic Kernel Module Support

Added to portage

2026-08-19

dracut - 112
Ebuild name:

sys-kernel/dracut-112

Description

Generic initramfs generation tool

Added to portage

2026-08-19

fakeredis - 2.37.1
Ebuild name:

dev-python/fakeredis-2.37.1

Description

Fake implementation of redis API for testing purposes

Added to portage

2026-08-19

fex-xtajit - 2608
Ebuild name:

app-emulation/fex-xtajit-2608

Description

A wine emulation dll for running x86 application on an arm64 host

Added to portage

2026-08-19

firefox - 140.14.0
Ebuild name:

www-client/firefox-140.14.0

Description

Firefox Web Browser

Added to portage

2026-08-19

gentoo-sources - 6.1.183
Ebuild name:

sys-kernel/gentoo-sources-6.1.183

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-19

gentoo-sources - 6.12.104
Ebuild name:

sys-kernel/gentoo-sources-6.12.104

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-19

gentoo-sources - 6.18.45
Ebuild name:

sys-kernel/gentoo-sources-6.18.45

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-19

gentoo-sources - 6.6.152
Ebuild name:

sys-kernel/gentoo-sources-6.6.152

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-19

gentoo-sources - 7.1.9
Ebuild name:

sys-kernel/gentoo-sources-7.1.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-19

ggml - 0.20.2
Ebuild name:

sci-ml/ggml-0.20.2

Description

Tensor library for machine learning

Added to portage

2026-08-19

gnuplot - 6.0.5
Ebuild name:

sci-visualization/gnuplot-6.0.5

Description

Command-line driven interactive plotting program

Added to portage

2026-08-19

godot - 4.7.2
Ebuild name:

dev-games/godot-4.7.2

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2026-08-19

google-chrome - 151.0.7922.169
Ebuild name:

www-client/google-chrome-151.0.7922.169

Description

The web browser from Google

Added to portage

2026-08-19

gpredict - 2.6
Ebuild name:

media-radio/gpredict-2.6

Description

Real-time satellite tracking and orbit prediction application

Added to portage

2026-08-19

gunicorn - 26.1.0
Ebuild name:

www-servers/gunicorn-26.1.0

Description

A WSGI HTTP Server for UNIX

Added to portage

2026-08-19

httpx2 - 2.12.0
Ebuild name:

dev-python/httpx2-2.12.0

Description

The next generation HTTP client (Pydantic fork)

Added to portage

2026-08-19

idna - 3.19
Ebuild name:

dev-python/idna-3.19

Description

Internationalized Domain Names in Applications (IDNA)

Added to portage

2026-08-19

ipywidgets - 8.1.9
Ebuild name:

dev-python/ipywidgets-8.1.9

Description

IPython HTML widgets for Jupyter

Added to portage

2026-08-19

jupyterlab-widgets - 3.0.17
Ebuild name:

dev-python/jupyterlab-widgets-3.0.17

Description

Jupyter interactive widgets for JupyterLab

Added to portage

2026-08-19

kci-dev - 0.1.11
Ebuild name:

sys-kernel/kci-dev-0.1.11

Description

Stand alone tool to interact with KernelCI

Added to portage

2026-08-19

libgpiod - 2.3.1-r1
Ebuild name:

dev-libs/libgpiod-2.3.1-r1

Description

C library and tools for interacting with the linux GPIO character device

Added to portage

2026-08-19

m-buffer - 0.16.1
Ebuild name:

app-emacs/m-buffer-0.16.1

Description

List Oriented Buffer Operations for Emacs

Added to portage

2026-08-19

macrostep - 0.9.5
Ebuild name:

app-emacs/macrostep-0.9.5

Description

Interactive macro-expander for Emacs

Added to portage

2026-08-19

man-pages-l10n - 4.31.0
Ebuild name:

app-i18n/man-pages-l10n-4.31.0

Description

A somewhat comprehensive collection of man page translations

Added to portage

2026-08-19

microsoft-edge-beta - 152.0.4191.35
Ebuild name:

www-client/microsoft-edge-beta-152.0.4191.35

Description

The web browser from Microsoft

Added to portage

2026-08-19

microsoft-edge-dev - 153.0.4224.0
Ebuild name:

www-client/microsoft-edge-dev-153.0.4224.0

Description

The web browser from Microsoft

Added to portage

2026-08-19

mimalloc - 3.4.5
Ebuild name:

dev-libs/mimalloc-3.4.5

Description

A compact general purpose allocator with excellent performance

Added to portage

2026-08-19

mold - 2.42.0
Ebuild name:

sys-devel/mold-2.42.0

Description

A Modern Linker

Added to portage

2026-08-19

nox - 2026.08.17
Ebuild name:

dev-python/nox-2026.08.17

Description

Flexible test automation for Python

Added to portage

2026-08-19

opera - 134.0.5954.66
Ebuild name:

www-client/opera-134.0.5954.66

Description

A fast and secure web browser

Added to portage

2026-08-19

opera-gx - 134.0.5954.44
Ebuild name:

www-client/opera-gx-134.0.5954.44

Description

Opera, but for 'gamers'

Added to portage

2026-08-19

opera-gx - 134.0.5954.55
Ebuild name:

www-client/opera-gx-134.0.5954.55

Description

Opera, but for 'gamers'

Added to portage

2026-08-19

opera-gx - 134.0.5954.67
Ebuild name:

www-client/opera-gx-134.0.5954.67

Description

Opera, but for 'gamers'

Added to portage

2026-08-19

pdm - 2.28.2
Ebuild name:

dev-python/pdm-2.28.2

Description

Python package and dependency manager supporting the latest PEP standards

Added to portage

2026-08-19

perf - 7.2
Ebuild name:

dev-util/perf-7.2

Description

Userland tools for Linux Performance Counters

Added to portage

2026-08-19

portage - 3.0.81.3
Ebuild name:

sys-apps/portage-3.0.81.3

Description

The package management and distribution system for Gentoo

Added to portage

2026-08-19

pyside - 6.11.2
Ebuild name:

dev-python/pyside-6.11.2

Description

Python bindings for the Qt framework

Added to portage

2026-08-19

pyzotero - 1.14.0
Ebuild name:

dev-python/pyzotero-1.14.0

Description

A Python client for the Zotero API

Added to portage

2026-08-19

stripe - 15.5.1
Ebuild name:

dev-python/stripe-15.5.1

Description

Stripe Python bindings

Added to portage

2026-08-19

talk-desktop-bin - 2.2.4
Ebuild name:

net-im/talk-desktop-bin-2.2.4

Description

Nextcloud Talk Desktop client

Added to portage

2026-08-19

throttled - 0.12.2
Ebuild name:

sys-power/throttled-0.12.2

Description

Daemon to work around throttling issues on some Intel laptops

Added to portage

2026-08-19

thunderbird - 153.1.0
Ebuild name:

mail-client/thunderbird-153.1.0

Description

Thunderbird Mail Client

Added to portage

2026-08-19

thunderbird - 154.0
Ebuild name:

mail-client/thunderbird-154.0

Description

Thunderbird Mail Client

Added to portage

2026-08-19

thunderbird-bin - 140.14.0
Ebuild name:

mail-client/thunderbird-bin-140.14.0

Description

Thunderbird Mail Client

Added to portage

2026-08-19

thunderbird-bin - 153.1.0
Ebuild name:

mail-client/thunderbird-bin-153.1.0

Description

Thunderbird Mail Client

Added to portage

2026-08-19

thunderbird-bin - 154.0
Ebuild name:

mail-client/thunderbird-bin-154.0

Description

Thunderbird Mail Client

Added to portage

2026-08-19

thunderbird-l10n - 153.1.0
Ebuild name:

mail-client/thunderbird-l10n-153.1.0

Description

Thunderbird mail client's translation files

Added to portage

2026-08-19

thunderbird-l10n - 154.0
Ebuild name:

mail-client/thunderbird-l10n-154.0

Description

Thunderbird mail client's translation files

Added to portage

2026-08-19

tuba - 0.11.0
Ebuild name:

net-misc/tuba-0.11.0

Description

Browse the Fediverse (GTK client)

Added to portage

2026-08-19

unbound - 1.25.2-r1
Ebuild name:

net-dns/unbound-1.25.2-r1

Description

A validating, recursive and caching DNS resolver

Added to portage

2026-08-19

uv-dynamic-versioning - 0.14.1
Ebuild name:

dev-python/uv-dynamic-versioning-0.14.1

Description

Dynamic versioning based on VCS tags for uv/hatch project

Added to portage

2026-08-19

vanilla-sources - 6.1.183
Ebuild name:

sys-kernel/vanilla-sources-6.1.183

Description

Full sources for the Linux kernel

Added to portage

2026-08-19

vanilla-sources - 6.12.104
Ebuild name:

sys-kernel/vanilla-sources-6.12.104

Description

Full sources for the Linux kernel

Added to portage

2026-08-19

vanilla-sources - 6.18.45
Ebuild name:

sys-kernel/vanilla-sources-6.18.45

Description

Full sources for the Linux kernel

Added to portage

2026-08-19

vanilla-sources - 6.6.152
Ebuild name:

sys-kernel/vanilla-sources-6.6.152

Description

Full sources for the Linux kernel

Added to portage

2026-08-19

vanilla-sources - 7.1.9
Ebuild name:

sys-kernel/vanilla-sources-7.1.9

Description

Full sources for the Linux kernel

Added to portage

2026-08-19

vcs-versioning - 2.3.0
Ebuild name:

dev-python/vcs-versioning-2.3.0

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-08-19

widgetsnbextension - 4.0.16
Ebuild name:

dev-python/widgetsnbextension-4.0.16

Description

IPython HTML widgets for Jupyter

Added to portage

2026-08-19

wine-mono - 11.3.0
Ebuild name:

app-emulation/wine-mono-11.3.0

Description

Replacement for the .NET runtime and class libraries in Wine

Added to portage

2026-08-19

wsjtx_improved - 3.2.0_p260818
Ebuild name:

media-radio/wsjtx_improved-3.2.0_p260818

Description

Weak signal ham radio communication with improvements

Added to portage

2026-08-19

xfce4-dict - 0.8.10
Ebuild name:

xfce-extra/xfce4-dict-0.8.10

Description

A dict.org querying application and panel plug-in for the Xfce desktop

Added to portage

2026-08-19

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