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:

82866

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-01-19
amarok - 3.3.2
Ebuild name:

media-sound/amarok-3.3.2

Description

Advanced audio player based on KDE Frameworks

Added to portage

2026-01-19

apache-arrow - 23.0.0
Ebuild name:

dev-libs/apache-arrow-23.0.0

Description

A cross-language development platform for in-memory data

Added to portage

2026-01-19

bandit - 1.9.3
Ebuild name:

dev-python/bandit-1.9.3

Description

A security linter from OpenStack Security

Added to portage

2026-01-19

black - 26.1.0
Ebuild name:

dev-python/black-26.1.0

Description

The uncompromising Python code formatter

Added to portage

2026-01-19

cclive - 0.9.3-r3
Ebuild name:

media-video/cclive-0.9.3-r3

Description

Command line tool for extracting videos from various websites

Added to portage

2026-01-19

colordiff - 1.0.22
Ebuild name:

app-misc/colordiff-1.0.22

Description

Colorizes output of diff

Added to portage

2026-01-19

dill - 0.4.1
Ebuild name:

dev-python/dill-0.4.1

Description

Serialize all of Python (almost)

Added to portage

2026-01-19

discord - 0.0.120
Ebuild name:

net-im/discord-0.0.120

Description

All-in-one voice and text chat for gamers

Added to portage

2026-01-19

ebuild-mode - 1.81
Ebuild name:

app-xemacs/ebuild-mode-1.81

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2026-01-19

gcc - 13.4.1_p20260115
Ebuild name:

sys-devel/gcc-13.4.1_p20260115

Description

The GNU Compiler Collection

Added to portage

2026-01-19

gcc - 14.3.1_p20260116
Ebuild name:

sys-devel/gcc-14.3.1_p20260116

Description

The GNU Compiler Collection

Added to portage

2026-01-19

gcc - 15.2.1_p20260117
Ebuild name:

sys-devel/gcc-15.2.1_p20260117

Description

The GNU Compiler Collection

Added to portage

2026-01-19

gcc - 16.0.1_p20260118
Ebuild name:

sys-devel/gcc-16.0.1_p20260118

Description

The GNU Compiler Collection

Added to portage

2026-01-19

git-sources - 6.19_rc6
Ebuild name:

sys-kernel/git-sources-6.19_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2026-01-19

gnome-nettool - 42.0-r1
Ebuild name:

net-analyzer/gnome-nettool-42.0-r1

Description

Graphical front-ends to various networking command-line

Added to portage

2026-01-19

grub - 2.14
Ebuild name:

sys-boot/grub-2.14

Description

GNU GRUB boot loader

Added to portage

2026-01-19

icdiff - 2.0.9
Ebuild name:

app-misc/icdiff-2.0.9

Description

Colourized diff that supports side-by-side diffing

Added to portage

2026-01-19

irker - 2.24-r1
Ebuild name:

net-irc/irker-2.24-r1

Description

Submission tools for IRC notifications

Added to portage

2026-01-19

irssi - 1.4.5-r2
Ebuild name:

net-irc/irssi-1.4.5-r2

Description

A modular textUI IRC client with IPv6 support

Added to portage

2026-01-19

megatest - 0.6.0
Ebuild name:

dev-ruby/megatest-0.6.0

Description

A test-unit like framework with a focus on usability, designed with CI in m

Added to portage

2026-01-19

meson - 1.10.1
Ebuild name:

dev-build/meson-1.10.1

Description

Open source build system

Added to portage

2026-01-19

mu - 1.12.15
Ebuild name:

net-mail/mu-1.12.15

Description

Set of tools to deal with Maildirs, in particular, searching and indexing

Added to portage

2026-01-19

networkmanager-strongswan - 1.6.4
Ebuild name:

net-vpn/networkmanager-strongswan-1.6.4

Description

NetworkManager StrongSwan plugin

Added to portage

2026-01-19

openpgp-keys-bennoschulenberg - 20260119
Ebuild name:

