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:

86322

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 (58 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-06-27
7zip - 26.02
Ebuild name:

app-arch/7zip-26.02

Description

Free file archiver for extremely high compression

Added to portage

2026-06-27

buildah - 1.44.0-r1
Ebuild name:

app-containers/buildah-1.44.0-r1

Description

A tool that facilitates building OCI images

Added to portage

2026-06-27

container-libs - 0.68.0
Ebuild name:

app-containers/container-libs-0.68.0

Description

Several utilities from the containers project

Added to portage

2026-06-27

docker-buildx - 0.35.0
Ebuild name:

app-containers/docker-buildx-0.35.0

Description

Docker CLI plugin for extended build capabilities with BuildKit

Added to portage

2026-06-27

edk2 - 202605
Ebuild name:

sys-firmware/edk2-202605

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-06-27

edk2-bin - 202605
Ebuild name:

sys-firmware/edk2-bin-202605

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-06-27

firefox - 152.0.3
Ebuild name:

www-client/firefox-152.0.3

Description

Firefox Web Browser

Added to portage

2026-06-27

firefox-bin - 152.0.3
Ebuild name:

www-client/firefox-bin-152.0.3

Description

Firefox Web Browser

Added to portage

2026-06-27

firefox-l10n - 152.0.3
Ebuild name:

www-client/firefox-l10n-152.0.3

Description

Firefox Web Browser's translation files

Added to portage

2026-06-27

fuzzylite - 6.0
Ebuild name:

dev-libs/fuzzylite-6.0

Description

A fuzzy logic control library in C++

Added to portage

2026-06-27

libsquish - 1.15.1.4
Ebuild name:

media-libs/libsquish-1.15.1.4

Description

Library for compressing images with the DXT/S3TC standard

Added to portage

2026-06-27

lyskom-elisp-client - 0.48_p20200226
Ebuild name:

app-emacs/lyskom-elisp-client-0.48_p20200226

Description

Elisp client for the LysKOM conference system

Added to portage

2026-06-27

m-buffer - 0.16.1
Ebuild name:

app-emacs/m-buffer-0.16.1

Description

List Oriented Buffer Operations for Emacs

Added to portage

2026-06-27

macrostep - 0.9.5
Ebuild name:

app-emacs/macrostep-0.9.5

Description

Interactive macro-expander for Emacs

Added to portage

2026-06-27

macrostep-geiser - 0.2.0_p20210717
Ebuild name:

app-emacs/macrostep-geiser-0.2.0_p20210717

Description

Emacs macrostep back-end powered by geiser

Added to portage

2026-06-27

magit - 4.5.0
Ebuild name:

app-emacs/magit-4.5.0

Description

A Git porcelain inside Emacs

Added to portage

2026-06-27

magit - 4.5.0-r1
Ebuild name:

app-emacs/magit-4.5.0-r1

Description

A Git porcelain inside Emacs

Added to portage

2026-06-27

magit - 9999
Ebuild name:

app-emacs/magit-9999

Description

A Git porcelain inside Emacs

Added to portage

2026-06-27

mlt - 7.40.0
Ebuild name:

media-libs/mlt-7.40.0

Description

Open source multimedia framework for television broadcasting

Added to portage

2026-06-27

nerdctl - 2.3.3
Ebuild name:

app-containers/nerdctl-2.3.3

Description

Docker-compatible CLI for containerd, with support for Compose

Added to portage

2026-06-27

netavark - 2.0.0
Ebuild name:

app-containers/netavark-2.0.0

Description

A container network stack

Added to portage

2026-06-27

podman - 6.0.0
Ebuild name:

app-containers/podman-6.0.0

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-06-27

podman-tui - 1.11.2
Ebuild name:

app-containers/podman-tui-1.11.2

Description

Terminal UI frontend for Podman

Added to portage

2026-06-27

skopeo - 1.23.0-r1
Ebuild name:

app-containers/skopeo-1.23.0-r1

Description

Work with remote container images registries

Added to portage

2026-06-27

sonarr-bin - 4.0.19.2979
Ebuild name:

www-apps/sonarr-bin-4.0.19.2979

Description

Sonarr is a Smart PVR for newsgroup and bittorrent users

Added to portage

2026-06-27

vcmi - 1.7.4
Ebuild name:

games-strategy/vcmi-1.7.4

Description

Open-source engine for Heroes of Might and Magic III

Added to portage

2026-06-27

2026-06-26
R - 4.6.1
Ebuild name:

dev-lang/R-4.6.1

Description

Language and environment for statistical computing and graphics

Added to portage

2026-06-26

alembic - 1.18.5
Ebuild name:

dev-python/alembic-1.18.5

Description

Database migrations tool, written by the author of SQLAlchemy

Added to portage

2026-06-26

blis - 2.1
Ebuild name:

sci-libs/blis-2.1

Description

BLAS-like Library Instantiation Software Framework

Added to portage

2026-06-26

cifs-utils - 7.6
Ebuild name:

net-fs/cifs-utils-7.6

Description

Tools for Managing Linux CIFS Client Filesystems

Added to portage

2026-06-26

delve - 1.27.0
Ebuild name:

dev-go/delve-1.27.0

Description

A source-level debugger for the Go programming language

Added to portage

2026-06-26

dxvk - 3.0
Ebuild name:

app-emulation/dxvk-3.0

Description

Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine

Added to portage

2026-06-26

glycin-loaders - 2.1.5
Ebuild name:

media-libs/glycin-loaders-2.1.5

Description

Loaders for glycin clients (glycin crate or libglycin)

Added to portage

2026-06-26

google-api-python-client - 2.198.0
Ebuild name:

dev-python/google-api-python-client-2.198.0

Description

Google API Client for Python

Added to portage

2026-06-26

google-auth - 2.55.1
Ebuild name:

dev-python/google-auth-2.55.1

Description

Google Authentication Library

Added to portage

2026-06-26

incus - 7.2
Ebuild name:

app-containers/incus-7.2

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-06-26

ispc - 1.31.0
Ebuild name:

dev-lang/ispc-1.31.0

Description

Intel SPMD Program Compiler

Added to portage

2026-06-26

libtorrent - 0.16.15
Ebuild name:

net-libs/libtorrent-0.16.15

Description

BitTorrent library written in C++ for *nix

Added to portage

2026-06-26

magit-popup - 2.13.3-r1
Ebuild name:

app-emacs/magit-popup-2.13.3-r1

Description

Define prefix-infix-suffix command combos

Added to portage

2026-06-26

mailcrypt - 3.5.9-r3
Ebuild name:

app-emacs/mailcrypt-3.5.9-r3

Description

Provides a simple interface to public key cryptography with OpenPGP

Added to portage

2026-06-26

mutagen - 1.48.1
Ebuild name:

media-libs/mutagen-1.48.1

Description

Audio metadata tag reader and writer implemented in pure Python

Added to portage

2026-06-26

newsboat - 2.44
Ebuild name:

net-news/newsboat-2.44

Description

An RSS/Atom feed reader for text terminals

Added to portage

2026-06-26

pdns - 5.0.6
Ebuild name:

net-dns/pdns-5.0.6

Description

The PowerDNS Daemon

Added to portage

2026-06-26

pdns - 5.1.2
Ebuild name:

net-dns/pdns-5.1.2

Description

The PowerDNS Daemon

Added to portage

2026-06-26

pdns-recursor - 5.3.8
Ebuild name:

net-dns/pdns-recursor-5.3.8

Description

The PowerDNS Recursor

Added to portage

2026-06-26

pdns-recursor - 5.4.3
Ebuild name:

net-dns/pdns-recursor-5.4.3

Description

The PowerDNS Recursor

Added to portage

2026-06-26

photoqt - 5.4
Ebuild name:

media-gfx/photoqt-5.4

Description

Simple but powerful Qt-based image viewer

Added to portage

2026-06-26

photoqt-extensions - 5.4
Ebuild name:

media-plugins/photoqt-extensions-5.4

Description

Official extensions for PhotoQt

Added to portage

2026-06-26

postfix - 3.12_pre20260624
Ebuild name:

mail-mta/postfix-3.12_pre20260624

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-06-26

pugixml - 1.16
Ebuild name:

dev-libs/pugixml-1.16

Description

Light-weight, simple, and fast XML parser for C++ with XPath support

Added to portage

2026-06-26

pygraphviz - 2.0
Ebuild name:

dev-python/pygraphviz-2.0

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2026-06-26

pyproject-fmt - 2.25.1
Ebuild name:

dev-python/pyproject-fmt-2.25.1

Description

Format your pyproject.toml file

Added to portage

2026-06-26

rtorrent - 0.16.15
Ebuild name:

net-p2p/rtorrent-0.16.15

Description

BitTorrent Client using libtorrent

Added to portage

2026-06-26

rutorrent - 5.3.3
Ebuild name:

www-apps/rutorrent-5.3.3

Description

ruTorrent is a front-end for the popular Bittorrent client rTorrent

Added to portage

2026-06-26

samba - 4.23.9
Ebuild name:

net-fs/samba-4.23.9

Description

Samba Suite Version 4

Added to portage

2026-06-26

setuptools-scm - 10.2.0
Ebuild name:

dev-python/setuptools-scm-10.2.0

Description

Manage versions by scm tags via setuptools

Added to portage

2026-06-26

sphinx-autodoc-typehints - 3.12.0
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.12.0

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-06-26

sslscan - 2.2.2
Ebuild name:

net-analyzer/sslscan-2.2.2

Description

Fast SSL configuration scanner

Added to portage

2026-06-26

tox - 4.56.1
Ebuild name:

dev-python/tox-4.56.1

Description

virtualenv-based automation of test activities

Added to portage

2026-06-26

uhd - 4.10.0.0-r1
Ebuild name:

net-wireless/uhd-4.10.0.0-r1

Description

Universal Software Radio Peripheral (USRP) Hardware Driver

Added to portage

2026-06-26

urwid - 4.0.3
Ebuild name:

dev-python/urwid-4.0.3

Description

Curses-based user interface library for Python

Added to portage

2026-06-26

vcs-versioning - 2.2.0
Ebuild name:

dev-python/vcs-versioning-2.2.0

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-06-26

vlc - 4.0.0_pre20260625
Ebuild name:

media-video/vlc-4.0.0_pre20260625

Description

Media player and framework with support for most multimedia files

Added to portage

2026-06-26

wand - 0.7.2
Ebuild name:

dev-python/wand-0.7.2

Description

Ctypes-based simple ImageMagick binding for Python

Added to portage

2026-06-26

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