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:

58131

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
2021-06-14
HTML-Scrubber - 0.190.0
Ebuild name:

dev-perl/HTML-Scrubber-0.190.0

Description

Perl extension for scrubbing/sanitizing html

Added to portage

2021-06-14

HTML-TableContentParser - 0.304.0
Ebuild name:

dev-perl/HTML-TableContentParser-0.304.0

Description

Do interesting things with the contents of tables

Added to portage

2021-06-14

HTML-TableParser - 0.430.0
Ebuild name:

dev-perl/HTML-TableParser-0.430.0

Description

Extract data from an HTML table

Added to portage

2021-06-14

HTML-TagFilter - 1.30.0-r1
Ebuild name:

dev-perl/HTML-TagFilter-1.30.0-r1

Description

A fine-grained html-filter, xss-blocker and mailto-obfuscator

Added to portage

2021-06-14

HTML-Tagset - 3.200.0-r2
Ebuild name:

dev-perl/HTML-Tagset-3.200.0-r2

Description

Data tables useful in parsing HTML

Added to portage

2021-06-14

containerd - 1.5.2
Ebuild name:

app-emulation/containerd-1.5.2

Description

A daemon to control runC

Added to portage

2021-06-14

dasel - 1.15.0
Ebuild name:

app-misc/dasel-1.15.0

Description

Query, update and convert data structures from the command line

Added to portage

2021-06-14

energi3 - 0
Ebuild name:

acct-group/energi3-0

Description

Group for system-wide net-p2p/energi3

Added to portage

2021-06-14

energi3 - 0
Ebuild name:

acct-user/energi3-0

Description

User for net-p2p/energi3

Added to portage

2021-06-14

energi3 - 3.0.8
Ebuild name:

net-p2p/energi3-3.0.8

Description

Official golang implementation of the Energi Core

Added to portage

2021-06-14

energi3 - 9999
Ebuild name:

net-p2p/energi3-9999

Description

Official golang implementation of the Energi Core

Added to portage

2021-06-14

facter - 3.14.18
Ebuild name:

dev-ruby/facter-3.14.18

Description

Added to portage

2021-06-14

fritzconnection - 1.5.0
Ebuild name:

dev-python/fritzconnection-1.5.0

Description

Lib/tool to communicate with AVM FRITZ devices using TR-064 protoc

Added to portage

2021-06-14

git-sources - 5.13_rc6
Ebuild name:

sys-kernel/git-sources-5.13_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2021-06-14

gjs - 1.68.1-r1
Ebuild name:

dev-libs/gjs-1.68.1-r1

Description

Javascript bindings for GNOME

Added to portage

2021-06-14

glib - 2.68.2-r1
Ebuild name:

dev-libs/glib-2.68.2-r1

Description

The GLib library of C routines

Added to portage

2021-06-14

glib - 2.68.3-r1
Ebuild name:

dev-libs/glib-2.68.3-r1

Description

The GLib library of C routines

Added to portage

2021-06-14

gnome-software - 40.2-r1
Ebuild name:

gnome-extra/gnome-software-40.2-r1

Description

Gnome install & update software

Added to portage

2021-06-14

gtk - 4.2.1-r1
Ebuild name:

gui-libs/gtk-4.2.1-r1

Description

GTK is a multi-platform toolkit for creating graphical user interfaces

Added to portage

2021-06-14

jpipe - 0.0.1
Ebuild name:

app-misc/jpipe-0.0.1

Description

A python implementation of the jp CLI for JMESPath

Added to portage

2021-06-14

leatherman - 1.12.5
Ebuild name:

dev-libs/leatherman-1.12.5

Description

A C++ toolkit

Added to portage

2021-06-14

libsoup - 2.72.0-r1
Ebuild name:

net-libs/libsoup-2.72.0-r1

Description

HTTP client/server library for GNOME

Added to portage

2021-06-14

pango - 1.48.5-r1
Ebuild name:

x11-libs/pango-1.48.5-r1

Description

Internationalized text layout and rendering library

Added to portage

2021-06-14

pms - 8_p20210613
Ebuild name:

app-doc/pms-8_p20210613

Description

Gentoo Package Manager Specification

Added to portage

2021-06-14

pms-bin - 8_p20210613
Ebuild name:

app-doc/pms-bin-8_p20210613

Description

Gentoo Package Manager Specification

Added to portage

2021-06-14

portage - 3.0.20
Ebuild name:

sys-apps/portage-3.0.20

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2021-06-14

protontricks - 1.5.2
Ebuild name:

app-emulation/protontricks-1.5.2

Description

app-emulation/winetricks wrapper for Proton (Steam Play) games

Added to portage

2021-06-14

red-colors - 0.2.0
Ebuild name:

dev-ruby/red-colors-0.2.0

Description

Color features for Ruby

Added to portage

2021-06-14

sssd - 2.5.1
Ebuild name:

sys-auth/sssd-2.5.1

Description

System Security Services Daemon provides access to identity and authentication

Added to portage

2021-06-14

sword-FreLSN1872 - 1.0
Ebuild name:

app-dicts/sword-FreLSN1872-1.0

Description

Bible de Lausanne (1872)

Added to portage

2021-06-14

sword-FreLXX - 1.1
Ebuild name:

app-dicts/sword-FreLXX-1.1

Description

Traduction de la LXX par P. GIGUET et autres traducteurs, 1872.

Added to portage

2021-06-14

sysprof - 3.38.1-r1
Ebuild name:

dev-util/sysprof-3.38.1-r1

Description

System-wide Linux Profiler

Added to portage

2021-06-14

sysprof - 3.40.1-r1
Ebuild name:

dev-util/sysprof-3.40.1-r1

Description

System-wide Linux Profiler

Added to portage

2021-06-14

webmozart-assert - 1.10.0
Ebuild name:

dev-php/webmozart-assert-1.10.0

Description

Assertions to validate method input/output with nice error messages

Added to portage

2021-06-14

websocket-driver - 0.7.5
Ebuild name:

dev-ruby/websocket-driver-0.7.5

Description

A complete implementation of the WebSocket protocols

Added to portage

2021-06-14

xscreensaver - 6.01
Ebuild name:

x11-misc/xscreensaver-6.01

Description

modular screen saver and locker for the X Window System

Added to portage

2021-06-14

2021-06-13
Clone-Choose - 0.10.0
Ebuild name:

dev-perl/Clone-Choose-0.10.0

Description

Choose appropriate clone utility

Added to portage

2021-06-13

Frontier-RPC - 0.07_beta4-r4
Ebuild name:

dev-perl/Frontier-RPC-0.07_beta4-r4

Description

Perform remote procedure calls using extensible markup language

Added to portage

2021-06-13

Gtk2-Unique - 0.70.0
Ebuild name:

dev-perl/Gtk2-Unique-0.70.0

Description

Perl binding for C libunique library

Added to portage

2021-06-13

Gtk3 - 0.38.0
Ebuild name:

dev-perl/Gtk3-0.38.0

Description

Perl interface to the 3.x series of the gtk+ toolkit

Added to portage

2021-06-13

Gtk3-SimpleList - 0.210.0
Ebuild name:

dev-perl/Gtk3-SimpleList-0.210.0

Description

A simple interface to GTK+ 3's complex MVC list widget

Added to portage

2021-06-13

Guard - 1.23.0-r1
Ebuild name:

dev-perl/Guard-1.23.0-r1

Description

Safe cleanup blocks

Added to portage

2021-06-13

HTML-Clean - 1.400.0
Ebuild name:

dev-perl/HTML-Clean-1.400.0

Description

Cleans up HTML code for web browsers, not humans

Added to portage

2021-06-13

HTML-Element-Extended - 1.180.0-r2
Ebuild name:

dev-perl/HTML-Element-Extended-1.180.0-r2