sec-keys/openpgp-keys-bennoschulenberg-20260119

Description

OpenPGP key used by Benno Schulenberg

Added to portage

2026-01-19

openpgp-keys-colordiff - 20260118
Ebuild name:

sec-keys/openpgp-keys-colordiff-20260118

Description

OpenPGP keys used to sign colordiff releases

Added to portage

2026-01-19

openpgp-keys-fche - 20260119
Ebuild name:

sec-keys/openpgp-keys-fche-20260119

Description

OpenPGP key used by Frank Ch. Eigler (fche)

Added to portage

2026-01-19

openpgp-keys-gentoo-developers - 20260112
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20260112

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-01-19

openpgp-keys-gmp - 20250628
Ebuild name:

sec-keys/openpgp-keys-gmp-20250628

Description

OpenPGP keys used by Niels Möller (to sign GMP releases)

Added to portage

2026-01-19

openpgp-keys-irssi - 20260119
Ebuild name:

sec-keys/openpgp-keys-irssi-20260119

Description

OpenPGP keys used for irssi releases

Added to portage

2026-01-19

openpgp-keys-mpc - 20260118
Ebuild name:

sec-keys/openpgp-keys-mpc-20260118

Description

OpenPGP keys used by Andreas Enge (to sign MPC releases)

Added to portage

2026-01-19

openpgp-keys-networkmanager-strongswan - 20260119
Ebuild name:

sec-keys/openpgp-keys-networkmanager-strongswan-20260119

Description

OpenPGP keys used for networkmanager-stron

Added to portage

2026-01-19

openpgp-keys-openvpn - 20260119
Ebuild name:

sec-keys/openpgp-keys-openvpn-20260119

Description

OpenPGP keys used for OpenVPN releases

Added to portage

2026-01-19

openpgp-keys-streamlink - 20260118
Ebuild name:

sec-keys/openpgp-keys-streamlink-20260118

Description

OpenPGP keys used for streamlink releases

Added to portage

2026-01-19

openpgp-keys-strongswan - 20260119
Ebuild name:

sec-keys/openpgp-keys-strongswan-20260119

Description

OpenPGP keys used for strongswan releases

Added to portage

2026-01-19

osm - 2.0
Ebuild name:

app-emacs/osm-2.0

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-19

poetry - 2.3.0
Ebuild name:

dev-python/poetry-2.3.0

Description

A frontend for poetry - a python dependency management and packaging tool

Added to portage

2026-01-19

poetry-core - 2.3.0
Ebuild name:

dev-python/poetry-core-2.3.0

Description

Poetry PEP 517 Build Backend

Added to portage

2026-01-19

poetry-plugin-export - 1.10.0
Ebuild name:

dev-python/poetry-plugin-export-1.10.0

Description

A plugin that allows the export of locked packages to variou

Added to portage

2026-01-19

portage - 3.0.76
Ebuild name:

sys-apps/portage-3.0.76

Description

The package management and distribution system for Gentoo

Added to portage

2026-01-19

pyarrow - 23.0.0
Ebuild name:

dev-python/pyarrow-23.0.0

Description

Python library for Apache Arrow

Added to portage

2026-01-19

safeeyes - 3.3.1
Ebuild name:

x11-misc/safeeyes-3.3.1

Description

Linux alternative to EyeLeo

Added to portage

2026-01-19

selenium - 4.40.0
Ebuild name:

dev-python/selenium-4.40.0

Description

Python language binding for Selenium Remote Control

Added to portage

2026-01-19

selenium-manager - 4.40.0
Ebuild name:

dev-util/selenium-manager-4.40.0

Description

CLI tool that manages the browser/driver infrastructure required b

Added to portage

2026-01-19

soupsieve - 2.8.2
Ebuild name:

dev-python/soupsieve-2.8.2

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-01-19

starlette - 0.52.0
Ebuild name:

dev-python/starlette-0.52.0

Description

The little ASGI framework that shines

Added to portage

