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:

86553

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-05
darktable - 5.6.0
Ebuild name:

media-gfx/darktable-5.6.0

Description

A virtual lighttable and darkroom for photographers

Added to portage

2026-07-05

ollama - 0.31.1
Ebuild name:

sci-ml/ollama-0.31.1

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models.

Added to portage

2026-07-05

setproctitle - 1.3.7-r1
Ebuild name:

dev-python/setproctitle-1.3.7-r1

Description

Allow customization of the process title

Added to portage

2026-07-05

vanilla-sources - 5.10.260
Ebuild name:

sys-kernel/vanilla-sources-5.10.260

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 5.15.211
Ebuild name:

sys-kernel/vanilla-sources-5.15.211

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.1.177
Ebuild name:

sys-kernel/vanilla-sources-6.1.177

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.12.94
Ebuild name:

sys-kernel/vanilla-sources-6.12.94

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.18.38
Ebuild name:

sys-kernel/vanilla-sources-6.18.38

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.6.144
Ebuild name:

sys-kernel/vanilla-sources-6.6.144

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 7.1.3
Ebuild name:

sys-kernel/vanilla-sources-7.1.3

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

2026-07-04
absl-py - 2.5.0
Ebuild name:

dev-python/absl-py-2.5.0

Description

Abseil Python Common Libraries

Added to portage

2026-07-04

apsw - 3.53.3.0
Ebuild name:

dev-python/apsw-3.53.3.0

Description

APSW - Another Python SQLite Wrapper

Added to portage

2026-07-04

blazesym_c - 0.1.9
Ebuild name:

dev-libs/blazesym_c-0.1.9

Description

C bindings for blazesym, a library for address symbolization and related

Added to portage

2026-07-04

blessed - 1.46.0
Ebuild name:

dev-python/blessed-1.46.0

Description

Library for making terminal apps using colors, keyboard input and positio

Added to portage

2026-07-04

codespell - 2.4.2
Ebuild name:

dev-util/codespell-2.4.2

Description

Check text files for common misspellings

Added to portage

2026-07-04

crystal - 1.20.3
Ebuild name:

dev-lang/crystal-1.20.3

Description

The Crystal Programming Language

Added to portage

2026-07-04

curtail - 1.16.2
Ebuild name:

media-gfx/curtail-1.16.2

Description

Image compressor, supporting PNG, JPEG and WebP

Added to portage

2026-07-04

dnsdist - 2.1.0
Ebuild name:

net-dns/dnsdist-2.1.0

Description

A highly DNS-, DoS- and abuse-aware loadbalancer

Added to portage

2026-07-04

doggo - 1.2.0
Ebuild name:

net-dns/doggo-1.2.0

Description

Command-line DNS Client for Humans

Added to portage

2026-07-04

electrum - 4.8.0
Ebuild name:

net-misc/electrum-4.8.0

Description

User friendly Bitcoin client

Added to portage

2026-07-04

fheroes2 - 1.1.17
Ebuild name:

games-engines/fheroes2-1.1.17

Description

Recreation of HoMM2 game engine

Added to portage

2026-07-04

filelock - 3.29.5
Ebuild name:

dev-python/filelock-3.29.5

Description

A platform independent file lock for Python

Added to portage

2026-07-04

forbiddenfruit - 0.1.4-r1
Ebuild name:

dev-python/forbiddenfruit-0.1.4-r1

Description

Patch built-in Python objects

Added to portage

2026-07-04

freepg - 2.5.21
Ebuild name:

app-crypt/freepg-2.5.21

Description

Cross-distro GnuPG fork focused on OpenPGP compliance

Added to portage

2026-07-04

ggml - 0.15.3
Ebuild name:

sci-ml/ggml-0.15.3

Description

Tensor library for machine learning

Added to portage

2026-07-04

git-pw - 2.8.1
Ebuild name:

dev-vcs/git-pw-2.8.1

Description

