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:

86892

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-07-15
android-studio - 2026.1.2.10
Ebuild name:

dev-util/android-studio-2026.1.2.10

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-07-15

asgiref - 3.12.1
Ebuild name:

dev-python/asgiref-3.12.1

Description

ASGI utilities (successor to WSGI)

Added to portage

2026-07-15

aurorae - 6.7.3
Ebuild name:

kde-plasma/aurorae-6.7.3

Description

Themeable window decoration for KWin

Added to portage

2026-07-15

awscli - 1.45.48
Ebuild name:

app-admin/awscli-1.45.48

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-15

bluedevil - 6.7.3
Ebuild name:

kde-plasma/bluedevil-6.7.3

Description

Bluetooth stack for KDE Plasma

Added to portage

2026-07-15

boto3 - 1.43.48
Ebuild name:

dev-python/boto3-1.43.48

Description

The AWS SDK for Python

Added to portage

2026-07-15

botocore - 1.43.48
Ebuild name:

dev-python/botocore-1.43.48

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-15

breeze - 6.7.3
Ebuild name:

kde-plasma/breeze-6.7.3

Description

Breeze visual style for the Plasma desktop

Added to portage

2026-07-15

breeze-grub - 6.7.3
Ebuild name:

kde-plasma/breeze-grub-6.7.3

Description

Breeze theme for GRUB

Added to portage

2026-07-15

breeze-gtk - 6.7.3
Ebuild name:

kde-plasma/breeze-gtk-6.7.3

Description

Official GTK+ port of Plasma's Breeze widget style

Added to portage

2026-07-15

breeze-plymouth - 6.7.3
Ebuild name:

kde-plasma/breeze-plymouth-6.7.3

Description

Breeze theme for Plymouth

Added to portage

2026-07-15

claude-code - 2.1.209
Ebuild name:

dev-util/claude-code-2.1.209

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-07-15

discover - 6.7.3
Ebuild name:

kde-plasma/discover-6.7.3

Description

KDE Plasma resources management GUI

Added to portage

2026-07-15

drkonqi - 6.7.3
Ebuild name:

kde-plasma/drkonqi-6.7.3

Description

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

Added to portage

2026-07-15

faker - 40.31.0
Ebuild name:

dev-python/faker-40.31.0

Description

A Python package that generates fake data for you

Added to portage

2026-07-15

firefox-bin - 152.0.6
Ebuild name:

www-client/firefox-bin-152.0.6

Description

Firefox Web Browser

Added to portage

2026-07-15

flatpak-kcm - 6.7.3
Ebuild name:

kde-plasma/flatpak-kcm-6.7.3

Description

Flatpak Permissions Management KCM

Added to portage

2026-07-15

fontconfig - 2.18.2
Ebuild name:

media-libs/fontconfig-2.18.2

Description

A library for configuring and customizing font access

Added to portage

2026-07-15

httpx2 - 2.7.0
Ebuild name:

dev-python/httpx2-2.7.0

Description

The next generation HTTP client (Pydantic fork)

Added to portage

2026-07-15

kactivitymanagerd - 6.7.3
Ebuild name:

kde-plasma/kactivitymanagerd-6.7.3

Description

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

Added to portage

2026-07-15

kde-cli-tools - 6.7.3
Ebuild name:

kde-plasma/kde-cli-tools-6.7.3

Description

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

Added to portage

2026-07-15

kde-cli-tools-common - 6.7.3
Ebuild name:

kde-plasma/kde-cli-tools-common-6.7.3

Description

Common files for

Added to portage

2026-07-15

kde-gtk-config - 6.7.3
Ebuild name:

kde-plasma/kde-gtk-config-6.7.3

Description

Syncs KDE Plasma theme settings to GTK applications

Added to portage

2026-07-15

kdecoration - 6.7.3
Ebuild name:

kde-plasma/kdecoration-6.7.3

Description

Plugin based library to create window decorations

Added to portage

2026-07-15

kdeplasma-addons - 6.7.3
Ebuild name:

kde-plasma/kdeplasma-addons-6.7.3

Description

Extra Plasma applets and engines

Added to portage

2026-07-15

kdesu-gui - 6.7.3
Ebuild name:

kde-plasma/kdesu-gui-6.7.3

Description

Graphical frontend for KDE Frameworks' kdesu

Added to portage

