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:

88118

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-09-03
Test-Snapshot - 0.61.0
Ebuild name:

dev-perl/Test-Snapshot-0.61.0

Description

Test against data stored in automatically-named file

Added to portage

2026-09-03

certbot - 5.8.0
Ebuild name:

app-crypt/certbot-5.8.0

Description

Let's Encrypt client to automate deployment of X.509 certificates

Added to portage

2026-09-03

cloudflare-warp - 2026.7.1377.0
Ebuild name:

net-vpn/cloudflare-warp-2026.7.1377.0

Description

Cloudflare Warp Client

Added to portage

2026-09-03

dbeaver-bin - 26.2.0
Ebuild name:

dev-db/dbeaver-bin-26.2.0

Description

Free universal database tool (community edition)

Added to portage

2026-09-03

dropbox - 268.4.4124
Ebuild name:

net-misc/dropbox-268.4.4124

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2026-09-03

freerdp - 3.31.1
Ebuild name:

net-misc/freerdp-3.31.1

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-09-03

fzf - 0.74.3
Ebuild name:

app-shells/fzf-0.74.3

Description

General-purpose command-line fuzzy finder, written in Golang

Added to portage

2026-09-03

gentoo-kernel - 6.1.187
Ebuild name:

sys-kernel/gentoo-kernel-6.1.187

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel - 6.12.108
Ebuild name:

sys-kernel/gentoo-kernel-6.12.108

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel - 6.18.49
Ebuild name:

sys-kernel/gentoo-kernel-6.18.49

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel - 6.6.156
Ebuild name:

sys-kernel/gentoo-kernel-6.6.156

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel - 7.1.13
Ebuild name:

sys-kernel/gentoo-kernel-7.1.13

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel - 7.2.3
Ebuild name:

sys-kernel/gentoo-kernel-7.2.3

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel-bin - 6.1.187
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.187

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel-bin - 6.12.108
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.108

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel-bin - 6.18.49
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.49

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel-bin - 6.6.156
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.156

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel-bin - 7.1.13
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.13

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel-bin - 7.2.3
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.3

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-03

gentoo-kernel-modprep - 6.1.187
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.187

Description

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

Added to portage

2026-09-03

gentoo-kernel-modprep - 6.12.108
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.108

Description

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

Added to portage

2026-09-03

gentoo-kernel-modprep - 6.18.49
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.49

Description

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

Added to portage

2026-09-03

gentoo-kernel-modprep - 6.6.156
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.156

Description

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

Added to portage

2026-09-03

gentoo-kernel-modprep - 7.1.13
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.13

Description

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

Added to portage

2026-09-03

gentoo-kernel-modprep - 7.2.3
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.3

Description

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

Added to portage

2026-09-03

gentoo-sources - 6.1.187
Ebuild name:

sys-kernel/gentoo-sources-6.1.187

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-03

gentoo-sources - 6.12.108
Ebuild name:

sys-kernel/gentoo-sources-6.12.108

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-03

gentoo-sources - 6.18.49
Ebuild name:

sys-kernel/gentoo-sources-6.18.49

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-03

gentoo-sources - 6.6.156
Ebuild name:

sys-kernel/gentoo-sources-6.6.156

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-03

gentoo-sources - 7.1.13
Ebuild name:

sys-kernel/gentoo-sources-7.1.13

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-03

gentoo-sources - 7.2.3
Ebuild name:

sys-kernel/gentoo-sources-7.2.3

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-03

kmscon - 10.0.3
Ebuild name:

sys-apps/kmscon-10.0.3

Description

KMS/DRM based virtual Console Emulator

Added to portage

2026-09-03

mergiraf - 0.19.1
Ebuild name:

dev-vcs/mergiraf-0.19.1

Description

Syntax-aware git merge driver

Added to portage

2026-09-03

openjdk - 11.0.32.1_p1-r1
Ebuild name:

dev-java/openjdk-11.0.32.1_p1-r1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-03

openjdk - 17.0.20.1_p1-r1
Ebuild name:

dev-java/openjdk-17.0.20.1_p1-r1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-03

openjdk - 21.0.12.1_p1-r1
Ebuild name:

dev-java/openjdk-21.0.12.1_p1-r1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-03

openjdk - 28_alpha13
Ebuild name:

dev-java/openjdk-28_alpha13

Description

Open source implementation of the Java programming language

Added to portage

2026-09-03

thunderbird - 140.15.0
Ebuild name:

mail-client/thunderbird-140.15.0

Description

Thunderbird Mail Client

Added to portage

2026-09-03

thunderbird - 153.2.0
Ebuild name:

mail-client/thunderbird-153.2.0

Description

Thunderbird Mail Client

Added to portage

2026-09-03

thunderbird - 155.0
Ebuild name:

mail-client/thunderbird-155.0

Description

Thunderbird Mail Client

Added to portage

2026-09-03

thunderbird-l10n - 153.2.0
Ebuild name:

mail-client/thunderbird-l10n-153.2.0