A tool for integrating Git with Patchwork

Added to portage

2026-07-04

github-cli - 2.96.0
Ebuild name:

dev-util/github-cli-2.96.0

Description

GitHub CLI

Added to portage

2026-07-04

gitlab-cli - 1.106.0
Ebuild name:

dev-util/gitlab-cli-1.106.0

Description

the official gitlab command line interface

Added to portage

2026-07-04

gnome-shell-frippery - 49.1
Ebuild name:

gnome-extra/gnome-shell-frippery-49.1

Description

Unofficial extension pack providing GNOME 2-like features

Added to portage

2026-07-04

guessit - 4.1.0
Ebuild name:

dev-python/guessit-4.1.0

Description

Python library for guessing information from video filenames

Added to portage

2026-07-04

httpbin - 0.10.4-r1
Ebuild name:

dev-python/httpbin-0.10.4-r1

Description

HTTP Request and Response Service

Added to portage

2026-07-04

hypothesis - 6.156.1
Ebuild name:

dev-python/hypothesis-6.156.1

Description

A library for property based testing

Added to portage

2026-07-04

intellij-idea - 2026.1.4
Ebuild name:

dev-util/intellij-idea-2026.1.4

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-07-04

jgemu - 1.0.0-r1
Ebuild name:

games-emulation/jgemu-1.0.0-r1

Description

Meta ebuild for the Jolly Good API

Added to portage

2026-07-04

jgrf - 1.4.0-r1
Ebuild name:

games-emulation/jgrf-1.4.0-r1

Description

The Jolly Good Reference Frontend

Added to portage

2026-07-04

jinxed - 2.1.0
Ebuild name:

dev-python/jinxed-2.1.0

Description

A pure-Python implementation of a subset of the Python curses library

Added to portage

2026-07-04

keystoneauth1 - 5.15.0
Ebuild name:

dev-python/keystoneauth1-5.15.0

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-07-04

libmemcached-awesome - 1.1.4-r1
Ebuild name:

dev-libs/libmemcached-awesome-1.1.4-r1

Description

a C/C++ memcached client library

Added to portage

2026-07-04

libopenmpt - 0.8.7
Ebuild name:

media-libs/libopenmpt-0.8.7

Description

Library to decode tracked music files (modules)

Added to portage

2026-07-04

libsecret - 0.21.7
Ebuild name:

app-crypt/libsecret-0.21.7

Description

GObject library for accessing the freedesktop.org Secret Service API

Added to portage

2026-07-04

libsecret - 0.21.7-r1
Ebuild name:

app-crypt/libsecret-0.21.7-r1

Description

GObject library for accessing the freedesktop.org Secret Service API

Added to portage

2026-07-04

libu2f-host - 1.1.10-r1
Ebuild name:

app-crypt/libu2f-host-1.1.10-r1

Description

Yubico Universal 2nd Factor (U2F) Host C Library

Added to portage

2026-07-04

libu2f-server - 1.1.0-r2
Ebuild name:

app-crypt/libu2f-server-1.1.0-r2

Description

Yubico Universal 2nd Factor (U2F) server C Library

Added to portage

2026-07-04

loop-aes-losetup - 2.40.2
Ebuild name:

app-crypt/loop-aes-losetup-2.40.2

Description

Loop-AES losetup utility

Added to portage

2026-07-04

loop-aes-losetup - 2.41.1
Ebuild name:

app-crypt/loop-aes-losetup-2.41.1

Description

Loop-AES losetup utility

Added to portage

2026-07-04

mcrypt - 2.6.8-r3
Ebuild name:

app-crypt/mcrypt-2.6.8-r3

Description

Replacement of the old unix crypt(1)

Added to portage

2026-07-04

md5deep - 4.4
Ebuild name:

app-crypt/md5deep-4.4

Description

Expanded md5sum program with recursive and comparison options

Added to portage

2026-07-04

