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:

87058

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-07-21
container-libs - 0.68.0-r1
Ebuild name:

app-containers/container-libs-0.68.0-r1

Description

Several utilities from the containers project

Added to portage

2026-07-21

containers-shortnames - 2025.03.19_p20260615
Ebuild name:

app-containers/containers-shortnames-2025.03.19_p20260615

Description

Configures default shortnames (aliases) f

Added to portage

2026-07-21

dkms - 3.4.2
Ebuild name:

sys-kernel/dkms-3.4.2

Description

Dynamic Kernel Module Support

Added to portage

2026-07-21

dracut - 111-r2
Ebuild name:

sys-kernel/dracut-111-r2

Description

Generic initramfs generation tool

Added to portage

2026-07-21

firefox - 153.0
Ebuild name:

www-client/firefox-153.0

Description

Firefox Web Browser

Added to portage

2026-07-21

firefox-l10n - 153.0
Ebuild name:

www-client/firefox-l10n-153.0

Description

Firefox Web Browser's translation files

Added to portage

2026-07-21

fuse-overlayfs - 1.17
Ebuild name:

sys-fs/fuse-overlayfs-1.17

Description

FUSE implementation for overlayfs

Added to portage

2026-07-21

ggml - 0.17.0
Ebuild name:

sci-ml/ggml-0.17.0

Description

Tensor library for machine learning

Added to portage

2026-07-21

ophcrack - 3.8.0-r2
Ebuild name:

app-crypt/ophcrack-3.8.0-r2

Description

A time-memory-trade-off-cracker

Added to portage

2026-07-21

ophcrack-tables - 1.0-r2
Ebuild name:

app-crypt/ophcrack-tables-1.0-r2

Description

Tables available for ophcrack

Added to portage

2026-07-21

osslsigncode - 2.13
Ebuild name:

app-crypt/osslsigncode-2.13

Description

Platform-independent tool for Authenticode signing of EXE/CAB files

Added to portage

2026-07-21

osslsigncode - 2.9
Ebuild name:

app-crypt/osslsigncode-2.9

Description

Platform-independent tool for Authenticode signing of EXE/CAB files

Added to portage

2026-07-21

p11-kit - 0.26.2
Ebuild name:

app-crypt/p11-kit-0.26.2

Description

Provides a standard configuration setup for installing PKCS11

Added to portage

2026-07-21

p11-kit - 0.26.4
Ebuild name:

app-crypt/p11-kit-0.26.4

Description

Provides a standard configuration setup for installing PKCS11

Added to portage

2026-07-21

paperkey - 1.6
Ebuild name:

app-crypt/paperkey-1.6

Description

OpenPGP key archiver

Added to portage

2026-07-21

passt - 2026.07.16
Ebuild name:

net-misc/passt-2026.07.16

Description

User-mode networking daemons for VMs and namespaces, replacement for Slir

Added to portage

2026-07-21

podman - 5.8.5
Ebuild name:

app-containers/podman-5.8.5

Description

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

Added to portage

2026-07-21

podman - 6.0.1
Ebuild name:

app-containers/podman-6.0.1

Description

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

Added to portage

2026-07-21

podman-tui - 1.11.3
Ebuild name:

app-containers/podman-tui-1.11.3

Description

Terminal UI frontend for Podman

Added to portage

2026-07-21

prometheus-podman-exporter - 1.21.2
Ebuild name:

app-metrics/prometheus-podman-exporter-1.21.2

Description

Exporter for podman giving containers, pods, images,

Added to portage

2026-07-21

pyqtgraph - 0.14.0-r1
Ebuild name:

dev-python/pyqtgraph-0.14.0-r1

Description

A pure-python graphics and GUI library built on PyQt and numpy

Added to portage

2026-07-21

2026-07-20
acme-sh - 3.1.4
Ebuild name:

app-crypt/acme-sh-3.1.4

Description

A pure Unix shell script implementing ACME client protocol

Added to portage

2026-07-20

aws-c-auth - 0.10.4
Ebuild name:

dev-libs/aws-c-auth-0.10.4

Description