Description

Thunderbird mail client's translation files

Added to portage

2026-09-03

thunderbird-l10n - 155.0
Ebuild name:

mail-client/thunderbird-l10n-155.0

Description

Thunderbird mail client's translation files

Added to portage

2026-09-03

vanilla-kernel - 6.1.187
Ebuild name:

sys-kernel/vanilla-kernel-6.1.187

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-03

vanilla-kernel - 6.12.108
Ebuild name:

sys-kernel/vanilla-kernel-6.12.108

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-03

vanilla-kernel - 6.18.49
Ebuild name:

sys-kernel/vanilla-kernel-6.18.49

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-03

vanilla-kernel - 6.6.156
Ebuild name:

sys-kernel/vanilla-kernel-6.6.156

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-03

vanilla-kernel - 7.1.13
Ebuild name:

sys-kernel/vanilla-kernel-7.1.13

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-03

vanilla-kernel - 7.2.3
Ebuild name:

sys-kernel/vanilla-kernel-7.2.3

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-03

vanilla-sources - 6.1.187
Ebuild name:

sys-kernel/vanilla-sources-6.1.187

Description

Full sources for the Linux kernel

Added to portage

2026-09-03

vanilla-sources - 6.12.108
Ebuild name:

sys-kernel/vanilla-sources-6.12.108

Description

Full sources for the Linux kernel

Added to portage

2026-09-03

2026-09-02
android-studio - 2026.1.4.7
Ebuild name:

dev-util/android-studio-2026.1.4.7

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-09-02

bitarray - 3.11.0
Ebuild name:

dev-python/bitarray-3.11.0

Description

Efficient arrays of booleans -- C extension

Added to portage

2026-09-02

boto3 - 1.43.86
Ebuild name:

dev-python/boto3-1.43.86

Description

The AWS SDK for Python

Added to portage

2026-09-02

botocore - 1.43.86
Ebuild name:

dev-python/botocore-1.43.86

Description

Low-level, data-driven core of boto 3

Added to portage

2026-09-02

corsix-th - 0.70.0-r4
Ebuild name:

games-simulation/corsix-th-0.70.0-r4

Description

Open source clone of Theme Hospital

Added to portage

2026-09-02

deepmerge - 3.0.1
Ebuild name:

dev-python/deepmerge-3.0.1

Description

Tools to handle merging of nested data structures in python

Added to portage

2026-09-02

django-debug-toolbar - 8.0.0
Ebuild name:

dev-python/django-debug-toolbar-8.0.0

Description

A configurable set of panels that display various debug infor

Added to portage

2026-09-02

edk2 - 202608
Ebuild name:

sys-firmware/edk2-202608

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-09-02

edk2-bin - 202608
Ebuild name:

sys-firmware/edk2-bin-202608

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-09-02

faker - 40.38.0
Ebuild name:

dev-python/faker-40.38.0

Description

A Python package that generates fake data for you

Added to portage

2026-09-02

firefox - 140.15.0
Ebuild name:

www-client/firefox-140.15.0

Description

Firefox Web Browser

Added to portage

2026-09-02

firefox - 153.2.0
Ebuild name:

www-client/firefox-153.2.0

Description

Firefox Web Browser

Added to portage

2026-09-02

firefox-bin - 140.15.0
Ebuild name:

www-client/firefox-bin-140.15.0

Description

Firefox Web Browser

Added to portage

2026-09-02

firefox-l10n - 153.2.0
Ebuild name:

www-client/firefox-l10n-153.2.0

Description

Firefox Web Browser's translation files

Added to portage

2026-09-02

fluidsynth - 2.5.7-r1
Ebuild name:

media-sound/fluidsynth-2.5.7-r1

Description

Software real-time synthesizer based on the Soundfont 2 specificati

Added to portage

2026-09-02

fsautocomplete - 0.84.0
Ebuild name:

dev-dotnet/fsautocomplete-0.84.0

Description

F language server using the Language Server Protocol

Added to portage

2026-09-02

gajim - 2.6.0
Ebuild name:

net-im/gajim-2.6.0

Description

GTK XMPP Client

Added to portage

2026-09-02

gzip - 1.14_p20260901
Ebuild name:

app-arch/gzip-1.14_p20260901

Description

Standard GNU compressor

Added to portage

2026-09-02

ipython - 9.17.1
Ebuild name:

dev-python/ipython-9.17.1

Description

Advanced interactive shell for Python

Added to portage

2026-09-02

jwcrypto - 1.6.0
Ebuild name:

dev-python/jwcrypto-1.6.0

Description

Implements JWK,JWS,JWE specifications using python-cryptography

Added to portage

2026-09-02

libfastjson - 1.2609.0
Ebuild name:

dev-libs/libfastjson-1.2609.0

Description

Fork of the json-c library, which is optimized for liblognorm process

Added to portage

2026-09-02

libnftnl - 1.3.2
Ebuild name:

net-libs/libnftnl-1.3.2

Description

