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:

84659

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

5. Practice Lesson #2


In this lesson we will set up vi configuration file .exrc
and will test the configuration.


Also, in this lesson we will no longer follow the
Action/Verification exercise structure. You should be
sufficiently comfortable with vi by now to successfully complete
the exercises on your own.


Open vi on a blank file:



$ vi

Type commands :set all and press Enter.
You are likely to see something similar to the following:



noaltwerase noextended matchtime=7 report=5 term="xterm"
autoindent filec="" mesg noruler noterse
autoprint flash nomodeline scroll=24 notildeop
noautowrite nogtagsmode noprint="" nosearchincr timeout
backup="" hardtabs=0 nonumber nosecure nottywerase
nobeautify noiclower nooctal shiftwidth=8 noverbose
cdpath=":" ignorecase open noshowmatch warn
cedit="" keytime=6 optimize noshowmode window=48
columns=80 noleftright path="" sidescroll=16 nowindowname
nocomment lines=50 print="" noslowopen wraplen=0
noedcompatible nolisp prompt nosourceany wrapmargin=15
escapetime=6 nolist noreadonly tabstop=8 wrapscan
noerrorbells lock noredraw taglength=0 nowriteany
noexrc magic remap tags="tags"
directory="/tmp"
msgcat="/usr/share/vi/catalog/"
paragraphs="IPLPPPQPP LIpplpipbp"
recdir="/var/tmp/vi.recover"
sections="NHSHH HUnhsh"
shell="/usr/local/bin/bash"
shellmeta="~{[*?$`'"\"

These are vi environment variables. They can be modified through
the :set commands. In this practice we will configure only
a few of those variables. You are encouraged to experiment with
others.


Exit vi. Make sure you are in your home directory. The easiest
way is to do that is to execute cd with no arguments at
the UNIX command prompt. Now open the .exrc file:



$ vi .exrc

If your .exrc file is not blank, exit, back it up first
and start from scratch. Now create six entries exactly as described
above in Section 4: Startup File. Save, and open
vi with no arguments. Type text without hitting Enter
key. It should wrap around 72nd column. Indent one of the lines
with the Tab key. Continue typing on the same line.
It should wrap and start on the left side aligned with the previous
indentation. Now join two of the lines using J command.
Go to the beginning of the joined line and press function key 4. If
your terminal is set up properly, and the fmt utility
is present in your distribution, your paragraph should be reformatted.


Type a couple of lines and intentionally misspell "customer" as
"cutsomer" and "the" as "teh". Watch your text as it is corrected
on the fly.


This concludes our practice. The remainder of this document is
left up to the reader to practice at his convenience.


End Of Practice Lesson #2