Description

Extension for manipulating a table composed of HTML style

Added to portage

2021-06-13

HTML-FillInForm - 2.210.0-r1
Ebuild name:

dev-perl/HTML-FillInForm-2.210.0-r1

Description

Populates HTML Forms with data

Added to portage

2021-06-13

HTML-Form - 6.70.0
Ebuild name:

dev-perl/HTML-Form-6.70.0

Description

Class that represents an HTML form element

Added to portage

2021-06-13

HTML-FormatText-WithLinks - 0.150.0-r2
Ebuild name:

dev-perl/HTML-FormatText-WithLinks-0.150.0-r2

Description

HTML to text conversion with links as footnotes

Added to portage

2021-06-13

HTML-HTMLDoc - 0.210.0
Ebuild name:

dev-perl/HTML-HTMLDoc-0.210.0

Description

Perl interface to the htmldoc program for producing PDF-Files from HT

Added to portage

2021-06-13

HTML-Highlight - 0.200.0-r1
Ebuild name:

dev-perl/HTML-Highlight-0.200.0-r1

Description

A module to highlight words or patterns in HTML documents

Added to portage

2021-06-13

HTML-Mason - 1.590.0
Ebuild name:

dev-perl/HTML-Mason-1.590.0

Description

A HTML development and delivery Perl Module

Added to portage

2021-06-13

HTML-Object - 2.30
Ebuild name:

dev-perl/HTML-Object-2.30

Description

A HTML development and delivery Perl Module

Added to portage

2021-06-13

HTML-Packer - 2.100.0
Ebuild name:

dev-perl/HTML-Packer-2.100.0

Description

Another HTML code cleaner

Added to portage

2021-06-13

HTML-Parser - 3.760.0
Ebuild name:

dev-perl/HTML-Parser-3.760.0

Description

Parse HTML documents

Added to portage

2021-06-13

Hash-Merge - 0.302.0
Ebuild name:

dev-perl/Hash-Merge-0.302.0

Description

Merges arbitrarily deep hashes into a single hash

Added to portage

2021-06-13

Hash-MoreUtils - 0.60.0
Ebuild name:

dev-perl/Hash-MoreUtils-0.60.0

Description

Provide the stuff missing in Hash

Added to portage

2021-06-13

Hash-MultiValue - 0.160.0-r1
Ebuild name:

dev-perl/Hash-MultiValue-0.160.0-r1

Description

Store multiple values per key

Added to portage

2021-06-13

Type-Tiny - 1.12.3
Ebuild name:

dev-perl/Type-Tiny-1.12.3

Description

tiny, yet Moo(se)-compatible type constraint

Added to portage

2021-06-13

Type-Tiny-XS - 0.22.0
Ebuild name:

dev-perl/Type-Tiny-XS-0.22.0

Description

provides an XS boost for some of Type built-in type constraints

Added to portage

2021-06-13

alertmanager - 0.22.2
Ebuild name:

app-metrics/alertmanager-0.22.2

Description

Alertmanager for alerts sent by client applications such as Prometh

Added to portage

2021-06-13

baselayout - 2.7-r3
Ebuild name:

sys-apps/baselayout-2.7-r3

Description

Filesystem baselayout and init scripts

Added to portage

2021-06-13

benchmark - 1.5.5
Ebuild name:

dev-cpp/benchmark-1.5.5

Description

A microbenchmark support library

Added to portage

2021-06-13

blktrace - 1.2.0_p20210419122502
Ebuild name:

sys-block/blktrace-1.2.0_p20210419122502

Description

show detailed info about what is happening on a block devi

Added to portage

2021-06-13

clanlib - 4.1.0
Ebuild name:

dev-games/clanlib-4.1.0

Description

Multi-platform game development library

Added to portage

2021-06-13

csound - 6.16.0
Ebuild name:

media-sound/csound-6.16.0

Description

Sound design and signal processing system for composition and performance

Added to portage