Netlink API to the in-kernel nf_tables subsystem

Added to portage

2026-09-02

lsp-ui - 8.0.1
Ebuild name:

app-emacs/lsp-ui-8.0.1

Description

UI modules for lsp-mode

Added to portage

2026-09-02

lsp-ui - 9.0.0
Ebuild name:

app-emacs/lsp-ui-9.0.0

Description

UI modules for lsp-mode

Added to portage

2026-09-02

nftables - 1.1.7
Ebuild name:

net-firewall/nftables-1.1.7

Description

Linux kernel firewall, NAT and packet mangling tools

Added to portage

2026-09-02

noto - 20260901
Ebuild name:

media-fonts/noto-20260901

Description

Google's font family that aims to support all the world's languages

Added to portage

2026-09-02

openjdk - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-11.0.32.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-17.0.20.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-21.0.12.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-25.0.4.1_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 27_beta35
Ebuild name:

dev-java/openjdk-27_beta35

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk - 8.504_p01
Ebuild name:

dev-java/openjdk-8.504_p01

Description

Open source implementation of the Java programming language

Added to portage

2026-09-02

openjdk-bin - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-bin-11.0.32.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-bin-17.0.20.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-bin-21.0.12.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-bin-25.0.4.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 27_beta35
Ebuild name:

dev-java/openjdk-bin-27_beta35

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 28_alpha13
Ebuild name:

dev-java/openjdk-bin-28_alpha13

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-bin - 8.504_p01
Ebuild name:

dev-java/openjdk-bin-8.504_p01

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 11.0.32.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-11.0.32.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 17.0.20.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-17.0.20.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 21.0.12.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-21.0.12.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 25.0.4.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-25.0.4.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

openjdk-jre-bin - 8.504_p01
Ebuild name:

dev-java/openjdk-jre-bin-8.504_p01

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-09-02

pbs-installer - 2026.9.1
Ebuild name:

dev-python/pbs-installer-2026.9.1

Description

Installer for Python Build Standalone

Added to portage

2026-09-02

php - 8.4.25
Ebuild name:

dev-lang/php-8.4.25

Description

The PHP language runtime engine

Added to portage

2026-09-02

php - 8.5.10
Ebuild name:

dev-lang/php-8.5.10

Description

The PHP language runtime engine

Added to portage

2026-09-02

platformdirs - 4.11.7
Ebuild name:

dev-python/platformdirs-4.11.7

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-09-02

python-cinderclient - 9.10.0
Ebuild name:

dev-python/python-cinderclient-9.10.0

Description

A client for the OpenStack Cinder API

Added to portage

2026-09-02

setuptools-scm - 10.2.2
Ebuild name:

dev-python/setuptools-scm-10.2.2

Description

Manage versions by scm tags via setuptools

Added to portage

2026-09-02

shtab - 1.12.1
Ebuild name:

dev-python/shtab-1.12.1

Description

Automagic shell tab completion for Python CLI applications

Added to portage

2026-09-02

simutrans - 124.2.1-r1
Ebuild name:

games-simulation/simutrans-124.2.1-r1

Description

A free Transport Tycoon clone

Added to portage

2026-09-02

sphinx-autodoc-typehints - 3.13.5
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.13.5

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-09-02

sphinxcontrib-mermaid - 2.1.1
Ebuild name:

dev-python/sphinxcontrib-mermaid-2.1.1

Description

Sphinx spelling extension

Added to portage

2026-09-02

stripe - 15.6.1
Ebuild name:

dev-python/stripe-15.6.1

Description

Stripe Python bindings

Added to portage

2026-09-02

systemd - 262_rc1
Ebuild name:

sys-apps/systemd-262_rc1

Description

System and service manager for Linux

Added to portage

2026-09-02

thunderbird-bin - 140.15.0
Ebuild name:

mail-client/thunderbird-bin-140.15.0

Description

Thunderbird Mail Client

Added to portage

2026-09-02

thunderbird-bin - 153.2.0
Ebuild name:

mail-client/thunderbird-bin-153.2.0

Description

Thunderbird Mail Client

Added to portage

2026-09-02

thunderbird-bin - 155.0
Ebuild name:

mail-client/thunderbird-bin-155.0

Description

Thunderbird Mail Client

Added to portage

2026-09-02

translate-toolkit - 3.19.19
Ebuild name:

dev-python/translate-toolkit-3.19.19

Description

Toolkit to convert between many translation formats

Added to portage

2026-09-02

uv - 0.12.9
Ebuild name:

dev-python/uv-0.12.9

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-09-02

uv-build - 0.12.9
Ebuild name:

dev-python/uv-build-0.12.9

Description

PEP517 uv build backend

Added to portage

2026-09-02

vcs-versioning - 2.3.2
Ebuild name:

dev-python/vcs-versioning-2.3.2

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-09-02

virtualenv - 21.7.8
Ebuild name:

dev-python/virtualenv-21.7.8

Description

Virtual Python Environment builder

Added to portage

2026-09-02

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