mediawiki - 1.46.0
Ebuild name:

www-apps/mediawiki-1.46.0

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2026-07-04

mod_wsgi - 6.0.5
Ebuild name:

www-apache/mod_wsgi-6.0.5

Description

An Apache2 module for running Python WSGI applications

Added to portage

2026-07-04

monitoring-plugins - 3.0.1-r1
Ebuild name:

net-analyzer/monitoring-plugins-3.0.1-r1

Description

50+ standard plugins for Icinga, Naemon, Nagios, Shinken,

Added to portage

2026-07-04

mycli - 2.0.0
Ebuild name:

dev-db/mycli-2.0.0

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2026-07-04

nagios-plugins - 2.5
Ebuild name:

net-analyzer/nagios-plugins-2.5

Description

Official plugins for Nagios

Added to portage

2026-07-04

no-littering - 1.8.9
Ebuild name:

app-emacs/no-littering-1.8.9

Description

ELisp library that helps keeping Emacs configuration directory clean

Added to portage

2026-07-04

nvc - 1.21.1
Ebuild name:

sci-electronics/nvc-1.21.1

Description

NVC is a VHDL compiler and simulator

Added to portage

2026-07-04

odamex - 12.2.1
Ebuild name:

games-engines/odamex-12.2.1

Description

Online multiplayer free software engine for DOOM

Added to portage

2026-07-04

openmpt123 - 0.8.7
Ebuild name:

media-sound/openmpt123-0.8.7

Description

libopenmpt-based command line player for tracked music files (modules)

Added to portage

2026-07-04

openpgp-keys-akallabeth - 20260703
Ebuild name:

sec-keys/openpgp-keys-akallabeth-20260703

Description

OpenPGP key for Github user akallabeth

Added to portage

2026-07-04

openpgp-keys-andresimon - 20260703
Ebuild name:

sec-keys/openpgp-keys-andresimon-20260703

Description

OpenPGP keys used by Andre Simo

Added to portage

2026-07-04

openpgp-keys-andrewtridgell - 20260703
Ebuild name:

sec-keys/openpgp-keys-andrewtridgell-20260703

Description

OpenPGP keys used by Andrew Tridgell

Added to portage

2026-07-04

openpgp-keys-arnaldocarvalhodemelo - 20260703
Ebuild name:

sec-keys/openpgp-keys-arnaldocarvalhodemelo-20260703

Description

OpenPGP keys of Arnaldo Carvalho de Melo

Added to portage

2026-07-04

openpgp-keys-bison - 20260703
Ebuild name:

sec-keys/openpgp-keys-bison-20260703

Description

OpenPGP keys used by Bison

Added to portage

2026-07-04

openpgp-keys-botan - 20260703
Ebuild name:

sec-keys/openpgp-keys-botan-20260703

Description

OpenPGP keys used to sign Botan releases

Added to portage

2026-07-04

openpgp-keys-bradhouse - 20260703
Ebuild name:

sec-keys/openpgp-keys-bradhouse-20260703

Description

OpenPGP keys used by Brad House (bradh352)

Added to portage

2026-07-04

openpgp-keys-cgzones - 20260703
Ebuild name:

sec-keys/openpgp-keys-cgzones-20260703

Description

OpenPGP keys used by Christian Göttsche (cgzones)

Added to portage

2026-07-04

openpgp-keys-chetramey - 20260703
Ebuild name:

sec-keys/openpgp-keys-chetramey-20260703

Description

OpenPGP keys used by Chet Ramey

Added to portage

2026-07-04

openpgp-keys-crypto++ - 20260703
Ebuild name:

sec-keys/openpgp-keys-crypto++-20260703

Description

OpenPGP keys used to sign crypto++ releases

Added to portage

2026-07-04

openpgp-keys-findutils - 20260703
Ebuild name:

sec-keys/openpgp-keys-findutils-20260703

Description

OpenPGP keys used by GNU findutils

Added to portage