2026-07-15

keditfiletype - 6.7.3
Ebuild name:

kde-plasma/keditfiletype-6.7.3

Description

File Type Editor

Added to portage

2026-07-15

kgamma - 6.7.3
Ebuild name:

kde-plasma/kgamma-6.7.3

Description

Screen gamma values kcontrol module

Added to portage

2026-07-15

kglobalacceld - 6.7.3
Ebuild name:

kde-plasma/kglobalacceld-6.7.3

Description

Daemon providing Global Keyboard Shortcut (Accelerator) functionalit

Added to portage

2026-07-15

kinfocenter - 6.7.3
Ebuild name:

kde-plasma/kinfocenter-6.7.3

Description

Utility providing information about the computer hardware

Added to portage

2026-07-15

kmenuedit - 6.7.3
Ebuild name:

kde-plasma/kmenuedit-6.7.3

Description

KDE Plasma menu editor

Added to portage

2026-07-15

knighttime - 6.7.3
Ebuild name:

kde-plasma/knighttime-6.7.3

Description

Helpers for scheduling the dark-light cycle

Added to portage

2026-07-15

kpipewire - 6.7.3
Ebuild name:

kde-plasma/kpipewire-6.7.3

Description

Components relating to Flatpak pipewire use in Plasma

Added to portage

2026-07-15

krdp - 6.7.3
Ebuild name:

kde-plasma/krdp-6.7.3

Description

Library and examples for creating an RDP server

Added to portage

2026-07-15

kscreen - 6.7.3
Ebuild name:

kde-plasma/kscreen-6.7.3

Description

KDE Plasma screen management

Added to portage

2026-07-15

kscreenlocker - 6.7.3
Ebuild name:

kde-plasma/kscreenlocker-6.7.3

Description

Library and components for secure lock screen architecture

Added to portage

2026-07-15

ksshaskpass - 6.7.3
Ebuild name:

kde-plasma/ksshaskpass-6.7.3

Description

Implementation of ssh-askpass with KDE Wallet integration

Added to portage

2026-07-15

ksystemstats - 6.7.3
Ebuild name:

kde-plasma/ksystemstats-6.7.3

Description

Plugin-based system monitoring daemon

Added to portage

2026-07-15

navi2ch - 1.8.4-r2
Ebuild name:

app-emacs/navi2ch-1.8.4-r2

Description

A navigator for the Japanese textboard 2ch

Added to portage

2026-07-15

nv-codec-headers - 12.1.14.1
Ebuild name:

media-libs/nv-codec-headers-12.1.14.1

Description

FFmpeg version of headers required to interface with Nvidias

Added to portage

2026-07-15

nv-codec-headers - 13.0.19.1
Ebuild name:

media-libs/nv-codec-headers-13.0.19.1

Description

FFmpeg version of headers required to interface with Nvidias

Added to portage

2026-07-15

nv-codec-headers - 13.1.15.0
Ebuild name:

media-libs/nv-codec-headers-13.1.15.0

Description

FFmpeg version of headers required to interface with Nvidias

Added to portage

2026-07-15

peewee - 4.2.3
Ebuild name:

dev-python/peewee-4.2.3

Description

Small Python ORM

Added to portage

2026-07-15

pkgconf - 3.0.3
Ebuild name:

dev-util/pkgconf-3.0.3

Description

pkg-config compatible replacement with no dependencies other than C99

Added to portage

2026-07-15

pytest-tap - 3.5
Ebuild name:

dev-python/pytest-tap-3.5

Description

Reporting plugin for pytest that outputs Test Anything Protocol (TAP) dat

Added to portage

2026-07-15

tifffile - 2026.7.14
Ebuild name:

dev-python/tifffile-2026.7.14

Description

Read and write TIFF files

Added to portage

2026-07-15

tox - 0.2.23
Ebuild name:

net-libs/tox-0.2.23

Description

Encrypted P2P, messaging, and audio/video calling platform

Added to portage

2026-07-15

toxic - 0.16.3
Ebuild name:

net-im/toxic-0.16.3

Description

A curses-based client for Tox

Added to portage

2026-07-15

yq - 3.4.4
Ebuild name:

app-misc/yq-3.4.4

Description

Command-line YAML processor - jq wrapper for YAML documents

Added to portage

2026-07-15

yq - 4.1.2
Ebuild name:

