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:

82738

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-01-07
anyio - 4.12.1
Ebuild name:

dev-python/anyio-4.12.1

Description

Compatibility layer for multiple asynchronous event loop implementations

Added to portage

2026-01-07

avidemux - 2.8.1_p20251019-r1
Ebuild name:

media-video/avidemux-2.8.1_p20251019-r1

Description

Video editor designed for simple cutting, filtering and enc

Added to portage

2026-01-07

awscli - 1.44.13
Ebuild name:

app-admin/awscli-1.44.13

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-07

boto3 - 1.42.23
Ebuild name:

dev-python/boto3-1.42.23

Description

The AWS SDK for Python

Added to portage

2026-01-07

botocore - 1.42.23
Ebuild name:

dev-python/botocore-1.42.23

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-07

claude-code - 2.0.77
Ebuild name:

dev-util/claude-code-2.0.77

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-01-07

conan - 2.24.0
Ebuild name:

dev-util/conan-2.24.0

Description

Distributed C/C++ package manager

Added to portage

2026-01-07

cryfs - 1.0.3
Ebuild name:

sys-fs/cryfs-1.0.3

Description

Encrypted FUSE filesystem that conceals metadata

Added to portage

2026-01-07

derper - 1.92.4
Ebuild name:

net-vpn/derper-1.92.4

Description

DERP server for tailscale network

Added to portage

2026-01-07

django - 5.2.10
Ebuild name:

dev-python/django-5.2.10

Description

High-level Python web framework

Added to portage

2026-01-07

django - 6.0.1
Ebuild name:

dev-python/django-6.0.1

Description

High-level Python web framework

Added to portage

2026-01-07

fish - 4.3.3
Ebuild name:

app-shells/fish-4.3.3

Description

Friendly Interactive SHell

Added to portage

2026-01-07

flog - 4.9.4
Ebuild name:

dev-ruby/flog-4.9.4

Description

Flog reports the most tortured code in an easy to read pain report

Added to portage

2026-01-07

google-auth - 2.47.0
Ebuild name:

dev-python/google-auth-2.47.0

Description

Google Authentication Library

Added to portage

2026-01-07

hackrf-tools - 2026.01.1
Ebuild name:

net-wireless/hackrf-tools-2026.01.1

Description

tools for communicating with HackRF SDR platform

Added to portage

2026-01-07

hcloud - 1.59.0
Ebuild name:

app-admin/hcloud-1.59.0

Description

A command-line interface for Hetzner Cloud

Added to portage

2026-01-07

hypothesis - 6.150.0
Ebuild name:

dev-python/hypothesis-6.150.0

Description

A library for property based testing

Added to portage

2026-01-07

kube-apiserver - 1.33.7
Ebuild name:

sys-cluster/kube-apiserver-1.33.7

Description

Kubernetes API server

Added to portage

2026-01-07

kube-controller-manager - 1.33.7
Ebuild name:

sys-cluster/kube-controller-manager-1.33.7

Description

Kubernetes Controller Manager

Added to portage

2026-01-07

kube-proxy - 1.33.7
Ebuild name:

sys-cluster/kube-proxy-1.33.7

Description

Kubernetes Proxy service

Added to portage

2026-01-07

kube-scheduler - 1.33.7
Ebuild name:

sys-cluster/kube-scheduler-1.33.7

Description

Kubernetes Scheduler

Added to portage

2026-01-07

kubeadm - 1.33.7
Ebuild name:

sys-cluster/kubeadm-1.33.7

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2026-01-07

kubectl - 1.33.7
Ebuild name:

sys-cluster/kubectl-1.33.7

Description

CLI to run commands against Kubernetes clusters

Added to portage

2026-01-07

kubelet - 1.33.7
Ebuild name:

sys-cluster/kubelet-1.33.7

Description

Kubernetes Node Agent

Added to portage

2026-01-07

ldoc - 1.5.0
Ebuild name:

dev-lua/ldoc-1.5.0

Description

LuaDoc-compatible documentation generation system

Added to portage

2026-01-07

libhackrf - 2026.01.1
Ebuild name:

net-libs/libhackrf-2026.01.1

Description

library for communicating with HackRF SDR platform

Added to portage

2026-01-07

libofx - 0.10.9-r1
Ebuild name:

dev-libs/libofx-0.10.9-r1

Description

Library to support the Open Financial eXchange XML format

Added to portage

2026-01-07

libxdg-basedir - 1.2.3-r1
Ebuild name:

dev-libs/libxdg-basedir-1.2.3-r1

Description

Small library to access XDG Base Directories Specification paths

Added to portage

2026-01-07

narwhals - 2.15.0
Ebuild name:

dev-python/narwhals-2.15.0

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2026-01-07

package-build - 4.0.0
Ebuild name:

app-emacs/package-build-4.0.0

Description

Tools for assembling a package archive

Added to portage

2026-01-07

pathspec - 1.0.1
Ebuild name:

dev-python/pathspec-1.0.1

Description

Utility library for gitignore style pattern matching of file paths

Added to portage

2026-01-07

portage - 3.0.75
Ebuild name:

sys-apps/portage-3.0.75

Description

The package management and distribution system for Gentoo

Added to portage

2026-01-07

py-spy - 0.4.1
Ebuild name:

dev-util/py-spy-0.4.1

Description

Sampling profiler for Python programs

Added to portage

2026-01-07

pyfuse3 - 3.4.2
Ebuild name:

dev-python/pyfuse3-3.4.2

Description

Python 3 bindings for libfuse 3 with asynchronous API

Added to portage

2026-01-07

pytest-golden - 1.0.1
Ebuild name:

dev-python/pytest-golden-1.0.1

Description

Plugin for pytest that offloads expected outputs to data files

Added to portage

2026-01-07

rpm - 6.0.1
Ebuild name:

app-arch/rpm-6.0.1

Description

The RPM Package Manager

Added to portage

2026-01-07

sbctl - 0.16
Ebuild name:

app-crypt/sbctl-0.16

Description

Secure Boot key manager

Added to portage

2026-01-07

strscan - 3.1.7
Ebuild name:

dev-ruby/strscan-3.1.7

Description

Provides lexical scanning operations on a String

Added to portage

2026-01-07

tarlz - 0.29
Ebuild name:

app-arch/tarlz-0.29

Description

A parallel archiver combining tar and lzip

Added to portage

2026-01-07

tayga - 0.9.6
Ebuild name:

net-proxy/tayga-0.9.6

Description

Out-of-kernel stateless NAT64 implementation based on TUN

Added to portage

2026-01-07

thor - 1.5.0
Ebuild name:

dev-ruby/thor-1.5.0

Description

Simple and efficient tool for building self-documenting command line utilities

Added to portage

2026-01-07

uv - 0.9.22
Ebuild name:

dev-python/uv-0.9.22

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-01-07

uv-build - 0.9.22
Ebuild name:

dev-python/uv-build-0.9.22

Description

PEP517 uv build backend

Added to portage

2026-01-07

wget2 - 2.2.1
Ebuild name:

net-misc/wget2-2.2.1

Description

GNU Wget2 is a file and recursive website downloader

Added to portage

2026-01-07

xmlschema - 4.3.0
Ebuild name:

dev-python/xmlschema-4.3.0

Description

An XML Schema validator and decoder

Added to portage

2026-01-07

xvfbwrapper - 0.2.17
Ebuild name:

dev-python/xvfbwrapper-0.2.17

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-01-07

2026-01-06
ada_language_server - 26.0.202504171
Ebuild name:

dev-ada/ada_language_server-26.0.202504171

Description

a Language Server Protocol for Ada/SPARK

Added to portage

2026-01-06

ada_language_server - 26.0.202507020
Ebuild name:

dev-ada/ada_language_server-26.0.202507020

Description

a Language Server Protocol for Ada/SPARK

Added to portage

2026-01-06

ada_language_server - 26.0.202507021
Ebuild name:

dev-ada/ada_language_server-26.0.202507021

Description

a Language Server Protocol for Ada/SPARK

Added to portage

2026-01-06

adifmerg - 20250112
Ebuild name:

media-radio/adifmerg-20250112

Description

A small conversion and check utility for ADIF files

Added to portage

2026-01-06

adifmerg - 9999
Ebuild name:

media-radio/adifmerg-9999

Description

A small conversion and check utility for ADIF files

Added to portage

2026-01-06

awesome - 4.3_p20260105
Ebuild name:

x11-wm/awesome-4.3_p20260105

Description

Dynamic floating and tiling window manager

Added to portage

2026-01-06

boto3 - 1.42.22
Ebuild name:

dev-python/boto3-1.42.22

Description

The AWS SDK for Python

Added to portage

2026-01-06

botocore - 1.42.22
Ebuild name:

dev-python/botocore-1.42.22

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-06

calligraplan - 4.0.0
Ebuild name:

app-office/calligraplan-4.0.0

Description

Project management application

Added to portage

2026-01-06

cfn-lint - 1.43.2
Ebuild name:

dev-python/cfn-lint-1.43.2

Description

CloudFormation Linter

Added to portage

2026-01-06

cmocka - 2.0.1
Ebuild name:

dev-util/cmocka-2.0.1

Description

Unit testing framework for C

Added to portage

2026-01-06

colord - 1.4.8-r1
Ebuild name:

x11-misc/colord-1.4.8-r1

Description

System service to accurately color manage input and output devices

Added to portage

2026-01-06

coreutils - 9.9-r1
Ebuild name:

sys-apps/coreutils-9.9-r1

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

Added to portage

2026-01-06

coreutils - 9.9-r11
Ebuild name:

sys-apps/coreutils-9.9-r11

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

Added to portage

2026-01-06

cyme - 2.2.9
Ebuild name:

sys-apps/cyme-2.2.9

Description

List system USB buses and devices; a modern cross-platform `lsusb`

Added to portage

2026-01-06

dbeaver-bin - 25.3.1-r1
Ebuild name:

dev-db/dbeaver-bin-25.3.1-r1

Description

Free universal database tool (community edition)

Added to portage

2026-01-06

dbeaver-bin - 25.3.2-r1
Ebuild name:

dev-db/dbeaver-bin-25.3.2-r1

Description

Free universal database tool (community edition)

Added to portage

2026-01-06

ddrescue - 1.30
Ebuild name:

sys-fs/ddrescue-1.30

Description

Copy data from one file or block device to another with read-error recovery

Added to portage

2026-01-06

deno-bin - 2.6.4
Ebuild name:

dev-lang/deno-bin-2.6.4

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-01-06

django-polymorphic - 4.6.0
Ebuild name:

dev-python/django-polymorphic-4.6.0

Description

Seamless Polymorphic Inheritance for Django Models

Added to portage

2026-01-06

ed - 1.22.4
Ebuild name:

sys-apps/ed-1.22.4

Description

Your basic line editor

Added to portage

2026-01-06

faraday-gzip - 3.1.0
Ebuild name:

dev-ruby/faraday-gzip-3.1.0

Description

Faraday plugin to set compression headers and decompress responses.

Added to portage

2026-01-06

flog - 4.9.3
Ebuild name:

dev-ruby/flog-4.9.3

Description

Flog reports the most tortured code in an easy to read pain report

Added to portage

2026-01-06

gitlab-runner - 18.6.6
Ebuild name:

dev-util/gitlab-runner-18.6.6

Description

The official GitLab Runner, written in Go

Added to portage

2026-01-06

gitlab-runner - 18.7.1
Ebuild name:

dev-util/gitlab-runner-18.7.1

Description

The official GitLab Runner, written in Go

Added to portage

2026-01-06

google-auth - 2.46.0
Ebuild name:

dev-python/google-auth-2.46.0

Description

Google Authentication Library

Added to portage

2026-01-06

hypothesis - 6.149.0
Ebuild name:

dev-python/hypothesis-6.149.0

Description

A library for property based testing

Added to portage

2026-01-06

hypothesis - 6.149.1
Ebuild name:

dev-python/hypothesis-6.149.1

Description

A library for property based testing

Added to portage

2026-01-06

imlib2 - 1.12.6
Ebuild name:

media-libs/imlib2-1.12.6

Description

Version 2 of an advanced replacement library for libraries like libXpm

Added to portage

2026-01-06

imlib2_loaders - 1.12.6
Ebuild name:

media-plugins/imlib2_loaders-1.12.6

Description

Additional image loaders for Imlib2

Added to portage

2026-01-06

ipython - 9.9.0
Ebuild name:

dev-python/ipython-9.9.0

Description

Advanced interactive shell for Python

Added to portage

2026-01-06

kube-apiserver - 1.32.11
Ebuild name:

sys-cluster/kube-apiserver-1.32.11

Description

Kubernetes API server

Added to portage

2026-01-06

kube-controller-manager - 1.32.11
Ebuild name:

sys-cluster/kube-controller-manager-1.32.11

Description

Kubernetes Controller Manager

Added to portage

2026-01-06

kube-proxy - 1.32.11
Ebuild name:

sys-cluster/kube-proxy-1.32.11

Description

Kubernetes Proxy service

Added to portage

2026-01-06

kube-scheduler - 1.32.11
Ebuild name:

sys-cluster/kube-scheduler-1.32.11

Description

Kubernetes Scheduler

Added to portage

2026-01-06

kubeadm - 1.32.11
Ebuild name:

sys-cluster/kubeadm-1.32.11

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2026-01-06

kubectl - 1.32.11
Ebuild name:

sys-cluster/kubectl-1.32.11

Description

CLI to run commands against Kubernetes clusters

Added to portage

2026-01-06

kubelet - 1.32.11
Ebuild name:

sys-cluster/kubelet-1.32.11

Description

Kubernetes Node Agent

Added to portage

2026-01-06

lgi - 0.9.2_p20251219
Ebuild name:

dev-lua/lgi-0.9.2_p20251219

Description

Lua bindings using gobject-introspection

Added to portage

2026-01-06

libarchive - 3.8.5
Ebuild name:

app-arch/libarchive-3.8.5

Description

Multi-format archive and compression library

Added to portage

2026-01-06

lumberjack - 2.0.4
Ebuild name:

dev-ruby/lumberjack-2.0.4

Description

A simple, powerful, and very fast logging utility

Added to portage

2026-01-06

maturin - 1.11.2
Ebuild name:

dev-util/maturin-1.11.2

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-01-06

mumble - 1.6.0_pre20250920-r2
Ebuild name:

net-voip/mumble-1.6.0_pre20250920-r2

Description

Mumble is an open source, low-latency, high quality voice chat

Added to portage

2026-01-06

murmur - 1.6.0_pre20250920-r3
Ebuild name:

net-voip/murmur-1.6.0_pre20250920-r3

Description

Mumble is an open source, low-latency, high quality voice chat

Added to portage

2026-01-06

openvpn - 2.6.17-r1
Ebuild name:

net-vpn/openvpn-2.6.17-r1

Description

Robust and highly flexible tunneling application compatible with many OSe

Added to portage

2026-01-06

ovpn-dco - 0.2.20251017
Ebuild name:

net-vpn/ovpn-dco-0.2.20251017

Description

OpenVPN Data Channel Offload in the linux kernel

Added to portage

2026-01-06

patatt - 0.7.0-r1
Ebuild name:

dev-python/patatt-0.7.0-r1

Description

A simple library to add cryptographic attestation to patches sent via em

Added to portage

2026-01-06

pathspec - 1.0.0
Ebuild name:

dev-python/pathspec-1.0.0

Description

Utility library for gitignore style pattern matching of file paths

Added to portage

2026-01-06

pcsx2 - 2.6.1
Ebuild name:

games-emulation/pcsx2-2.6.1

Description

PlayStation 2 emulator

Added to portage

2026-01-06

prismlauncher - 9.4-r1
Ebuild name:

games-action/prismlauncher-9.4-r1

Description

Custom, open source Minecraft launcher

Added to portage

2026-01-06

pyasynchat - 1.0.5
Ebuild name:

dev-python/pyasynchat-1.0.5

Description

Make asynchat available for Python 3.12 onwards

Added to portage

2026-01-06

pyasyncore - 1.0.5
Ebuild name:

dev-python/pyasyncore-1.0.5

Description

Make asyncore available for Python 3.12 onwards

Added to portage

2026-01-06

pyshp - 3.0.3
Ebuild name:

sci-libs/pyshp-3.0.3

Description

Pure Python read/write support for ESRI Shapefile format

Added to portage

2026-01-06

pyside - 6.10.1-r4
Ebuild name:

dev-python/pyside-6.10.1-r4

Description

Python bindings for the Qt framework

Added to portage

2026-01-06

ruff - 0.14.10-r1
Ebuild name:

dev-util/ruff-0.14.10-r1

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-01-06

sbctl - 0.16
Ebuild name:

app-crypt/sbctl-0.16

Description

Secure Boot key manager

Added to portage

2026-01-06

seatd - 0.9.2
Ebuild name:

sys-auth/seatd-0.9.2

Description

Minimal seat management daemon and universal library

Added to portage

2026-01-06

shadowman - 5
Ebuild name:

dev-util/shadowman-5

Description

Unified compiler shadow link directory updater

Added to portage

2026-01-06

soci - 4.1.2-r2
Ebuild name:

dev-db/soci-4.1.2-r2

Description

SOCI - The C++ Database Access Library

Added to portage

2026-01-06

sudo-rs - 0.2.11-r1
Ebuild name:

app-admin/sudo-rs-0.2.11-r1

Description

A memory safe implementation of sudo and su.

Added to portage

2026-01-06

syncthing - 2.0.13
Ebuild name:

net-p2p/syncthing-2.0.13

Description

Open Source Continuous File Synchronization

Added to portage

2026-01-06

tailscale - 1.92.4
Ebuild name:

net-vpn/tailscale-1.92.4

Description

Tailscale vpn client

Added to portage

2026-01-06

texstudio - 4.9.1
Ebuild name:

app-office/texstudio-4.9.1

Description

Free cross-platform LaTeX editor (fork from texmakerX)

Added to portage

2026-01-06

transmission - 4.1.0_beta5
Ebuild name:

net-p2p/transmission-4.1.0_beta5

Description

A fast, easy, and free BitTorrent client

Added to portage

2026-01-06

udisks - 2.10.2-r1
Ebuild name:

sys-fs/udisks-2.10.2-r1

Description

Daemon providing interfaces to work with storage devices

Added to portage

2026-01-06

udisks - 2.11.0-r1
Ebuild name:

sys-fs/udisks-2.11.0-r1

Description

Daemon providing interfaces to work with storage devices

Added to portage

2026-01-06

upterm - 0.21.0
Ebuild name:

app-misc/upterm-0.21.0

Description

Instant Terminal Sharing

Added to portage

2026-01-06

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