2026-07-04

openpgp-keys-gnupg - 20260703
Ebuild name:

sec-keys/openpgp-keys-gnupg-20260703

Description

OpenPGP keys used to sign GnuPG releases

Added to portage

2026-07-04

openpgp-keys-openvpn - 202600704
Ebuild name:

sec-keys/openpgp-keys-openvpn-202600704

Description

OpenPGP keys used for OpenVPN releases

Added to portage

2026-07-04

openvpn - 2.7.5
Ebuild name:

net-vpn/openvpn-2.7.5

Description

Robust and highly flexible tunneling application compatible with many OSes

Added to portage

2026-07-04

package-build - 5.0.0
Ebuild name:

app-emacs/package-build-5.0.0

Description

Tools for assembling a package archive

Added to portage

2026-07-04

patchelf - 0.19.0
Ebuild name:

dev-util/patchelf-0.19.0

Description

Small utility to modify the dynamic linker and RPATH of ELF executables

Added to portage

2026-07-04

phonenumbers - 9.0.34
Ebuild name:

dev-python/phonenumbers-9.0.34

Description

Python port of Google's libphonenumber

Added to portage

2026-07-04

privoxy - 4.2.0
Ebuild name:

net-proxy/privoxy-4.2.0

Description

A web proxy with advanced filtering capabilities for enhancing privacy

Added to portage

2026-07-04

projectile - 3.1.0
Ebuild name:

app-emacs/projectile-3.1.0

Description

A project interaction library for Emacs

Added to portage

2026-07-04

pyaml - 26.7.0
Ebuild name:

dev-python/pyaml-26.7.0

Description

PyYAML-based module to produce pretty and readable YAML-serialized data

Added to portage

2026-07-04

pylibmc - 1.6.3-r3
Ebuild name:

dev-python/pylibmc-1.6.3-r3

Description

Libmemcached wrapper written as a Python extension

Added to portage

2026-07-04

pyproject-metadata - 0.12.1
Ebuild name:

dev-python/pyproject-metadata-0.12.1

Description

PEP 621 metadata parsing

Added to portage

2026-07-04

pyquery - 2.0.1-r1
Ebuild name:

dev-python/pyquery-2.0.1-r1

Description

A jQuery-like library for python

Added to portage

2026-07-04

pytest-expect - 1.1.0-r3
Ebuild name:

dev-python/pytest-expect-1.1.0-r3

Description

pytest plugin that stores test expectations by saving the set of

Added to portage

2026-07-04

python-discovery - 1.4.3
Ebuild name:

dev-python/python-discovery-1.4.3

Description

Python interpreter discovery

Added to portage

2026-07-04

rebulk - 6.0.1
Ebuild name:

dev-python/rebulk-6.0.1

Description

Python library that performs advanced searches in strings

Added to portage

2026-07-04

requests-cache - 1.3.3
Ebuild name:

dev-python/requests-cache-1.3.3

Description

Persistent cache for requests library

Added to portage

2026-07-04

responses - 0.26.2
Ebuild name:

dev-python/responses-0.26.2

Description

Utility for mocking out the Python Requests library

Added to portage

2026-07-04

rust-std - 1.92.0_p1-r1
Ebuild name:

sys-devel/rust-std-1.92.0_p1-r1

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-07-04

rust-std - 9999
Ebuild name:

sys-devel/rust-std-9999

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-07-04

sabctools - 9.6.0
Ebuild name:

dev-python/sabctools-9.6.0

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2026-07-04

shell-maker - 0.93.3
Ebuild name:

app-emacs/shell-maker-0.93.3

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-07-04

shtab - 1.8.1
Ebuild name:

dev-python/shtab-1.8.1

Description

Automagic shell tab completion for Python CLI applications

Added to portage

2026-07-04

sphinx - 9.1.0-r1
Ebuild name:

dev-python/sphinx-9.1.0-r1

Description

Python documentation generator