AWS C Auth C99 library implementation of AWS client-side authentication

Added to portage

2026-07-20

aws-c-cal - 0.9.14
Ebuild name:

dev-libs/aws-c-cal-0.9.14

Description

Crypto Abstraction Layer Cross-Platform C99 wrapper for cryptography prim

Added to portage

2026-07-20

aws-c-common - 0.14.2
Ebuild name:

dev-libs/aws-c-common-0.14.2

Description

Core c99 package for AWS SDK for C

Added to portage

2026-07-20

aws-c-compression - 0.3.2
Ebuild name:

dev-libs/aws-c-compression-0.3.2

Description

AWS C Compression cross-platform algorithms

Added to portage

2026-07-20

aws-c-event-stream - 0.7.1
Ebuild name:

dev-libs/aws-c-event-stream-0.7.1

Description

Core c99 package for AWS SDK for C

Added to portage

2026-07-20

aws-c-http - 0.11.0
Ebuild name:

dev-libs/aws-c-http-0.11.0

Description

AWS C Http C99 implementation of the HTTP/1.1 and HTTP/2 specifications

Added to portage

2026-07-20

aws-c-io - 0.27.4
Ebuild name:

dev-libs/aws-c-io-0.27.4

Description

AWS C IO It handles all IO and TLS work for application protocols

Added to portage

2026-07-20

aws-c-mqtt - 0.16.0
Ebuild name:

dev-libs/aws-c-mqtt-0.16.0

Description

AWS C MQTT C99 implementation

Added to portage

2026-07-20

aws-c-s3 - 0.13.1
Ebuild name:

dev-libs/aws-c-s3-0.13.1

Description

AWS C S3 async library

Added to portage

2026-07-20

aws-c-sdkutils - 0.2.7
Ebuild name:

dev-libs/aws-c-sdkutils-0.2.7

Description

AWS C SDKUTILS C99 library implementing AWS SDK specific utilities

Added to portage

2026-07-20

aws-checksums - 0.2.10
Ebuild name:

dev-libs/aws-checksums-0.2.10

Description

Cross-Platform HW accelerated CRC32c and CRC32 with fallback to SW

Added to portage

2026-07-20

aws-crt-cpp - 0.37.4
Ebuild name:

dev-cpp/aws-crt-cpp-0.37.4

Description

C++ wrapper around the aws-c-* libraries

Added to portage

2026-07-20

aws-sdk-cpp - 1.11.764
Ebuild name:

dev-cpp/aws-sdk-cpp-1.11.764

Description

AWS SDK for C++

Added to portage

2026-07-20

below - 9999
Ebuild name:

sys-process/below-9999

Description

An interactive tool to view and record historical system data

Added to portage

2026-07-20

bitarray - 3.9.1
Ebuild name:

dev-python/bitarray-3.9.1

Description

Efficient arrays of booleans -- C extension

Added to portage

2026-07-20

confuse - 2.2.1
Ebuild name:

dev-python/confuse-2.2.1

Description

Confuse is a configuration library for Python that uses YAML

Added to portage

2026-07-20

dulwich - 1.2.12
Ebuild name:

dev-python/dulwich-1.2.12

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-07-20

faust-cchardet - 2.2.1
Ebuild name:

dev-python/faust-cchardet-2.2.1

Description

High speed universal character encoding detector

Added to portage

2026-07-20

firefox-bin - 153.0
Ebuild name:

www-client/firefox-bin-153.0

Description

Firefox Web Browser

Added to portage

2026-07-20

fractal - 14.1
Ebuild name:

net-im/fractal-14.1

Description

Matrix messaging app for GNOME written in Rust

Added to portage

2026-07-20

gcc - 17.0.0_p20260719
Ebuild name:

sys-devel/gcc-17.0.0_p20260719

Description

The GNU Compiler Collection

Added to portage

2026-07-20

gherkin-official - 42.0.0
Ebuild name:

dev-python/gherkin-official-42.0.0

Description

Gherkin parser/compiler for Python

Added to portage

2026-07-20

git-sources - 7.2_rc4
Ebuild name:

sys-kernel/git-sources-7.2_rc4

Description

The very latest -git version of the Linux kernel

Added to portage

2026-07-20

gpredict - 2.5.2
Ebuild name:

media-radio/gpredict-2.5.2

Description

Real-time satellite tracking and orbit prediction application

Added to portage

2026-07-20

gulrak-filesystem - 1.5.16
Ebuild name:

dev-cpp/gulrak-filesystem-1.5.16

Description

Header-only single-file std compatible helper library

Added to portage

2026-07-20

helvum - 0.6.2
Ebuild name:

media-sound/helvum-0.6.2

Description

A GTK patchbay for pipewire

Added to portage

2026-07-20

htop - 3.5.2
Ebuild name:

sys-process/htop-3.5.2

Description

Interactive process viewer

Added to portage

2026-07-20

hypothesis - 6.157.0
Ebuild name:

dev-python/hypothesis-6.157.0

Description

A library for property based testing

Added to portage

2026-07-20

joserfc - 1.7.4
Ebuild name:

dev-python/joserfc-1.7.4

Description

A Python library for JOSE RFCs JWS, JWE, JWK, JWA, JWT

Added to portage

2026-07-20

jupyter-builder - 1.1.1-r1
Ebuild name:

dev-python/jupyter-builder-1.1.1-r1

Description

JupyterLab build tools

Added to portage

2026-07-20

kddockwidgets - 2.4.1
Ebuild name:

gui-libs/kddockwidgets-2.4.1

Description

KDAB's Dock Widget Framework for Qt

Added to portage

2026-07-20

libxmp - 4.7.1
Ebuild name:

media-libs/libxmp-4.7.1

Description

Library that renders module files to PCM data

Added to portage

2026-07-20

lowdown - 3.1.1
Ebuild name:

app-text/lowdown-3.1.1

Description

Markdown translator producing HTML5, roff documents in the ms and man format

Added to portage

2026-07-20

mpd - 0.24.12-r1
Ebuild name:

media-sound/mpd-0.24.12-r1

Description

The Music Player Daemon (mpd)

Added to portage

2026-07-20

onak - 0.6.4
Ebuild name:

app-crypt/onak-0.6.4

Description

onak is an OpenPGP keyserver

Added to portage

2026-07-20

openrdap - 0.10.1
Ebuild name:

net-misc/openrdap-0.10.1

Description

RDAP command line client

Added to portage

2026-07-20

pebble - 5.2.1
Ebuild name:

dev-python/pebble-5.2.1

Description

Threading and multiprocessing eye-candy

Added to portage

2026-07-20

postfix - 3.12_pre20260716
Ebuild name:

mail-mta/postfix-3.12_pre20260716

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-07-20

pyshp - 3.1.4
Ebuild name:

sci-libs/pyshp-3.1.4

Description

Pure Python read/write support for ESRI Shapefile format

Added to portage

2026-07-20

ruff - 0.15.22
Ebuild name:

dev-util/ruff-0.15.22

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-07-20

sdl2-mixer - 2.8.1-r4
Ebuild name:

media-libs/sdl2-mixer-2.8.1-r4

Description

Simple Direct Media Layer Mixer Library

Added to portage

2026-07-20

sdl2-mixer - 2.8.2-r1
Ebuild name:

media-libs/sdl2-mixer-2.8.2-r1

Description

Simple Direct Media Layer Mixer Library

Added to portage

2026-07-20

soupsieve - 2.9
Ebuild name:

dev-python/soupsieve-2.9

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-07-20

stb - 20260415-r1
Ebuild name:

dev-libs/stb-20260415-r1

Description

Single-file C/C++ libraries for various purposes

Added to portage

2026-07-20

term-ansicolor - 1.11.3-r1
Ebuild name:

dev-ruby/term-ansicolor-1.11.3-r1

Description

Small Ruby library that colors strings using ANSI escape sequence

Added to portage

2026-07-20

winbox - 4.3
Ebuild name:

app-admin/winbox-4.3

Description

Management Software for MikroTik RouterOS

Added to portage

2026-07-20

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