app-misc/yq-4.1.2

Description

Command-line YAML processor - jq wrapper for YAML documents

Added to portage

2026-07-15

2026-07-14
3proxy - 0.9.7
Ebuild name:

net-proxy/3proxy-0.9.7

Description

Really tiny cross-platform proxy servers set

Added to portage

2026-07-14

awscli - 1.45.47
Ebuild name:

app-admin/awscli-1.45.47

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-14

bcachefs-tools - 1.38.8
Ebuild name:

sys-fs/bcachefs-tools-1.38.8

Description

Tools for bcachefs

Added to portage

2026-07-14

bear - 4.1.5
Ebuild name:

dev-util/bear-4.1.5

Description

A tool that generates a compilation database for clang tooling

Added to portage

2026-07-14

boost - 1.91.0-r2
Ebuild name:

dev-libs/boost-1.91.0-r2

Description

Boost Libraries for C++

Added to portage

2026-07-14

boto3 - 1.43.47
Ebuild name:

dev-python/boto3-1.43.47

Description

The AWS SDK for Python

Added to portage

2026-07-14

botocore - 1.43.47
Ebuild name:

dev-python/botocore-1.43.47

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-14

brscan5 - 1.6.2.0-r1
Ebuild name:

media-gfx/brscan5-1.6.2.0-r1

Description

SANE driver for Brother scanners (brscan5)

Added to portage

2026-07-14

checksec - 2.7.1-r2
Ebuild name:

app-admin/checksec-2.7.1-r2

Description