2026-01-19

strawberry - 1.2.17
Ebuild name:

media-sound/strawberry-1.2.17

Description

Modern music player and library organizer based on Clementine and Qt

Added to portage

2026-01-19

streamlink - 8.1.2
Ebuild name:

net-misc/streamlink-8.1.2

Description

CLI for extracting streams from websites to a video player of your choice

Added to portage

2026-01-19

strongswan - 6.0.4
Ebuild name:

net-vpn/strongswan-6.0.4

Description

IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE

Added to portage

2026-01-19

units - 2.25
Ebuild name:

sci-calculators/units-2.25

Description

Unit conversion program

Added to portage

2026-01-19

vivaldi-snapshot - 7.8.3921.9
Ebuild name:

www-client/vivaldi-snapshot-7.8.3921.9

Description

A browser for our friends

Added to portage

2026-01-19

2026-01-18
async-lru - 2.1.0
Ebuild name:

dev-python/async-lru-2.1.0

Description

Simple lru_cache for asyncio

Added to portage

2026-01-18

blosc - 1.11.4
Ebuild name:

dev-python/blosc-1.11.4

Description

High performance compressor optimized for binary data

Added to portage

2026-01-18

boost-m4 - 0.4_p20221019-r1
Ebuild name:

dev-build/boost-m4-0.4_p20221019-r1

Description

Another set of autoconf macros for compiling against boost

Added to portage

2026-01-18

connection_pool - 3.0.2-r1
Ebuild name:

dev-ruby/connection_pool-3.0.2-r1

Description

Generic connection pooling for Ruby

Added to portage

2026-01-18

dulwich - 1.0.0
Ebuild name:

dev-python/dulwich-1.0.0

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-01-18

hg-evolve - 11.1.10
Ebuild name:

dev-vcs/hg-evolve-11.1.10

Description

enables the changeset evolution feature of Mercurial

Added to portage

2026-01-18

imapclient - 3.1.0
Ebuild name:

dev-python/imapclient-3.1.0

Description

easy-to-use, pythonic, and complete IMAP client library

Added to portage

2026-01-18

maxitest - 6.2.0
Ebuild name:

dev-ruby/maxitest-6.2.0

Description

Minitest + all the features you always wanted

Added to portage

2026-01-18

mercurial - 7.1.2-r1
Ebuild name:

dev-vcs/mercurial-7.1.2-r1

Description

Scalable distributed SCM

Added to portage

2026-01-18

moto - 5.1.20
Ebuild name:

dev-python/moto-5.1.20

Description

Mock library for boto

Added to portage

2026-01-18

opensmtpd - 7.8.0_p0
Ebuild name:

mail-mta/opensmtpd-7.8.0_p0

Description

Lightweight but featured SMTP daemon from OpenBSD

Added to portage

2026-01-18

sbsigntools - 0.9.5
Ebuild name:

app-crypt/sbsigntools-0.9.5

Description

Utilities for signing and verifying files for UEFI Secure Boot

Added to portage

2026-01-18

scummvm - 2026.1.0
Ebuild name:

games-engines/scummvm-2026.1.0

Description

Reimplementation of the SCUMM game engine used in Lucasarts adventur

Added to portage

2026-01-18

trimesh - 4.11.1
Ebuild name:

dev-python/trimesh-4.11.1

Description

Python library for loading and using triangular meshes

Added to portage

2026-01-18

untrunc - 0_pre20260112
Ebuild name:

media-video/untrunc-0_pre20260112

Description

Restore truncated mp4/mov files

Added to portage

2026-01-18

vdr-fritzbox - 1.5.8
Ebuild name:

media-plugins/vdr-fritzbox-1.5.8

Description

VDR Plugin Inform about incoming phone-calls and use the fritz pho

Added to portage

2026-01-18

xmlschema - 4.3.1
Ebuild name:

dev-python/xmlschema-4.3.1

Description

An XML Schema validator and decoder

Added to portage

2026-01-18

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