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:

83803

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-03-18
Dist-Zilla-Plugin-Test-Compile - 2.59.0
Ebuild name:

dev-perl/Dist-Zilla-Plugin-Test-Compile-2.59.0

Description

Common tests to check syntax of your modules, using

Added to portage

2026-03-18

Dist-Zilla-Plugin-Test-MinimumVersion - 2.0.11
Ebuild name:

dev-perl/Dist-Zilla-Plugin-Test-MinimumVersion-2.0.11

Description

Release tests for minimum required versions

Added to portage

2026-03-18

Dist-Zilla-Plugin-Test-Perl-Critic - 3.5.0
Ebuild name:

dev-perl/Dist-Zilla-Plugin-Test-Perl-Critic-3.5.0

Description

Tests to check your code against best practices

Added to portage

2026-03-18

EV - 4.370.0
Ebuild name:

dev-perl/EV-4.370.0

Description

Perl interface to libev, a high performance full-featured event loop

Added to portage

2026-03-18

Exporter-Tiny - 1.6.3
Ebuild name:

dev-perl/Exporter-Tiny-1.6.3

Description

An exporter with the features of Sub but only core dependencies

Added to portage

2026-03-18

expat - 2.7.5
Ebuild name:

dev-libs/expat-2.7.5

Description

Stream-oriented XML parser library

Added to portage

2026-03-18

libpciaccess - 0.19
Ebuild name:

x11-libs/libpciaccess-0.19

Description

Library providing generic access to the PCI bus and devices

Added to portage

2026-03-18

systemd-initctl - 3
Ebuild name:

sys-apps/systemd-initctl-3

Description

initctl Compatibility Daemon

Added to portage

2026-03-18

2026-03-17
Dist-Zilla-Plugin-ContributorsFile - 0.4.0
Ebuild name:

dev-perl/Dist-Zilla-Plugin-ContributorsFile-0.4.0

Description

Add a file listing all contributors

Added to portage

2026-03-17

Dist-Zilla-Plugin-Git - 2.52.0
Ebuild name:

dev-perl/Dist-Zilla-Plugin-Git-2.52.0

Description

Update your git repository after release

Added to portage

2026-03-17

Dist-Zilla-Plugin-ModuleBuildTiny - 0.20.0
Ebuild name:

dev-perl/Dist-Zilla-Plugin-ModuleBuildTiny-0.20.0

Description

Build a Build.PL that uses Module

Added to portage

2026-03-17

Dist-Zilla-Plugin-PodWeaver - 4.10.0
Ebuild name:

dev-perl/Dist-Zilla-Plugin-PodWeaver-4.10.0

Description

Weave your Pod together from configuration and Dist

Added to portage

2026-03-17

Dist-Zilla-Plugin-ReadmeFromPod - 0.400.0
Ebuild name:

dev-perl/Dist-Zilla-Plugin-ReadmeFromPod-0.400.0

Description

dzil plugin to generate README from POD

Added to portage

2026-03-17

ansible-pylibssh - 1.4.0
Ebuild name:

dev-python/ansible-pylibssh-1.4.0

Description

Python bindings for libssh client specific to Ansible use case

Added to portage

2026-03-17

awscli - 1.44.59
Ebuild name:

app-admin/awscli-1.44.59

Description

Universal Command Line Environment for AWS

Added to portage

2026-03-17

boto3 - 1.42.69
Ebuild name:

dev-python/boto3-1.42.69

Description

The AWS SDK for Python

Added to portage

2026-03-17

botocore - 1.42.69
Ebuild name:

dev-python/botocore-1.42.69

Description

Low-level, data-driven core of boto 3

Added to portage

2026-03-17

claude-code - 2.1.77
Ebuild name:

dev-util/claude-code-2.1.77

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-03-17

clzip - 1.16
Ebuild name:

app-arch/clzip-1.16

Description

C language version of lzip

Added to portage

2026-03-17

difftastic - 0.68.0
Ebuild name:

dev-util/difftastic-0.68.0

Description

A structural diff that understands syntax.

Added to portage

2026-03-17

dovecot - 2.4.2-r3
Ebuild name:

net-mail/dovecot-2.4.2-r3

Description

An IMAP and POP3 server written with security primarily in mind

Added to portage

2026-03-17

elfutils - 0.193-r2
Ebuild name:

dev-libs/elfutils-0.193-r2

Description

