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:

84220

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-07
awscli - 1.44.74
Ebuild name:

app-admin/awscli-1.44.74

Description

Universal Command Line Environment for AWS

Added to portage

2026-04-07

borgmatic - 2.1.4
Ebuild name:

app-backup/borgmatic-2.1.4

Description

Automatically create, prune and verify backups with borgbackup

Added to portage

2026-04-07

boto3 - 1.42.84
Ebuild name:

dev-python/boto3-1.42.84

Description

The AWS SDK for Python

Added to portage

2026-04-07

botocore - 1.42.84
Ebuild name:

dev-python/botocore-1.42.84

Description

Low-level, data-driven core of boto 3

Added to portage

2026-04-07

chromium - 148.0.7766.3
Ebuild name:

www-client/chromium-148.0.7766.3

Description

Open-source version of Google Chrome web browser

Added to portage

2026-04-07

django-tables2 - 2.9.0
Ebuild name:

dev-python/django-tables2-2.9.0

Description

Table/data-grid framework for Django

Added to portage

2026-04-07

doge - 3.9.2
Ebuild name:

games-misc/doge-3.9.2

Description

wow very terminal doge

Added to portage

2026-04-07

environs - 15.0.1
Ebuild name:

dev-python/environs-15.0.1

Description

Python library for simplified environment variable parsing

Added to portage

2026-04-07

ergo - 2.18.0
Ebuild name:

net-irc/ergo-2.18.0

Description

Modern IRC server written in Go

Added to portage

2026-04-07

faker - 40.13.0
Ebuild name:

dev-python/faker-40.13.0

Description

A Python package that generates fake data for you

Added to portage

2026-04-07

fq - 0.17.0
Ebuild name:

dev-util/fq-0.17.0

Description

Tool for working with binary data (app-misc/jq for binary formats)

Added to portage

2026-04-07

gdbus-codegen - 2.86.5
Ebuild name:

dev-util/gdbus-codegen-2.86.5

Description

GDBus code and documentation generator

Added to portage

2026-04-07

gdbus-codegen - 2.88.0
Ebuild name:

dev-util/gdbus-codegen-2.88.0

Description

GDBus code and documentation generator

Added to portage

2026-04-07

git-delta - 0.19.2
Ebuild name:

dev-util/git-delta-0.19.2

Description

Syntax-highlighting pager for git

Added to portage

2026-04-07

glib - 2.84.4-r4
Ebuild name:

dev-libs/glib-2.84.4-r4

Description

The GLib library of C routines

Added to portage

2026-04-07

glib - 2.86.5
Ebuild name:

dev-libs/glib-2.86.5

Description

The GLib library of C routines

Added to portage

2026-04-07

glib - 2.88.0
Ebuild name:

dev-libs/glib-2.88.0

Description

The GLib library of C routines

Added to portage

2026-04-07

glib-utils - 2.86.5
Ebuild name:

dev-util/glib-utils-2.86.5

Description

Build utilities for GLib using projects

Added to portage

2026-04-07

glib-utils - 2.88.0
Ebuild name:

dev-util/glib-utils-2.88.0

Description

Build utilities for GLib using projects

Added to portage

2026-04-07

gn - 0.2354
Ebuild name:

dev-build/gn-0.2354

Description

GN is a meta-build system that generates build files for Ninja

Added to portage

2026-04-07

granite - 7.8.1-r1
Ebuild name:

dev-libs/granite-7.8.1-r1

Description

Elementary OS library that extends GTK+

Added to portage

2026-04-07

gsd - 5.0.0
Ebuild name:

dev-python/gsd-5.0.0

Description

GSD - file format specification and a library to read and write it

Added to portage

2026-04-07

indilib - 2.2.0
Ebuild name:

sci-libs/indilib-2.2.0

Description

INDI Astronomical Control Protocol library

Added to portage

2026-04-07

jwcrypto - 1.5.7
Ebuild name:

dev-python/jwcrypto-1.5.7

Description

Implements JWK,JWS,JWE specifications using python-cryptography

Added to portage

2026-04-07

kio-gopher - 2.0.0
Ebuild name:

kde-misc/kio-gopher-2.0.0

Description

Gopher KIO worker for Konqueror

