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:

62968

userrating:

average rating: 1.5 (4 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.0 (17 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
2023-06-10
dist-kernel - 5.10.183
Ebuild name:

virtual/dist-kernel-5.10.183

Description

Virtual to depend on any Distribution Kernel

Added to portage

2023-06-10

dist-kernel - 5.15.116
Ebuild name:

virtual/dist-kernel-5.15.116

Description

Virtual to depend on any Distribution Kernel

Added to portage

2023-06-10

dist-kernel - 5.4.246
Ebuild name:

virtual/dist-kernel-5.4.246

Description

Virtual to depend on any Distribution Kernel

Added to portage

2023-06-10

dist-kernel - 6.1.33
Ebuild name:

virtual/dist-kernel-6.1.33

Description

Virtual to depend on any Distribution Kernel

Added to portage

2023-06-10

dist-kernel - 6.3.7
Ebuild name:

virtual/dist-kernel-6.3.7

Description

Virtual to depend on any Distribution Kernel

Added to portage

2023-06-10

gentoo-kernel - 5.10.183
Ebuild name:

sys-kernel/gentoo-kernel-5.10.183

Description

Linux kernel built with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel - 5.15.116
Ebuild name:

sys-kernel/gentoo-kernel-5.15.116

Description

Linux kernel built with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel - 5.4.246
Ebuild name:

sys-kernel/gentoo-kernel-5.4.246

Description

Linux kernel built with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel - 6.1.33
Ebuild name:

sys-kernel/gentoo-kernel-6.1.33

Description

Linux kernel built with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel - 6.3.7
Ebuild name:

sys-kernel/gentoo-kernel-6.3.7

Description

Linux kernel built with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel-bin - 5.10.183
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.183

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel-bin - 5.15.116
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.116

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel-bin - 5.4.246
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.4.246

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel-bin - 6.1.33
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.33

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2023-06-10

gentoo-kernel-bin - 6.3.7
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.3.7

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2023-06-10

libadwaita - 1.3.3
Ebuild name:

gui-libs/libadwaita-1.3.3

Description

Building blocks for modern adaptive GNOME applications

Added to portage

2023-06-10

sc-controller - 0.4.8.11
Ebuild name:

games-util/sc-controller-0.4.8.11

Description

User-mode driver and GTK-based GUI for Steam Controllers and othe

Added to portage

2023-06-10

shut-up - 0.3.3
Ebuild name:

app-emacs/shut-up-0.3.3

Description

Reduce Emacs output of messages

Added to portage

2023-06-10

terraform - 1.4.6
Ebuild name:

app-admin/terraform-1.4.6

Description

A tool for building, changing, and combining infrastructure safely

Added to portage

2023-06-10

vanilla-kernel - 5.10.183
Ebuild name:

sys-kernel/vanilla-kernel-5.10.183

Description

Linux kernel built from vanilla upstream sources

Added to portage

2023-06-10

vanilla-kernel - 5.15.116
Ebuild name:

sys-kernel/vanilla-kernel-5.15.116

Description

Linux kernel built from vanilla upstream sources

Added to portage

2023-06-10

vanilla-kernel - 5.4.246
Ebuild name:

sys-kernel/vanilla-kernel-5.4.246

Description

Linux kernel built from vanilla upstream sources

Added to portage

2023-06-10

vanilla-kernel - 6.1.33
Ebuild name:

sys-kernel/vanilla-kernel-6.1.33

Description

Linux kernel built from vanilla upstream sources

Added to portage

2023-06-10

vanilla-kernel - 6.3.7
Ebuild name:

sys-kernel/vanilla-kernel-6.3.7

Description

Linux kernel built from vanilla upstream sources

Added to portage

2023-06-10

vivaldi - 6.1.3035.51
Ebuild name:

www-client/vivaldi-6.1.3035.51

Description

A browser for our friends

Added to portage

2023-06-10

vivaldi-snapshot - 6.1.3035.50
Ebuild name:

www-client/vivaldi-snapshot-6.1.3035.50

Description

A browser for our friends

Added to portage

2023-06-10

wine-vanilla - 8.10
Ebuild name:

app-emulation/wine-vanilla-8.10

Description

Free implementation of Windows(tm) on Unix, without external patchs

Added to portage

2023-06-10

2023-06-09
acme-sh - 3.0.6
Ebuild name:

app-crypt/acme-sh-3.0.6

Description

A pure Unix shell script implementing ACME client protocol

Added to portage

2023-06-09

anope - 2.0.13
Ebuild name:

net-irc/anope-2.0.13

Description

Anope IRC Services

Added to portage

2023-06-09

aspell-or - 0.03.1-r1
Ebuild name:

app-dicts/aspell-or-0.03.1-r1

Description

Aspell () language dictionary

Added to portage

2023-06-09

awscli - 1.27.150
Ebuild name:

app-admin/awscli-1.27.150

Description

Universal Command Line Environment for AWS

Added to portage

2023-06-09

bedrock-server - 1.20.0.01
Ebuild name:

games-server/bedrock-server-1.20.0.01

Description

The official bedrock (non-java) based server for the sandbox

Added to portage

2023-06-09

boto3 - 1.26.150
Ebuild name:

dev-python/boto3-1.26.150

Description

The AWS SDK for Python

Added to portage

2023-06-09

botocore - 1.29.150
Ebuild name:

dev-python/botocore-1.29.150

Description

Low-level, data-driven core of boto 3

Added to portage

2023-06-09

bunny - 2.21.0
Ebuild name:

dev-ruby/bunny-2.21.0

Description

Another synchronous Ruby AMQP client

Added to portage

2023-06-09

c2ffi - 15.0.0.20230608
Ebuild name:

dev-lisp/c2ffi-15.0.0.20230608

Description

Clang-based FFI wrapper generator for Common Lisp

Added to portage

2023-06-09

chrome-binary-plugins - 115.0.5790.24_beta
Ebuild name:

www-plugins/chrome-binary-plugins-115.0.5790.24_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2023-06-09

chrome-binary-plugins - 116.0.5817.0_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-116.0.5817.0_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2023-06-09

clamtk - 6.16
Ebuild name:

app-antivirus/clamtk-6.16

Description

A graphical front-end for ClamAV

Added to portage

2023-06-09

cmake - 3.27.0_rc1
Ebuild name:

dev-util/cmake-3.27.0_rc1

Description

Cross platform Make

Added to portage

2023-06-09

coreutils - 9.3-r2
Ebuild name:

sys-apps/coreutils-9.3-r2

Description

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

Added to portage

2023-06-09

cppdap - 0_pre20230605-r1
Ebuild name:

dev-cpp/cppdap-0_pre20230605-r1

Description

C++ library for the Debug Adapter Protocol

Added to portage

2023-06-09

cssutils - 2.7.0
Ebuild name:

dev-python/cssutils-2.7.0

Description

A CSS Cascading Style Sheets library

Added to portage

2023-06-09

dbmail - 3.3.1
Ebuild name:

net-mail/dbmail-3.3.1

Description

Fast and scalable sql based email services

Added to portage

2023-06-09

eradicate - 2.3.0
Ebuild name:

dev-python/eradicate-2.3.0

Description

Removes commented-out code from Python files

Added to portage

2023-06-09

fastfetch - 1.11.2
Ebuild name:

app-misc/fastfetch-1.11.2

Description

Fast system information tool

Added to portage

2023-06-09

freeipmi - 1.6.11
Ebuild name:

sys-libs/freeipmi-1.6.11

Description

Provides Remote-Console and System Management Software as per IPMI v1.5/2.

Added to portage

2023-06-09

fuse - 3.15.0
Ebuild name:

sys-fs/fuse-3.15.0

Description

An interface for filesystems implemented in userspace

Added to portage

2023-06-09

gcc - 10.4.1_p20230607
Ebuild name:

sys-devel/gcc-10.4.1_p20230607

Description

The GNU Compiler Collection

Added to portage

2023-06-09

gcc - 11.4.1_p20230608
Ebuild name:

sys-devel/gcc-11.4.1_p20230608

Description

The GNU Compiler Collection

Added to portage

2023-06-09

geekbench - 6.1.0
Ebuild name:

app-benchmarks/geekbench-6.1.0

Description

A Cross-Platform Benchmark for Android, iOS, Linux, MacOS and Window

Added to portage

2023-06-09

gentoo-sources - 4.14.317
Ebuild name:

sys-kernel/gentoo-sources-4.14.317

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2023-06-09

gentoo-sources - 4.19.285
Ebuild name:

sys-kernel/gentoo-sources-4.19.285

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2023-06-09

gentoo-sources - 5.10.183
Ebuild name:

sys-kernel/gentoo-sources-5.10.183

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2023-06-09

gentoo-sources - 5.15.116
Ebuild name:

sys-kernel/gentoo-sources-5.15.116

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2023-06-09

gentoo-sources - 5.4.246
Ebuild name:

sys-kernel/gentoo-sources-5.4.246

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2023-06-09

gentoo-sources - 6.1.33
Ebuild name:

sys-kernel/gentoo-sources-6.1.33

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2023-06-09

gentoo-sources - 6.3.7
Ebuild name:

sys-kernel/gentoo-sources-6.3.7

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2023-06-09

goawk - 1.23.2
Ebuild name:

sys-apps/goawk-1.23.2

Description

POSIX-compliant AWK interpreter written in Go, with CSV support

Added to portage

2023-06-09

google-chrome-beta - 115.0.5790.24
Ebuild name:

www-client/google-chrome-beta-115.0.5790.24

Description

The web browser from Google

Added to portage

2023-06-09

google-chrome-unstable - 116.0.5817.0
Ebuild name:

www-client/google-chrome-unstable-116.0.5817.0

Description

The web browser from Google

Added to portage

2023-06-09

grafana-bin - 9.3.15
Ebuild name:

www-apps/grafana-bin-9.3.15

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2023-06-09

grafana-bin - 9.4.12
Ebuild name:

www-apps/grafana-bin-9.4.12

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2023-06-09

grafana-bin - 9.5.3
Ebuild name:

www-apps/grafana-bin-9.5.3

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenT

Added to portage

2023-06-09

hydrogen - 1.2.1
Ebuild name:

media-sound/hydrogen-1.2.1

Description

Advanced drum machine

Added to portage

2023-06-09

hypothesis - 6.77.0
Ebuild name:

dev-python/hypothesis-6.77.0

Description

A library for property based testing

Added to portage

2023-06-09

imagemagick - 6.9.12.89-r1
Ebuild name:

media-gfx/imagemagick-6.9.12.89-r1

Description

A collection of tools and libraries for many image formats

Added to portage

2023-06-09

imagemagick - 7.1.1.11-r1
Ebuild name:

media-gfx/imagemagick-7.1.1.11-r1

Description

A collection of tools and libraries for many image formats

Added to portage

2023-06-09

iso8601 - 2.0.0
Ebuild name:

dev-python/iso8601-2.0.0

Description

Simple module to parse ISO 8601 dates

Added to portage

2023-06-09

jupyterlab - 4.0.2
Ebuild name:

dev-python/jupyterlab-4.0.2

Description

JupyterLab computational environment

Added to portage

2023-06-09

mattermost-desktop-bin - 5.4.0_rc2
Ebuild name:

net-im/mattermost-desktop-bin-5.4.0_rc2

Description

Mattermost Desktop application

Added to portage

2023-06-09

microsoft-edge - 114.0.1823.43
Ebuild name:

www-client/microsoft-edge-114.0.1823.43

Description

The web browser from Microsoft

Added to portage

2023-06-09

microsoft-edge-beta - 114.0.1823.41
Ebuild name:

www-client/microsoft-edge-beta-114.0.1823.41

Description

The web browser from Microsoft

Added to portage

2023-06-09

microsoft-edge-beta - 114.0.1823.43
Ebuild name:

www-client/microsoft-edge-beta-114.0.1823.43

Description

The web browser from Microsoft

Added to portage

2023-06-09

minecraft-server - 1.20
Ebuild name:

games-server/minecraft-server-1.20

Description

The official server for the sandbox video game

Added to portage

2023-06-09

moar - 1.15.2
Ebuild name:

sys-apps/moar-1.15.2

Description

A pager designed to do the right thing without any configuration

Added to portage

2023-06-09

mozc - 2.28.5029.102
Ebuild name:

app-i18n/mozc-2.28.5029.102

Description

Mozc - Japanese input method editor

Added to portage

2023-06-09

openpgp-keys-apache-tomcat - 9.0.76
Ebuild name:

sec-keys/openpgp-keys-apache-tomcat-9.0.76

Description

OpenPGP keys used by tomcat.apache.org

Added to portage

2023-06-09

opera - 99.0.4788.65
Ebuild name:

www-client/opera-99.0.4788.65

Description

A fast and secure web browser

Added to portage

2023-06-09

pallets-sphinx-themes - 2.1.1
Ebuild name:

dev-python/pallets-sphinx-themes-2.1.1

Description

Sphinx themes for Pallets and related projects

Added to portage

2023-06-09

parser - 3.2.2.3
Ebuild name:

dev-ruby/parser-3.2.2.3

Description

A production-ready Ruby parser written in pure Ruby

Added to portage

2023-06-09

plotly - 5.15.0
Ebuild name:

dev-python/plotly-5.15.0

Description

Browser-based graphing library for Python

Added to portage

2023-06-09

portage - 3.0.48.1-r1
Ebuild name:

sys-apps/portage-3.0.48.1-r1

Description

The package management and distribution system for Gentoo

Added to portage

2023-06-09

puppet-lint - 4.0.0
Ebuild name:

app-admin/puppet-lint-4.0.0

Description

A linter for puppet DSL

Added to portage

2023-06-09

qtkeychain - 0.14.1
Ebuild name:

dev-libs/qtkeychain-0.14.1

Description

Qt API for storing passwords securely

Added to portage

2023-06-09

renderdoc - 1.27
Ebuild name:

media-gfx/renderdoc-1.27

Description

A stand-alone graphics debugging tool

Added to portage

2023-06-09

reportlab - 4.0.4
Ebuild name:

dev-python/reportlab-4.0.4

Description

Tools for generating printable PDF documents from any data source

Added to portage

2023-06-09

requests-mock - 1.11.0
Ebuild name:

dev-python/requests-mock-1.11.0

Description

Mock out responses from the requests package

Added to portage

2023-06-09

ruff - 0.0.272
Ebuild name:

dev-util/ruff-0.0.272

Description

An extremely fast Python linter, written in Rust

Added to portage

2023-06-09

rust-bin - 1.70.0-r2
Ebuild name:

dev-lang/rust-bin-1.70.0-r2

Description

Systems programming language from Mozilla

Added to portage

2023-06-09

signal-desktop-bin - 6.20.2
Ebuild name:

net-im/signal-desktop-bin-6.20.2

Description

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

Added to portage

2023-06-09

slime - 2.27
Ebuild name:

app-emacs/slime-2.27

Description

SLIME, the Superior Lisp Interaction Mode (Extended)

Added to portage

2023-06-09

slime - 2.28
Ebuild name:

app-emacs/slime-2.28

Description

SLIME, the Superior Lisp Interaction Mode (Extended)

Added to portage

2023-06-09

sly - 1.0.43
Ebuild name:

app-emacs/sly-1.0.43

Description

Sylvester the Cat's Common Lisp IDE for GNU Emacs

Added to portage

2023-06-09

tempest - 35.0.0
Ebuild name:

dev-python/tempest-35.0.0

Description

OpenStack Integration Testing

Added to portage

2023-06-09

tomcat - 9.0.76
Ebuild name:

www-servers/tomcat-9.0.76

Description

Tomcat Servlet-4.0/JSP-2.3/EL-3.0/WebSocket-1.1/JASPIC-1.1 Container

Added to portage

2023-06-09

vanilla-sources - 4.14.317
Ebuild name:

sys-kernel/vanilla-sources-4.14.317

Description

Full sources for the Linux kernel

Added to portage

2023-06-09

vanilla-sources - 4.19.285
Ebuild name:

sys-kernel/vanilla-sources-4.19.285

Description

Full sources for the Linux kernel

Added to portage

2023-06-09

vanilla-sources - 5.10.183
Ebuild name:

sys-kernel/vanilla-sources-5.10.183

Description

Full sources for the Linux kernel

Added to portage

2023-06-09

vanilla-sources - 5.15.116
Ebuild name:

sys-kernel/vanilla-sources-5.15.116

Description

Full sources for the Linux kernel

Added to portage

2023-06-09

vanilla-sources - 5.4.246
Ebuild name:

sys-kernel/vanilla-sources-5.4.246

Description

Full sources for the Linux kernel

Added to portage

2023-06-09

vanilla-sources - 6.1.33
Ebuild name:

sys-kernel/vanilla-sources-6.1.33

Description

Full sources for the Linux kernel

Added to portage

2023-06-09

vanilla-sources - 6.3.7
Ebuild name:

sys-kernel/vanilla-sources-6.3.7

Description

Full sources for the Linux kernel

Added to portage

2023-06-09

websocket-client - 1.5.3
Ebuild name:

dev-python/websocket-client-1.5.3

Description

WebSocket client for python with hybi13 support

Added to portage

2023-06-09

werkzeug - 2.3.6
Ebuild name:

dev-python/werkzeug-2.3.6

Description

Collection of various utilities for WSGI applications

Added to portage

2023-06-09

zenity - 3.99.0
Ebuild name:

gnome-extra/zenity-3.99.0

Description

Tool to display dialogs from the commandline and shell scripts

Added to portage

2023-06-09

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 50.9 ms