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:

87514

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-08
binutils - 2.47
Ebuild name:

sys-devel/binutils-2.47

Description

Tools necessary to build programs

Added to portage

2026-08-08

binutils - 2.47.9999
Ebuild name:

sys-devel/binutils-2.47.9999

Description

Tools necessary to build programs

Added to portage

2026-08-08

binutils-hppa64 - 2.47
Ebuild name:

sys-devel/binutils-hppa64-2.47

Description

Tools necessary to build programs

Added to portage

2026-08-08

binutils-libs - 2.47
Ebuild name:

sys-libs/binutils-libs-2.47

Description

Core binutils libraries (libbfd, libopcodes, libiberty) for external pa

Added to portage

2026-08-08

corsix-th - 0.70.0-r3
Ebuild name:

games-simulation/corsix-th-0.70.0-r3

Description

Open source clone of Theme Hospital

Added to portage

2026-08-08

dist-kernel - 6.1.182
Ebuild name:

virtual/dist-kernel-6.1.182

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-08

dist-kernel - 6.12.102
Ebuild name:

virtual/dist-kernel-6.12.102

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-08

dist-kernel - 6.6.150
Ebuild name:

virtual/dist-kernel-6.6.150

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-08

dropbox - 264.4.3385
Ebuild name:

net-misc/dropbox-264.4.3385

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2026-08-08

element - 1.12.25
Ebuild name:

www-apps/element-1.12.25

Description

A glossy Matrix collaboration client for the web

Added to portage

2026-08-08

gcc - 15.3.1_p20260807
Ebuild name:

sys-devel/gcc-15.3.1_p20260807

Description

The GNU Compiler Collection

Added to portage

2026-08-08

gentoo-kernel - 6.1.182
Ebuild name:

sys-kernel/gentoo-kernel-6.1.182

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-08

gentoo-kernel - 6.12.102
Ebuild name:

sys-kernel/gentoo-kernel-6.12.102

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-08

gentoo-kernel - 6.6.150
Ebuild name:

sys-kernel/gentoo-kernel-6.6.150

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-08

gentoo-kernel-bin - 6.1.182
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.182

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-08

gentoo-kernel-bin - 6.12.102
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.102

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-08

gentoo-kernel-bin - 6.6.150
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.150

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-08

gentoo-kernel-modprep - 6.1.182
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.182

Description

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

Added to portage

2026-08-08

gentoo-kernel-modprep - 6.12.102
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.102

Description

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

Added to portage

2026-08-08

gentoo-kernel-modprep - 6.6.150
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.150

Description

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

Added to portage

2026-08-08

nextcloud - 32.0.13
Ebuild name:

www-apps/nextcloud-32.0.13

Description

Personal cloud that runs on your own server

Added to portage

2026-08-08

nextcloud - 33.0.7
Ebuild name:

www-apps/nextcloud-33.0.7

Description

Personal cloud that runs on your own server

Added to portage

2026-08-08

nextcloud - 34.0.2
Ebuild name:

www-apps/nextcloud-34.0.2

Description

Personal cloud that runs on your own server

Added to portage

2026-08-08

openhab-bin - 5.2.1
Ebuild name:

app-misc/openhab-bin-5.2.1

Description

An open-source automation software for your home

Added to portage

2026-08-08

tesseract - 5.5.3
Ebuild name:

app-text/tesseract-5.5.3

Description

An OCR Engine, originally developed at HP, now open source

Added to portage

2026-08-08

vanilla-kernel - 6.1.182
Ebuild name:

sys-kernel/vanilla-kernel-6.1.182

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-08

vanilla-kernel - 6.12.102
Ebuild name:

sys-kernel/vanilla-kernel-6.12.102

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-08

vanilla-kernel - 6.6.150
Ebuild name:

sys-kernel/vanilla-kernel-6.6.150

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-08

2026-08-07
aardvark-dns - 2.1.0
Ebuild name:

app-containers/aardvark-dns-2.1.0

Description

A container-focused DNS server

Added to portage

2026-08-07

apr-util - 1.6.4
Ebuild name:

dev-libs/apr-util-1.6.4

Description

Apache Portable Runtime Utility Library

Added to portage

2026-08-07

argcomplete - 3.7.2
Ebuild name:

dev-python/argcomplete-3.7.2

Description

Bash tab completion for argparse

Added to portage

2026-08-07

ast-serialize - 0.7.0
Ebuild name:

dev-python/ast-serialize-0.7.0

Description

Python bindings for mypy AST serialization

Added to portage

2026-08-07

awscli-bin - 2.36.17
Ebuild name:

app-admin/awscli-bin-2.36.17

Description

command line interface for Amazon Web Services

Added to portage

2026-08-07

bcachefs-tools - 1.39.0
Ebuild name:

sys-fs/bcachefs-tools-1.39.0

Description

Tools for bcachefs

Added to portage

2026-08-07

boto3 - 1.43.66
Ebuild name:

dev-python/boto3-1.43.66

Description

The AWS SDK for Python

Added to portage

2026-08-07

botocore - 1.43.66
Ebuild name:

dev-python/botocore-1.43.66

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-07

c-blosc2 - 3.3.2
Ebuild name:

dev-libs/c-blosc2-3.3.2

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-08-07

cadvisor - 0.60.5
Ebuild name:

app-containers/cadvisor-0.60.5

Description

Analyzes resource usage and performance characteristics of running c

Added to portage

2026-08-07

cmd2 - 4.2.0
Ebuild name:

dev-python/cmd2-4.2.0

Description

Extra features for standard library's cmd module

Added to portage

2026-08-07

cosign - 3.1.3
Ebuild name:

app-containers/cosign-3.1.3

Description

container signing utility

Added to portage

2026-08-07

coverage - 7.15.4
Ebuild name:

dev-python/coverage-7.15.4

Description

Code coverage measurement for Python

Added to portage

2026-08-07

discord - 1.0.152
Ebuild name:

net-im/discord-1.0.152

Description

All-in-one voice and text chat for gamers

Added to portage

2026-08-07

dist-kernel - 6.18.43
Ebuild name:

virtual/dist-kernel-6.18.43

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-07

dist-kernel - 7.1.7
Ebuild name:

virtual/dist-kernel-7.1.7

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-07

docker - 29.7.2
Ebuild name:

app-containers/docker-29.7.2

Description

The core functions you need to create Docker images and run Docker con

Added to portage

2026-08-07

docker-buildx - 0.36.1
Ebuild name:

app-containers/docker-buildx-0.36.1

Description

Docker CLI plugin for extended build capabilities with BuildKit

Added to portage

2026-08-07

docker-cli - 29.7.2
Ebuild name:

app-containers/docker-cli-29.7.2

Description

the command line binary for docker

Added to portage

2026-08-07

docker-compose - 5.4.0
Ebuild name:

app-containers/docker-compose-5.4.0

Description

Multi-container orchestration for Docker

Added to portage

2026-08-07

docker-credential-helpers - 0.9.8
Ebuild name:

app-containers/docker-credential-helpers-0.9.8

Description

Suite of programs to use native stores to keep Docke

Added to portage

2026-08-07

fj-cli - 0.6.0
Ebuild name:

dev-util/fj-cli-0.6.0

Description

CLI tool for Forgejo

Added to portage

2026-08-07

fontconfig - 2.18.3
Ebuild name:

media-libs/fontconfig-2.18.3

Description

A library for configuring and customizing font access

Added to portage

2026-08-07

gcc - 13.4.1_p20260805
Ebuild name:

sys-devel/gcc-13.4.1_p20260805

Description

The GNU Compiler Collection

Added to portage

2026-08-07

gcc - 14.4.1_p20260806
Ebuild name:

sys-devel/gcc-14.4.1_p20260806

Description

The GNU Compiler Collection

Added to portage

2026-08-07

gcc - 16.2.0
Ebuild name:

sys-devel/gcc-16.2.0

Description

The GNU Compiler Collection

Added to portage

2026-08-07

gcc - 16.3.9999
Ebuild name:

sys-devel/gcc-16.3.9999

Description

The GNU Compiler Collection

Added to portage

2026-08-07

gentoo-kernel - 6.18.43
Ebuild name:

sys-kernel/gentoo-kernel-6.18.43

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-07

gentoo-kernel - 7.1.7
Ebuild name:

sys-kernel/gentoo-kernel-7.1.7

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-07

gentoo-kernel-bin - 6.18.43
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.43

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-07

gentoo-kernel-bin - 7.1.7
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.7

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-07

gentoo-kernel-modprep - 6.18.43
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.43

Description

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

Added to portage

2026-08-07

gentoo-kernel-modprep - 7.1.7
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.7

Description

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

Added to portage

2026-08-07

gentoo-sources - 6.1.182
Ebuild name:

sys-kernel/gentoo-sources-6.1.182

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-07

gentoo-sources - 6.12.102
Ebuild name:

sys-kernel/gentoo-sources-6.12.102

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-07

gentoo-sources - 6.18.43
Ebuild name:

sys-kernel/gentoo-sources-6.18.43

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-07

gentoo-sources - 6.6.150
Ebuild name:

sys-kernel/gentoo-sources-6.6.150

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-07

gentoo-sources - 7.1.7
Ebuild name:

sys-kernel/gentoo-sources-7.1.7

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-07

glslang - 1.4.357.0
Ebuild name:

dev-util/glslang-1.4.357.0

Description

Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generat

Added to portage

2026-08-07

google-api-core - 2.34.0
Ebuild name:

dev-python/google-api-core-2.34.0

Description

Core Library for Google Client Libraries

Added to portage

2026-08-07

google-auth - 2.56.3
Ebuild name:

dev-python/google-auth-2.56.3

Description

Google Authentication Library

Added to portage

2026-08-07

google-auth-httplib2 - 0.4.1
Ebuild name:

dev-python/google-auth-httplib2-0.4.1

Description

httplib2 Transport for Google Auth

Added to portage

2026-08-07

googleapis-common-protos - 1.75.1
Ebuild name:

dev-python/googleapis-common-protos-1.75.1

Description

Python classes generated from the common protos in the g

Added to portage

2026-08-07

jj - 0.44.0
Ebuild name:

dev-vcs/jj-0.44.0

Description

Jujutsu - an experimental version control system

Added to portage

2026-08-07

knot-resolver - 5.7.8
Ebuild name:

net-dns/knot-resolver-5.7.8

Description

Scaleable caching DNS resolver

Added to portage

2026-08-07

knot-resolver - 6.4.2
Ebuild name:

net-dns/knot-resolver-6.4.2

Description

Scaleable caching DNS resolver

Added to portage

2026-08-07

librt - 0.14.0
Ebuild name:

dev-python/librt-0.14.0

Description

Mypyc runtime library

Added to portage

2026-08-07

lv - 0.15.0-r1
Ebuild name:

app-emacs/lv-0.15.0-r1

Description

Other echo area

Added to portage

2026-08-07

lyskom-elisp-client - 0.48_p20200226
Ebuild name:

app-emacs/lyskom-elisp-client-0.48_p20200226

Description

Elisp client for the LysKOM conference system

Added to portage

2026-08-07

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-07

macrostep - 0.9.5
Ebuild name:

app-emacs/macrostep-0.9.5

Description

Interactive macro-expander for Emacs

Added to portage

2026-08-07

macrostep-geiser - 0.2.0_p20210717
Ebuild name:

app-emacs/macrostep-geiser-0.2.0_p20210717

Description

Emacs macrostep back-end powered by geiser

Added to portage

2026-08-07

magit - 4.5.0-r1
Ebuild name:

app-emacs/magit-4.5.0-r1

Description

A Git porcelain inside Emacs

Added to portage

2026-08-07

magit - 4.6.0
Ebuild name:

app-emacs/magit-4.6.0

Description

A Git porcelain inside Emacs

Added to portage

2026-08-07

magit - 4.7.0
Ebuild name:

app-emacs/magit-4.7.0

Description

A Git porcelain inside Emacs

Added to portage

2026-08-07

magit - 9999
Ebuild name:

app-emacs/magit-9999

Description

A Git porcelain inside Emacs

Added to portage

2026-08-07

mame - 0.289-r3
Ebuild name:

games-emulation/mame-0.289-r3

Description

Multiple Arcade Machine Emulator

Added to portage

2026-08-07

nbformat - 5.11.0
Ebuild name:

dev-python/nbformat-5.11.0

Description

Reference implementation of the Jupyter Notebook format

Added to portage

2026-08-07

netavark - 2.1.0
Ebuild name:

app-containers/netavark-2.1.0

Description

A container network stack

Added to portage

2026-08-07

nspr - 4.40
Ebuild name:

dev-libs/nspr-4.40

Description

Netscape Portable Runtime

Added to portage

2026-08-07

nvidia-drivers - 595.44.14
Ebuild name:

x11-drivers/nvidia-drivers-595.44.14

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-08-07

openpgp-keys-apache-httpd - 20260807
Ebuild name:

sec-keys/openpgp-keys-apache-httpd-20260807

Description

OpenPGP keys used to sign Apache httpd

Added to portage

2026-08-07

pika - 1.4.4
Ebuild name:

dev-python/pika-1.4.4

Description

Pure-Python implementation of the AMQP

Added to portage

2026-08-07

pkgcore - 0.12.37-r1
Ebuild name:

sys-apps/pkgcore-0.12.37-r1

Description

a framework for package management

Added to portage

2026-08-07

proto-plus - 1.28.3
Ebuild name:

dev-python/proto-plus-1.28.3

Description

Beautiful, Pythonic protocol buffers

Added to portage

2026-08-07

pybind11 - 3.1.0
Ebuild name:

dev-python/pybind11-3.1.0

Description

AST-based Python refactoring library

Added to portage

2026-08-07

pypdf - 6.15.0
Ebuild name:

dev-python/pypdf-6.15.0

Description

Python library to work with PDF files

Added to portage

2026-08-07

safetensors - 0.8.0
Ebuild name:

sci-ml/safetensors-0.8.0

Description

Simple, safe way to store and distribute tensors

Added to portage

2026-08-07

shader-slang - 2026.14.1-r2
Ebuild name:

dev-util/shader-slang-2026.14.1-r2

Description

Making it easier to work with shaders

Added to portage

2026-08-07

shaderc - 2026.3
Ebuild name:

media-libs/shaderc-2026.3

Description

Collection of tools, libraries and tests for shader compilation

Added to portage

2026-08-07

soci - 4.1.4
Ebuild name:

dev-db/soci-4.1.4

Description

SOCI - The C++ Database Access Library

Added to portage

2026-08-07

soupsieve - 2.9.2
Ebuild name:

dev-python/soupsieve-2.9.2

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-08-07

spirv-headers - 1.4.357.0
Ebuild name:

dev-util/spirv-headers-1.4.357.0

Description

Machine-readable files for the SPIR-V Registry

Added to portage

2026-08-07

spirv-tools - 1.4.357.0
Ebuild name:

dev-util/spirv-tools-1.4.357.0

Description

Provides an API and commands for processing SPIR-V modules

Added to portage

2026-08-07

transformers - 5.12.1
Ebuild name:

sci-ml/transformers-5.12.1

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-08-07

transformers - 5.13.1
Ebuild name:

sci-ml/transformers-5.13.1

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-08-07

transformers - 5.14.1
Ebuild name:

sci-ml/transformers-5.14.1

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-08-07

vanilla-kernel - 6.18.43
Ebuild name:

sys-kernel/vanilla-kernel-6.18.43

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-07

vanilla-kernel - 7.1.7
Ebuild name:

sys-kernel/vanilla-kernel-7.1.7

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-07

vanilla-sources - 6.1.182
Ebuild name:

sys-kernel/vanilla-sources-6.1.182

Description

Full sources for the Linux kernel

Added to portage

2026-08-07

vanilla-sources - 6.12.102
Ebuild name:

sys-kernel/vanilla-sources-6.12.102

Description

Full sources for the Linux kernel

Added to portage

2026-08-07

vanilla-sources - 6.18.43
Ebuild name:

sys-kernel/vanilla-sources-6.18.43

Description

Full sources for the Linux kernel

Added to portage

2026-08-07

vanilla-sources - 6.6.150
Ebuild name:

sys-kernel/vanilla-sources-6.6.150

Description

Full sources for the Linux kernel

Added to portage

2026-08-07

vanilla-sources - 7.1.7
Ebuild name:

sys-kernel/vanilla-sources-7.1.7

Description

Full sources for the Linux kernel

Added to portage

2026-08-07

vips - 8.18.5
Ebuild name:

media-libs/vips-8.18.5

Description

VIPS Image Processing Library

Added to portage

2026-08-07

vulkan-headers - 1.4.357.0
Ebuild name:

dev-util/vulkan-headers-1.4.357.0

Description

Vulkan Header files and API registry

Added to portage

2026-08-07

vulkan-layers - 1.4.357.0
Ebuild name:

media-libs/vulkan-layers-1.4.357.0

Description

Vulkan Validation Layers

Added to portage

2026-08-07

vulkan-loader - 1.4.357.0
Ebuild name:

media-libs/vulkan-loader-1.4.357.0

Description

Vulkan Installable Client Driver (ICD) Loader

Added to portage

2026-08-07

vulkan-tools - 1.4.357.0
Ebuild name:

dev-util/vulkan-tools-1.4.357.0

Description

Official Vulkan Tools and Utilities for Windows, Linux, Android, an

Added to portage

2026-08-07

vulkan-utility-libraries - 1.4.357.0
Ebuild name:

dev-util/vulkan-utility-libraries-1.4.357.0

Description

Share code across various Vulkan repositories

Added to portage

2026-08-07

wordpress - 7.0.3
Ebuild name:

www-apps/wordpress-7.0.3

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-08-07

wrapt - 2.4.0_rc1
Ebuild name:

dev-python/wrapt-2.4.0_rc1

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-08-07

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