Added to portage

2026-04-07

kstars - 3.8.2
Ebuild name:

sci-astronomy/kstars-3.8.2

Description

Desktop Planetarium

Added to portage

2026-04-07

libsvm - 3.37
Ebuild name:

sci-libs/libsvm-3.37

Description

Library for Support Vector Machines

Added to portage

2026-04-07

moor - 2.12.0
Ebuild name:

sys-apps/moor-2.12.0

Description

Pager designed to do the right thing without any configuration

Added to portage

2026-04-07

nagios-mode - 0.4
Ebuild name:

app-emacs/nagios-mode-0.4

Description

Major mode for editing Nagios configuration files

Added to portage

2026-04-07

narwhals - 2.19.0
Ebuild name:

dev-python/narwhals-2.19.0

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2026-04-07

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-04-07

neomutt - 20260406
Ebuild name:

mail-client/neomutt-20260406

Description

A small but very powerful text-based mail client

Added to portage

2026-04-07

ocserv - 1.4.1
Ebuild name:

net-vpn/ocserv-1.4.1

Description

Openconnect SSL VPN server

Added to portage

2026-04-07

pkixssh - 18.0.2
Ebuild name:

net-misc/pkixssh-18.0.2

Description

OpenSSH fork with X.509 v3 certificate support

Added to portage

2026-04-07

pylru - 1.3.1
Ebuild name:

dev-python/pylru-1.3.1

Description

A least recently used (LRU) cache for Python

Added to portage

2026-04-07

python-subunit - 1.4.4-r1
Ebuild name:

dev-python/python-subunit-1.4.4-r1

Description

A streaming protocol for test results

Added to portage

2026-04-07

python-subunit - 1.4.5-r1
Ebuild name:

dev-python/python-subunit-1.4.5-r1

Description

A streaming protocol for test results

Added to portage

2026-04-07

qtile - 0.35.0-r1
Ebuild name:

x11-wm/qtile-0.35.0-r1

Description

A full-featured, hackable tiling window manager written in Python

Added to portage

2026-04-07

rsync - 3.4.1-r3
Ebuild name:

net-misc/rsync-3.4.1-r3

Description

File transfer program to keep remote files into sync

Added to portage

2026-04-07

rtslib-fb - 2.2.4-r1
Ebuild name:

dev-python/rtslib-fb-2.2.4-r1

Description

A Python object API for managing the Linux LIO kernel target

Added to portage

2026-04-07

testtools - 2.9.0
Ebuild name:

dev-python/testtools-2.9.0

Description

Extensions to the Python standard library unit testing framework

Added to portage

2026-04-07

uvicorn - 0.44.0
Ebuild name:

dev-python/uvicorn-0.44.0

Description

Lightning-fast ASGI server implementation

Added to portage

2026-04-07

2026-04-06
PAR-Packer - 1.64.0-r1
Ebuild name:

dev-perl/PAR-Packer-1.64.0-r1

Description

PAR Packager

Added to portage

2026-04-06

Search-Xapian - 1.2.25.6
Ebuild name:

dev-perl/Search-Xapian-1.2.25.6

Description

Perl XS frontend to the Xapian C++ search library

Added to portage

2026-04-06

alpine - 2.29.9
Ebuild name:

mail-client/alpine-2.29.9

Description

An easy to use text-based based mail and news client

Added to portage

2026-04-06

boost - 1.90.0-r1
Ebuild name:

dev-libs/boost-1.90.0-r1

Description

Boost Libraries for C++

Added to portage

2026-04-06

cython-test-exception-raiser - 26.4.1
Ebuild name:

dev-python/cython-test-exception-raiser-26.4.1

Description