Tool to check properties of executables (e.g. ASLR/PIE, RELRO, PaX, Can

Added to portage

2026-07-14

cifs-utils - 7.7
Ebuild name:

net-fs/cifs-utils-7.7

Description

Tools for Managing Linux CIFS Client Filesystems

Added to portage

2026-07-14

dolphin - 2606
Ebuild name:

games-emulation/dolphin-2606

Description

Gamecube and Wii game emulator

Added to portage

2026-07-14

freerdp - 3.29.0
Ebuild name:

net-misc/freerdp-3.29.0

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-07-14

gdm - 49.3
Ebuild name:

gnome-base/gdm-49.3

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-07-14

gnome-shell-extension-lockscreen-studio - 1.1.2
Ebuild name:

gnome-extra/gnome-shell-extension-lockscreen-studio-1.1.2

Description

Customization extension for the gnome-she

Added to portage

2026-07-14

google-auth - 2.56.0
Ebuild name:

dev-python/google-auth-2.56.0

Description

Google Authentication Library

Added to portage

2026-07-14

grub2-theme-preview - 2.10.0
Ebuild name:

x11-misc/grub2-theme-preview-2.10.0

Description

Preview a GRUB 2.x theme using KVM/QEMU

Added to portage

2026-07-14

ig - 0.54.1
Ebuild name:

app-admin/ig-0.54.1

Description

Tools and framework for data collection and system inspection using eBPF

Added to portage

2026-07-14

jaraco-functools - 4.6.0
Ebuild name:

dev-python/jaraco-functools-4.6.0

Description

Additional functions used by other projects by developer jaraco

Added to portage

2026-07-14

just - 1.55.1
Ebuild name:

dev-build/just-1.55.1

Description

Just a command runner (with syntax inspired by 'make')

Added to portage

2026-07-14

kas - 5.4
Ebuild name:

dev-build/kas-5.4

Description

Setup tool for bitbake based projects

Added to portage

2026-07-14

msgpack - 7.0.1
Ebuild name:

dev-libs/msgpack-7.0.1

Description

MessagePack is a binary-based efficient data interchange format

Added to portage

2026-07-14

msgpack-cxx - 8.0.0
Ebuild name:

dev-cpp/msgpack-cxx-8.0.0

Description

MessagePack for C++

Added to portage

2026-07-14

mypy - 2.3.0
Ebuild name:

dev-python/mypy-2.3.0

Description

Optional static typing for Python

Added to portage

2026-07-14

narwhals - 2.24.0
Ebuild name:

dev-python/narwhals-2.24.0

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2026-07-14

nerd-icons - 0.1.0
Ebuild name:

app-emacs/nerd-icons-0.1.0

Description

Emacs Nerd Font Icons Library

Added to portage

2026-07-14

nwipe - 0.41
Ebuild name:

app-crypt/nwipe-0.41

Description

Securely erase disks using a variety of recognized methods

Added to portage

2026-07-14

onak - 0.6.3
Ebuild name:

app-crypt/onak-0.6.3

Description

onak is an OpenPGP keyserver

Added to portage

2026-07-14

onak - 0.6.4
Ebuild name:

app-crypt/onak-0.6.4

Description

onak is an OpenPGP keyserver

Added to portage

2026-07-14

ophcrack - 3.8.0-r2
Ebuild name:

app-crypt/ophcrack-3.8.0-r2

Description

A time-memory-trade-off-cracker

Added to portage

2026-07-14

ophcrack-tables - 1.0-r2
Ebuild name:

app-crypt/ophcrack-tables-1.0-r2

Description

Tables available for ophcrack

Added to portage

2026-07-14

pch-session - 49.1
Ebuild name:

gnome-extra/pch-session-49.1

Description

Unofficial gnome based session with different default settings and ext

Added to portage

2026-07-14

peewee - 4.2.2
Ebuild name:

dev-python/peewee-4.2.2

Description

Small Python ORM

Added to portage

2026-07-14

php - 8.2.32
Ebuild name:

dev-lang/php-8.2.32

Description

The PHP language runtime engine

Added to portage

2026-07-14

php - 8.3.32
Ebuild name:

dev-lang/php-8.3.32

Description

The PHP language runtime engine

Added to portage

2026-07-14

php - 8.4.23
Ebuild name:

dev-lang/php-8.4.23

Description

The PHP language runtime engine

Added to portage

2026-07-14

php - 8.5.8
Ebuild name:

dev-lang/php-8.5.8

Description

The PHP language runtime engine

Added to portage

2026-07-14

pkixssh - 19.0.1
Ebuild name:

net-misc/pkixssh-19.0.1

Description

OpenSSH fork with X.509 v3 certificate support

Added to portage

2026-07-14

postfix - 3.12_pre20260713
Ebuild name:

mail-mta/postfix-3.12_pre20260713

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-07-14

prismlauncher - 11.0.3
Ebuild name:

games-action/prismlauncher-11.0.3

Description

Custom, open source Minecraft launcher

Added to portage

2026-07-14

pyghmi - 1.6.19
Ebuild name:

dev-python/pyghmi-1.6.19

Description

A pure python implementation of IPMI protocol

Added to portage

2026-07-14

pyproject-fmt - 2.25.3
Ebuild name:

dev-python/pyproject-fmt-2.25.3

Description

Format your pyproject.toml file

Added to portage

2026-07-14

python-manilaclient - 6.2.0
Ebuild name:

dev-python/python-manilaclient-6.2.0

Description

Python bindings to the OpenStack Manila API

Added to portage

2026-07-14

python-openstackclient - 10.2.0
Ebuild name:

dev-python/python-openstackclient-10.2.0

Description

A client for the OpenStack APIs

Added to portage

2026-07-14

rutorrent - 5.3.7
Ebuild name:

www-apps/rutorrent-5.3.7

Description

ruTorrent is a front-end for the popular Bittorrent client rTorrent

Added to portage

2026-07-14

sabnzbd - 5.0.4
Ebuild name:

net-nntp/sabnzbd-5.0.4

Description

Binary newsgrabber with web-interface

Added to portage

2026-07-14

sed - 4.10-r1
Ebuild name:

sys-apps/sed-4.10-r1

Description

Super-useful stream editor

Added to portage

2026-07-14

tempora - 5.12.0
Ebuild name:

dev-python/tempora-5.12.0

Description

Objects and routines pertaining to date and time

Added to portage

2026-07-14

translate-toolkit - 3.19.14
Ebuild name:

dev-python/translate-toolkit-3.19.14

Description

Toolkit to convert between many translation formats

Added to portage

2026-07-14

ttyplot - 1.7.5
Ebuild name:

app-admin/ttyplot-1.7.5

Description

Realtime plotting utility with data input from stdin

Added to portage

2026-07-14

urwid - 4.0.4
Ebuild name:

dev-python/urwid-4.0.4

Description

Curses-based user interface library for Python

Added to portage

2026-07-14

zsnes - 2.2.1
Ebuild name:

games-emulation/zsnes-2.2.1

Description

Fork of the classic Super Nintendo emulator

Added to portage

2026-07-14

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