/* 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 (35 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-04-27
blake3 - 1.8.5
Ebuild name:

dev-libs/blake3-1.8.5

Description

a fast cryptographic hash function

Added to portage

2026-04-27

fluidsynth - 2.5.4
Ebuild name:

media-sound/fluidsynth-2.5.4

Description

Software real-time synthesizer based on the Soundfont 2 specifications

Added to portage

2026-04-27

gpsd - 3.27.5
Ebuild name:

sci-geosciences/gpsd-3.27.5

Description

GPS daemon and library for USB/serial GPS devices and GPS/mapping clien

Added to portage

2026-04-27

nxml-libvirt-schemas - 12.0.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-12.0.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-04-27

openpgp-keys-garyemiller - 20230413
Ebuild name:

sec-keys/openpgp-keys-garyemiller-20230413

Description

OpenPGP key for Gary E. Miller

Added to portage

2026-04-27

selinux-accountsd - 2.20250213_p1
Ebuild name:

sec-policy/selinux-accountsd-2.20250213_p1

Description

SELinux policy for accountsd

Added to portage

2026-04-27

selinux-accountsd - 2.20250618_p1
Ebuild name:

sec-policy/selinux-accountsd-2.20250618_p1

Description

SELinux policy for accountsd

Added to portage

2026-04-27

selinux-acct - 2.20250213_p1
Ebuild name:

sec-policy/selinux-acct-2.20250213_p1

Description

SELinux policy for acct

Added to portage

2026-04-27

selinux-acct - 2.20250618_p1
Ebuild name:

sec-policy/selinux-acct-2.20250618_p1

Description

SELinux policy for acct

Added to portage

2026-04-27

selinux-afs - 2.20250213_p1
Ebuild name:

sec-policy/selinux-afs-2.20250213_p1

Description

SELinux policy for afs

Added to portage

2026-04-27

selinux-afs - 2.20250618_p1
Ebuild name:

sec-policy/selinux-afs-2.20250618_p1

Description

SELinux policy for afs

Added to portage

2026-04-27

selinux-aide - 2.20250213_p1
Ebuild name:

sec-policy/selinux-aide-2.20250213_p1

Description

SELinux policy for aide

Added to portage

2026-04-27

selinux-aide - 2.20250618_p1
Ebuild name:

sec-policy/selinux-aide-2.20250618_p1

Description

SELinux policy for aide

Added to portage

2026-04-27

selinux-alsa - 2.20250213_p1
Ebuild name:

sec-policy/selinux-alsa-2.20250213_p1

Description

SELinux policy for alsa

Added to portage

2026-04-27

selinux-alsa - 2.20250618_p1
Ebuild name:

sec-policy/selinux-alsa-2.20250618_p1

Description

SELinux policy for alsa

Added to portage

2026-04-27

selinux-amanda - 2.20250213_p1
Ebuild name:

sec-policy/selinux-amanda-2.20250213_p1

Description

SELinux policy for amanda

Added to portage

2026-04-27

selinux-amanda - 2.20250618_p1
Ebuild name:

sec-policy/selinux-amanda-2.20250618_p1

Description

SELinux policy for amanda

Added to portage

2026-04-27

selinux-amavis - 2.20250213_p1
Ebuild name:

sec-policy/selinux-amavis-2.20250213_p1

Description

SELinux policy for amavis

Added to portage

2026-04-27

selinux-amavis - 2.20250618_p1
Ebuild name:

sec-policy/selinux-amavis-2.20250618_p1

Description

SELinux policy for amavis

Added to portage

2026-04-27

selinux-android - 2.20250213_p1
Ebuild name:

sec-policy/selinux-android-2.20250213_p1

Description

SELinux policy for android

Added to portage

2026-04-27

selinux-android - 2.20250618_p1
Ebuild name:

sec-policy/selinux-android-2.20250618_p1

Description

SELinux policy for android

Added to portage

2026-04-27

selinux-apache - 2.20250213_p1
Ebuild name:

sec-policy/selinux-apache-2.20250213_p1

Description

SELinux policy for apache

Added to portage

2026-04-27

selinux-apache - 2.20250618_p1
Ebuild name:

sec-policy/selinux-apache-2.20250618_p1

Description

SELinux policy for apache

Added to portage

2026-04-27

selinux-apcupsd - 2.20250213_p1
Ebuild name:

sec-policy/selinux-apcupsd-2.20250213_p1

Description

SELinux policy for apcupsd

Added to portage

2026-04-27

selinux-apcupsd - 2.20250618_p1
Ebuild name:

sec-policy/selinux-apcupsd-2.20250618_p1

Description

SELinux policy for apcupsd

Added to portage

2026-04-27

selinux-apm - 2.20250213_p1
Ebuild name:

sec-policy/selinux-apm-2.20250213_p1

Description

SELinux policy for acpi

Added to portage

2026-04-27

selinux-apm - 2.20250618_p1
Ebuild name:

sec-policy/selinux-apm-2.20250618_p1

Description

SELinux policy for acpi

Added to portage

2026-04-27

selinux-arpwatch - 2.20250213_p1
Ebuild name:

sec-policy/selinux-arpwatch-2.20250213_p1

Description

SELinux policy for arpwatch

Added to portage

2026-04-27

selinux-arpwatch - 2.20250618_p1
Ebuild name:

sec-policy/selinux-arpwatch-2.20250618_p1

Description

SELinux policy for arpwatch

Added to portage

2026-04-27

selinux-asterisk - 2.20250213_p1
Ebuild name:

sec-policy/selinux-asterisk-2.20250213_p1

Description

SELinux policy for asterisk

Added to portage

2026-04-27

selinux-asterisk - 2.20250618_p1
Ebuild name:

sec-policy/selinux-asterisk-2.20250618_p1

Description

SELinux policy for asterisk

Added to portage

2026-04-27

selinux-at - 2.20250213_p1
Ebuild name:

sec-policy/selinux-at-2.20250213_p1

Description

SELinux policy for at

Added to portage

2026-04-27

selinux-at - 2.20250618_p1
Ebuild name:

sec-policy/selinux-at-2.20250618_p1

Description

SELinux policy for at

Added to portage

2026-04-27

selinux-automount - 2.20250213_p1
Ebuild name:

sec-policy/selinux-automount-2.20250213_p1

Description

SELinux policy for automount

Added to portage

2026-04-27

selinux-automount - 2.20250618_p1
Ebuild name:

sec-policy/selinux-automount-2.20250618_p1

Description

SELinux policy for automount

Added to portage

2026-04-27

selinux-avahi - 2.20250213_p1
Ebuild name:

sec-policy/selinux-avahi-2.20250213_p1

Description

SELinux policy for avahi

Added to portage

2026-04-27

selinux-avahi - 2.20250618_p1
Ebuild name:

sec-policy/selinux-avahi-2.20250618_p1

Description

SELinux policy for avahi

Added to portage

2026-04-27

selinux-awstats - 2.20250213_p1
Ebuild name:

sec-policy/selinux-awstats-2.20250213_p1

Description

SELinux policy for awstats

Added to portage

2026-04-27

selinux-awstats - 2.20250618_p1
Ebuild name:

sec-policy/selinux-awstats-2.20250618_p1

Description

SELinux policy for awstats

Added to portage

2026-04-27

selinux-backup - 2.20250213_p1
Ebuild name:

sec-policy/selinux-backup-2.20250213_p1

Description

SELinux policy for generic backup apps

Added to portage

2026-04-27

selinux-backup - 2.20250618_p1
Ebuild name:

sec-policy/selinux-backup-2.20250618_p1

Description

SELinux policy for generic backup apps

Added to portage

2026-04-27

selinux-bacula - 2.20250213_p1
Ebuild name:

sec-policy/selinux-bacula-2.20250213_p1

Description

SELinux policy for bacula

Added to portage

2026-04-27

selinux-bacula - 2.20250618_p1
Ebuild name:

sec-policy/selinux-bacula-2.20250618_p1

Description

SELinux policy for bacula

Added to portage

2026-04-27

selinux-base - 2.20250213_p1
Ebuild name:

sec-policy/selinux-base-2.20250213_p1

Description

Gentoo base policy for SELinux

Added to portage

2026-04-27

selinux-base - 2.20250618_p1
Ebuild name:

sec-policy/selinux-base-2.20250618_p1

Description

Gentoo base policy for SELinux

Added to portage

2026-04-27

selinux-base-policy - 2.20250213_p1
Ebuild name:

sec-policy/selinux-base-policy-2.20250213_p1

Description

SELinux policy for core modules

Added to portage

2026-04-27

selinux-base-policy - 2.20250618_p1
Ebuild name:

sec-policy/selinux-base-policy-2.20250618_p1

Description

SELinux policy for core modules

Added to portage

2026-04-27

selinux-bind - 2.20250213_p1
Ebuild name:

sec-policy/selinux-bind-2.20250213_p1

Description

SELinux policy for bind

Added to portage

2026-04-27

selinux-bind - 2.20250618_p1
Ebuild name:

sec-policy/selinux-bind-2.20250618_p1

Description

SELinux policy for bind

Added to portage

2026-04-27

selinux-bitcoin - 2.20250213_p1
Ebuild name:

sec-policy/selinux-bitcoin-2.20250213_p1

Description

SELinux policy for bitcoin

Added to portage

2026-04-27

2026-04-26
epix - 1.2.22
Ebuild name:

sci-visualization/epix-1.2.22

Description

2- and 3-D plotter for creating images (to be used in LaTeX)

Added to portage

2026-04-26

fail2ban - 1.1.0-r7
Ebuild name:

net-analyzer/fail2ban-1.1.0-r7

Description

Scans log files and bans IPs that show malicious signs

Added to portage

2026-04-26

font-util - 1.4.2
Ebuild name:

media-fonts/font-util-1.4.2

Description

X.Org font utilities

Added to portage

2026-04-26

gpxsee - 16.6
Ebuild name:

sci-geosciences/gpxsee-16.6

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2026-04-26

koleo-cli - 0.2.137.32
Ebuild name:

app-misc/koleo-cli-0.2.137.32

Description

A simple CLI for koleo.pl railway planner

Added to portage

2026-04-26

kooha - 2.3.1
Ebuild name:

media-video/kooha-2.3.1

Description

Elegant screen recorder for Wayland

Added to portage

2026-04-26

mutt - 2.3.2
Ebuild name:

mail-client/mutt-2.3.2

Description

A small but very powerful text-based mail client

Added to portage

2026-04-26

nagios - 4.5.12
Ebuild name:

net-analyzer/nagios-4.5.12

Description

The Nagios metapackage

Added to portage

2026-04-26

nagios-core - 4.5.12
Ebuild name:

net-analyzer/nagios-core-4.5.12

Description

Nagios core - monitoring daemon, web GUI, and documentation

Added to portage

2026-04-26

nh3 - 0.3.5
Ebuild name:

dev-python/nh3-0.3.5

Description

Ammonia HTML sanitizer Python binding

Added to portage

2026-04-26

nss - 3.112.5
Ebuild name:

dev-libs/nss-3.112.5

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-04-26

nss - 3.123.1
Ebuild name:

dev-libs/nss-3.123.1

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-04-26

phonenumbers - 9.0.29
Ebuild name:

dev-python/phonenumbers-9.0.29

Description

Python port of Google's libphonenumber

Added to portage

2026-04-26

postfix - 3.12_pre20260423
Ebuild name:

mail-mta/postfix-3.12_pre20260423

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-04-26

raggre46 - 0.6.0
Ebuild name:

net-misc/raggre46-0.6.0

Description

Aggregate IPv4 & IPv6 network addresses

Added to portage

2026-04-26

safeeyes - 3.5.0
Ebuild name:

x11-misc/safeeyes-3.5.0

Description

Linux alternative to EyeLeo

Added to portage

2026-04-26

xbitmaps - 1.1.4
Ebuild name:

x11-misc/xbitmaps-1.1.4

Description

X.Org bitmaps data

Added to portage

2026-04-26

xrandr - 1.5.4
Ebuild name:

x11-apps/xrandr-1.5.4

Description

A primitive command line interface to RandR extension

Added to portage

2026-04-26

xxhash - 3.7.0
Ebuild name:

dev-python/xxhash-3.7.0

Description

Python binding for the xxHash library

Added to portage

2026-04-26

yara-python - 4.5.5
Ebuild name:

dev-python/yara-python-4.5.5

Description

Python interface for a malware identification and classification tool

Added to portage

2026-04-26

zope-interface - 8.4
Ebuild name:

dev-python/zope-interface-8.4

Description

Interfaces for Python

Added to portage

2026-04-26

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