A trivial extension that just raises an exception (f

Added to portage

2026-04-06

dist-kernel - 6.6.133
Ebuild name:

virtual/dist-kernel-6.6.133

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-04-06

elfutils - 0.194-r3
Ebuild name:

dev-libs/elfutils-0.194-r3

Description

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

Added to portage

2026-04-06

frr - 10.1.4-r1
Ebuild name:

net-misc/frr-10.1.4-r1

Description

The FRRouting Protocol Suite

Added to portage

2026-04-06

frr - 10.2.5-r1
Ebuild name:

net-misc/frr-10.2.5-r1

Description

The FRRouting Protocol Suite

Added to portage

2026-04-06

frr - 10.3.3-r1
Ebuild name:

net-misc/frr-10.3.3-r1

Description

The FRRouting Protocol Suite

Added to portage

2026-04-06

frr - 10.4.3-r1
Ebuild name:

net-misc/frr-10.4.3-r1

Description

The FRRouting Protocol Suite

Added to portage

2026-04-06

frr - 10.5.3-r1
Ebuild name:

net-misc/frr-10.5.3-r1

Description

The FRRouting Protocol Suite

Added to portage

2026-04-06

frr - 10.6.0-r1
Ebuild name:

net-misc/frr-10.6.0-r1

Description

The FRRouting Protocol Suite

Added to portage

2026-04-06

gcc - 16.0.1_p20260405-r1
Ebuild name:

sys-devel/gcc-16.0.1_p20260405-r1

Description

The GNU Compiler Collection

Added to portage

2026-04-06

gdl - 1.0.4-r3
Ebuild name:

dev-lang/gdl-1.0.4-r3

Description

GNU Data Language

Added to portage

2026-04-06

gentoo-kernel - 6.6.133
Ebuild name:

sys-kernel/gentoo-kernel-6.6.133

Description

Linux kernel built with Gentoo patches

Added to portage

2026-04-06

gentoo-kernel-bin - 6.6.133
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.133

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-04-06

gentoo-sources - 6.6.133
Ebuild name:

sys-kernel/gentoo-sources-6.6.133

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-04-06

git-sources - 7.0_rc7
Ebuild name:

sys-kernel/git-sources-7.0_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2026-04-06

hwdata - 0.401
Ebuild name:

sys-apps/hwdata-0.401

Description

Hardware identification and configuration data

Added to portage

2026-04-06

hypothesis - 6.151.11
Ebuild name:

dev-python/hypothesis-6.151.11

Description

A library for property based testing

Added to portage

2026-04-06

jellyfin-bin - 10.11.8
Ebuild name:

www-apps/jellyfin-bin-10.11.8

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2026-04-06

libnpupnp - 6.3.0
Ebuild name:

net-libs/libnpupnp-6.3.0

Description

A C++ base UPnP library, derived from Portable UPnP, a.k.a libupnp

Added to portage

2026-04-06

libupnpp - 1.0.4
Ebuild name:

net-libs/libupnpp-1.0.4

Description

The libupnpp C++ library wraps libupnp for easier use by upmpdcli and uppla

Added to portage

2026-04-06

limine - 10.8.5
Ebuild name:

sys-boot/limine-10.8.5

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2026-04-06

limine - 11.2.0
Ebuild name:

sys-boot/limine-11.2.0

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2026-04-06

man-pages-l10n - 4.30.0-r1
Ebuild name:

app-i18n/man-pages-l10n-4.30.0-r1

Description

A somewhat comprehensive collection of man page translations

Added to portage

2026-04-06

meson - 1.11.0_rc3
Ebuild name:

dev-build/meson-1.11.0_rc3

Description

Open source build system

Added to portage

2026-04-06

mit-krb5 - 1.22.2-r1
Ebuild name:

app-crypt/mit-krb5-1.22.2-r1

Description

MIT Kerberos V

Added to portage

2026-04-06

mkvtoolnix - 98.0
Ebuild name:

media-video/mkvtoolnix-98.0

Description

Tools to create, alter, and inspect Matroska files

Added to portage

2026-04-06

monkeysphere - 0.44-r2
Ebuild name:

app-crypt/monkeysphere-0.44-r2

Description

Leverage the OpenPGP web of trust for OpenSSH and Web authentication

Added to portage

2026-04-06

moolticute - 1.03.0-r2
Ebuild name:

app-crypt/moolticute-1.03.0-r2

Description

Mooltipass crossplatform daemon/tools

Added to portage

2026-04-06

moolticute - 9999
Ebuild name:

app-crypt/moolticute-9999

Description

Mooltipass crossplatform daemon/tools

Added to portage

2026-04-06

openrc - 0.63.1
Ebuild name:

sys-apps/openrc-0.63.1

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2026-04-06

pciutils - 3.15.0
Ebuild name:

sys-apps/pciutils-3.15.0

Description

Various utilities dealing with the PCI bus

Added to portage

2026-04-06

pep - 2.8-r3
Ebuild name:

app-text/pep-2.8-r3

Description

General purpose filter and file cleaning program

Added to portage

2026-04-06

portage - 3.0.77-r4
Ebuild name:

sys-apps/portage-3.0.77-r4

Description

The package management and distribution system for Gentoo

Added to portage

2026-04-06

postfix - 3.12_pre20260403
Ebuild name:

mail-mta/postfix-3.12_pre20260403

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-04-06

pp - 0.6.3-r1
Ebuild name:

dev-ruby/pp-0.6.3-r1

Description

Provides a PrettyPrinter for Ruby objects

Added to portage

2026-04-06

pyglet - 2.1.14
Ebuild name:

dev-python/pyglet-2.1.14

Description

Cross-platform windowing and multimedia library for Python

Added to portage

2026-04-06

python-multipart - 0.0.24
Ebuild name:

dev-python/python-multipart-0.0.24

Description

A streaming multipart parser for Python

Added to portage

2026-04-06

sabctools - 9.3.0
Ebuild name:

dev-python/sabctools-9.3.0

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2026-04-06

sigscheme - 0.9.5
Ebuild name:

dev-scheme/sigscheme-0.9.5

Description

SigScheme is an R5RS Scheme interpreter for embedded use

Added to portage

2026-04-06

stone-soup - 0.34.1
Ebuild name:

games-roguelike/stone-soup-0.34.1

Description

Role-playing roguelike game of exploration and treasure-hunting i

Added to portage

2026-04-06

tavern - 3.3.2
Ebuild name:

dev-python/tavern-3.3.2

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-04-06

unicode-cldr - 48.1
Ebuild name:

app-i18n/unicode-cldr-48.1

Description

Unicode Common Locale Data Repository

Added to portage

2026-04-06

upmpdcli - 1.9.15
Ebuild name:

media-sound/upmpdcli-1.9.15

Description

UPnP Media Renderer front-end for MPD, the Music Player Daemon

Added to portage

2026-04-06

vanilla-kernel - 6.6.133
Ebuild name:

sys-kernel/vanilla-kernel-6.6.133

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-04-06

vanilla-sources - 6.6.133
Ebuild name:

sys-kernel/vanilla-sources-6.6.133

Description

Full sources for the Linux kernel

Added to portage

2026-04-06

webkit-gtk - 2.52.1-r410
Ebuild name:

net-libs/webkit-gtk-2.52.1-r410

Description

Open source web browser engine

Added to portage

2026-04-06

webkit-gtk - 2.52.1-r600
Ebuild name:

net-libs/webkit-gtk-2.52.1-r600

Description

Open source web browser engine

Added to portage

2026-04-06

whenever - 0.10.0
Ebuild name:

dev-python/whenever-0.10.0

Description

Modern datetime library for Python

Added to portage

2026-04-06

wiiload - 0.5.3
Ebuild name:

games-util/wiiload-0.5.3

Description

Load homebrew apps over the network to your Wii

Added to portage

2026-04-06

winbox - 4.1_rc2
Ebuild name:

app-admin/winbox-4.1_rc2

Description

Management Software for MikroTik RouterOS

Added to portage

2026-04-06

wine-staging - 11.6
Ebuild name:

app-emulation/wine-staging-11.6

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patch

Added to portage

2026-04-06

xapian - 2.0.0
Ebuild name:

dev-libs/xapian-2.0.0

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2026-04-06

xapian-bindings - 2.0.0
Ebuild name:

dev-libs/xapian-bindings-2.0.0

Description

SWIG and JNI bindings for Xapian

Added to portage

2026-04-06

xapian-omega - 2.0.0
Ebuild name:

app-text/xapian-omega-2.0.0

Description

An application built on Xapian, consisting of indexers and a CGI search

Added to portage

2026-04-06

zeal - 0.8.1
Ebuild name:

app-text/zeal-0.8.1

Description

Offline documentation browser inspired by Dash

Added to portage

2026-04-06

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