Added to portage

2026-07-04

sphinx-autodoc-typehints - 3.12.1
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.12.1

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-07-04

tea - 0.14.2
Ebuild name:

dev-util/tea-0.14.2

Description

Command line tool to interact with Gitea server

Added to portage

2026-07-04

transient - 0.13.5
Ebuild name:

app-emacs/transient-0.13.5

Description

Transient commands abstraction for GNU Emacs

Added to portage

2026-07-04

tree-sitter - 0.26.0
Ebuild name:

dev-python/tree-sitter-0.26.0

Description

Python bindings to the Tree-sitter parsing library

Added to portage

2026-07-04

tuareg-mode - 3.1.0
Ebuild name:

app-emacs/tuareg-mode-3.1.0

Description

An Objective Caml/Camllight mode for Emacs

Added to portage

2026-07-04

twisted - 26.4.0-r1
Ebuild name:

dev-python/twisted-26.4.0-r1

Description

An asynchronous networking framework written in Python

Added to portage

2026-07-04

valijson - 1.1.1
Ebuild name:

dev-cpp/valijson-1.1.1

Description

Header-only C++ library for JSON Schema validation

Added to portage

2026-07-04

virtualbox - 7.2.12
Ebuild name:

app-emulation/virtualbox-7.2.12

Description

Family of powerful x86 virtualization products for enterprise and h

Added to portage

2026-07-04

virtualbox-additions - 7.2.12
Ebuild name:

app-emulation/virtualbox-additions-7.2.12

Description

CD image containing guest additions for VirtualBox

Added to portage

2026-07-04

virtualbox-extpack-oracle - 7.2.12
Ebuild name:

app-emulation/virtualbox-extpack-oracle-7.2.12

Description

PUEL extensions for VirtualBox

Added to portage

2026-07-04

virtualbox-guest-additions - 7.2.12
Ebuild name:

app-emulation/virtualbox-guest-additions-7.2.12

Description

VirtualBox kernel modules and user-space tools for

Added to portage

2026-07-04

virtualbox-guest-modules - 7.2.12
Ebuild name:

app-emulation/virtualbox-guest-modules-7.2.12

Description

Kernel Modules for Virtualbox Guest Additions

Added to portage

2026-07-04

virtualbox-kvm - 7.2.12_pre20260201
Ebuild name:

app-emulation/virtualbox-kvm-7.2.12_pre20260201

Description

Family of powerful x86 virtualization products for

Added to portage

2026-07-04

virtualbox-modules - 7.2.12
Ebuild name:

app-emulation/virtualbox-modules-7.2.12

Description

Kernel Modules for Virtualbox

Added to portage

2026-07-04

websockets - 16.0-r1
Ebuild name:

dev-python/websockets-16.0-r1

Description

Library for building WebSocket servers and clients in Python

Added to portage

2026-07-04

weston - 15.0.92
Ebuild name:

dev-libs/weston-15.0.92

Description

Wayland reference compositor

Added to portage

2026-07-04

whenever - 0.10.1
Ebuild name:

dev-python/whenever-0.10.1

Description

Modern datetime library for Python

Added to portage

2026-07-04

with-editor - 3.5.2
Ebuild name:

app-emacs/with-editor-3.5.2

Description

Use the Emacsclient as the of child processes

Added to portage

2026-07-04

xmlrpc-c - 1.64.03-r1
Ebuild name:

dev-libs/xmlrpc-c-1.64.03-r1

Description

A lightweight RPC library based on XML and HTTP

Added to portage

2026-07-04

zlib-ng - 1.0.0-r1
Ebuild name:

dev-python/zlib-ng-1.0.0-r1

Description

Drop-in replacement for zlib and gzip modules using zlib-ng

Added to portage

2026-07-04

zope-testing - 6.2
Ebuild name:

dev-python/zope-testing-6.2

Description

Zope testing helpers

Added to portage

2026-07-04

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