2021-06-13

csound-manual - 6.16
Ebuild name:

app-doc/csound-manual-6.16

Description

The Csound reference manual

Added to portage

2021-06-13

database_cleaner - 2.0.1
Ebuild name:

dev-ruby/database_cleaner-2.0.1

Description

Strategies for cleaning databases

Added to portage

2021-06-13

database_cleaner-active_record - 2.0.1
Ebuild name:

dev-ruby/database_cleaner-active_record-2.0.1

Description

Strategies for cleaning databases using ActiveRecord

Added to portage

2021-06-13

database_cleaner-core - 2.0.1
Ebuild name:

dev-ruby/database_cleaner-core-2.0.1

Description

Strategies for cleaning databases

Added to portage

2021-06-13

debug_inspector - 1.1.0
Ebuild name:

dev-ruby/debug_inspector-1.1.0

Description

A Ruby wrapper for the MRI 2.0 debug_inspector API

Added to portage

2021-06-13

fbzx - 4.8.0
Ebuild name:

games-emulation/fbzx-4.8.0

Description

Full Screen Sinclair Spectrum emulator

Added to portage

2021-06-13

feedparser - 6.0.3
Ebuild name:

dev-python/feedparser-6.0.3

Description

Parse RSS and Atom feeds in Python

Added to portage

2021-06-13

flrig - 1.4.0
Ebuild name:

media-radio/flrig-1.4.0

Description

Transceiver control program for Amateur Radio use

Added to portage

2021-06-13

fuse - 3.10.4
Ebuild name:

sys-fs/fuse-3.10.4

Description

An interface for filesystems implemented in userspace

Added to portage

2021-06-13

fuse-common - 3.10.4
Ebuild name:

sys-fs/fuse-common-3.10.4

Description

Common files for multiple slots of sys-fs/fuse

Added to portage

2021-06-13

genfstab - 24
Ebuild name:

sys-fs/genfstab-24

Description

Genfstab - generate output suitable for addition to an fstab file

Added to portage

2021-06-13

git-flow - 1.12.3-r1
Ebuild name:

dev-vcs/git-flow-1.12.3-r1

Description

Git extensions to provide high-level repository operations

Added to portage

2021-06-13

goland - 2021.1.3
Ebuild name:

dev-util/goland-2021.1.3

Description

Golang IDE by JetBrains

Added to portage

2021-06-13

graphics - 5.1.1-r1
Ebuild name:

dev-ml/graphics-5.1.1-r1

Description

The OCaml graphics library

Added to portage

2021-06-13

humanize - 3.8.0
Ebuild name:

dev-python/humanize-3.8.0

Description

Common humanization utilities

Added to portage

2021-06-13

hwids - 20210613
Ebuild name:

sys-apps/hwids-20210613

Description

Hardware (PCI, USB, OUI, IAB) IDs databases

Added to portage

2021-06-13

ipv6calc - 3.1.1
Ebuild name:

net-misc/ipv6calc-3.1.1

Description

IPv6 address calculator

Added to portage

2021-06-13

jp - 0.1.3
Ebuild name:

app-misc/jp-0.1.3

Description

Command line interface to JMESPath

Added to portage

2021-06-13

live - 2021.05.22
Ebuild name:

media-plugins/live-2021.05.22

Description

Libraries for standards-based RTP/RTCP/RTSP multimedia streaming

Added to portage

2021-06-13

meson - 0.58.1
Ebuild name:

dev-util/meson-0.58.1

Description

Open source build system

Added to portage

2021-06-13

moto - 2.0.9
Ebuild name:

dev-python/moto-2.0.9

Description

Mock library for boto

Added to portage

2021-06-13

musl-nscd - 1.0.3
Ebuild name:

sys-libs/musl-nscd-1.0.3

Description

musl-nscd is an implementation of the NSCD protocol for the musl libc

Added to portage

2021-06-13

mutt - 2.1.0
Ebuild name:

mail-client/mutt-2.1.0