Libraries/utilities to handle ELF objects (drop in replacement for libel

Added to portage

2026-03-17

elfutils - 0.194-r1
Ebuild name:

dev-libs/elfutils-0.194-r1

Description

Libraries/utilities to handle ELF objects (drop in replacement for libel

Added to portage

2026-03-17

evisum - 1.0.0
Ebuild name:

sys-process/evisum-1.0.0

Description

System and process monitor written with EFL

Added to portage

2026-03-17

ffmpeg - 8.1
Ebuild name:

media-video/ffmpeg-8.1

Description

Complete solution to record/convert/stream audio and video

Added to portage

2026-03-17

hiredis - 3.3.1
Ebuild name:

dev-python/hiredis-3.3.1

Description

Python extension that wraps hiredis

Added to portage

2026-03-17

libbpf - 1.7.0
Ebuild name:

dev-libs/libbpf-1.7.0

Description

Stand-alone build of libbpf from the Linux kernel

Added to portage

2026-03-17

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-03-17

nerd-icons - 0.1.0
Ebuild name:

app-emacs/nerd-icons-0.1.0

Description

Emacs Nerd Font Icons Library

Added to portage

2026-03-17

obs-studio - 32.1.0
Ebuild name:

media-video/obs-studio-32.1.0

Description

Software for Recording and Streaming Live Video Content

Added to portage

2026-03-17

openfortivpn - 1.24.1
Ebuild name:

net-vpn/openfortivpn-1.24.1

Description

Fortinet compatible VPN client

Added to portage

2026-03-17

pipx - 1.9.0
Ebuild name:

dev-python/pipx-1.9.0

Description

Install and Run Python Applications in Isolated Environments

Added to portage

2026-03-17

plasma-pass - 1.3.0-r1
Ebuild name:

kde-misc/plasma-pass-1.3.0-r1

Description

Plasma applet to access password from pass

Added to portage

2026-03-17

postfix - 3.12_pre20260316
Ebuild name:

mail-mta/postfix-3.12_pre20260316

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-03-17

prek - 0.3.6
Ebuild name:

dev-util/prek-0.3.6

Description

Better `pre-commit`, re-engineered in Rust

Added to portage

2026-03-17

pyasn1 - 0.6.3
Ebuild name:

dev-python/pyasn1-0.6.3

Description

ASN.1 library for Python

Added to portage

2026-03-17

pyproject-fmt - 2.19.0
Ebuild name:

dev-python/pyproject-fmt-2.19.0

Description

Format your pyproject.toml file

Added to portage

2026-03-17

signal-desktop-bin - 8.2.1
Ebuild name:

net-im/signal-desktop-bin-8.2.1

Description

Allows you to send and receive messages of Signal Messenger on your

Added to portage

2026-03-17

simdjson - 4.4.1
Ebuild name:

dev-libs/simdjson-4.4.1

Description

SIMD accelerated C++ JSON library

Added to portage

2026-03-17

simpleeval - 1.0.7
Ebuild name:

dev-python/simpleeval-1.0.7

Description

A simple, safe single expression evaluator library

Added to portage

2026-03-17

solarus-quest-editor - 2.0.3-r1
Ebuild name:

games-misc/solarus-quest-editor-2.0.3-r1

Description

Quest editor for Solarus game engine

Added to portage

2026-03-17

telegram-desktop - 6.6.2
Ebuild name:

net-im/telegram-desktop-6.6.2

Description

Official desktop client for Telegram

Added to portage

2026-03-17

tg_owt - 0_pre20260309
Ebuild name:

media-libs/tg_owt-0_pre20260309

Description

WebRTC build for Telegram

Added to portage

2026-03-17

types-docutils - 0.22.3.20260316
Ebuild name:

dev-python/types-docutils-0.22.3.20260316

Description

Typing stubs for docutils

Added to portage

2026-03-17

util-linux - 2.41.3-r1
Ebuild name:

sys-apps/util-linux-2.41.3-r1

Description

Various useful Linux utilities

Added to portage

2026-03-17

uv - 0.10.11
Ebuild name:

dev-python/uv-0.10.11

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-03-17

uv-build - 0.10.11
Ebuild name:

dev-python/uv-build-0.10.11

Description

PEP517 uv build backend

Added to portage

2026-03-17

uvicorn - 0.42.0
Ebuild name:

dev-python/uvicorn-0.42.0

Description

Lightning-fast ASGI server implementation

Added to portage

2026-03-17

xfconf - 4.21.2
Ebuild name:

xfce-base/xfconf-4.21.2

Description

A configuration management system for Xfce

Added to portage

2026-03-17

xmms2 - 0.9.7
Ebuild name:

media-sound/xmms2-0.9.7

Description

X(cross)platform Music Multiplexing System, next generation of the XMMS pla

Added to portage

2026-03-17

zen-sources - 6.19.8
Ebuild name:

sys-kernel/zen-sources-6.19.8

Description

The Zen Kernel Live Sources

Added to portage

2026-03-17

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