Description

A small but very powerful text-based mail client

Added to portage

2021-06-13

newsboat - 2.23
Ebuild name:

net-news/newsboat-2.23

Description

An RSS/Atom feed reader for text terminals

Added to portage

2021-06-13

notmuch - 0.32.1
Ebuild name:

net-mail/notmuch-0.32.1

Description

Thread-based e-mail indexer, supporting quick search and tagging

Added to portage

2021-06-13

path-py - 16.0.0
Ebuild name:

dev-python/path-py-16.0.0

Description

A module wrapper for os.path

Added to portage

2021-06-13

piper - 0.5.1-r1
Ebuild name:

app-misc/piper-0.5.1-r1

Description

GTK configuration application for libratbag

Added to portage

2021-06-13

python-email-validator - 1.1.3
Ebuild name:

dev-python/python-email-validator-1.1.3

Description

A robust email syntax and deliverability validation library

Added to portage

2021-06-13

rng-tools - 6.13
Ebuild name:

sys-apps/rng-tools-6.13

Description

Daemon to use hardware random number generators

Added to portage

2021-06-13

swi-prolog - 8.3.25
Ebuild name:

dev-lang/swi-prolog-8.3.25

Description

Versatile implementation of the Prolog programming language

Added to portage

2021-06-13

sword-FreLXX - 1.1
Ebuild name:

app-dicts/sword-FreLXX-1.1

Description

Traduction de la LXX par P. GIGUET et autres traducteurs, 1872.

Added to portage

2021-06-13

sword-FreOltramare1874 - 1.0.3
Ebuild name:

app-dicts/sword-FreOltramare1874-1.0.3

Description

Le Nouveau Testament Version Oltramare 1874

Added to portage

2021-06-13

sword-FrePGR - 1.2
Ebuild name:

app-dicts/sword-FrePGR-1.2

Description

Bible Perret-Gentil et Rilliet

Added to portage

2021-06-13

sword-FrePilgrim - 1.0
Ebuild name:

app-dicts/sword-FrePilgrim-1.0

Description

The Pilgrim's Progress in French

Added to portage

2021-06-13

sword-FreSegond1910 - 3.1
Ebuild name:

app-dicts/sword-FreSegond1910-3.1

Description

French Bible Louis Segond (1910)

Added to portage

2021-06-13

tmux - 3.2a
Ebuild name:

app-misc/tmux-3.2a

Description

Terminal multiplexer

Added to portage

2021-06-13

tqdm - 4.61.1
Ebuild name:

dev-python/tqdm-4.61.1

Description

Add a progress meter to your loops in a second

Added to portage

2021-06-13

tracker - 3.1.2
Ebuild name:

app-misc/tracker-3.1.2

Description

A tagging metadata database, search tool and indexer

Added to portage

2021-06-13

tracker-miners - 3.1.2
Ebuild name:

app-misc/tracker-miners-3.1.2

Description

Collection of data extractors for Tracker/Nepomuk

Added to portage

2021-06-13

vivaldi - 4.0.2312.27
Ebuild name:

www-client/vivaldi-4.0.2312.27

Description

A browser for our friends

Added to portage

2021-06-13

why3-for-spark - 2021
Ebuild name:

sci-mathematics/why3-for-spark-2021

Description

Platform for deductive program verification

Added to portage

2021-06-13

zeppelin - 0-r1
Ebuild name:

acct-group/zeppelin-0-r1

Description

Group for system-wide www-apps/zeppelin-bin

Added to portage

2021-06-13

zeppelin - 0-r1
Ebuild name:

acct-user/zeppelin-0-r1

Description

User for system-wide www-apps/zeppelin-bin

Added to portage

2021-06-13

zeppelin-bin - 0.8.2-r1
Ebuild name:

www-apps/zeppelin-bin-0.8.2-r1

Description

Web-based interactive data analytics notebook launcher

Added to portage

2021-06-13

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: 90.0 ms