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:

89183

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-10-15
fastsimdjson - 0.8.0
Ebuild name:

dev-python/fastsimdjson-0.8.0

Description

fast JSON in Python

Added to portage

2026-10-15

nodejs - 24.22.0
Ebuild name:

net-libs/nodejs-24.22.0

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-10-15

nodejs - 26.12.0
Ebuild name:

net-libs/nodejs-26.12.0

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-10-15

zmij - 1.2
Ebuild name:

dev-libs/zmij-1.2

Description

A fast floating-point-to-string conversion library for C and C++

Added to portage

2026-10-15

2026-10-14
ant - 1.10.15-r2
Ebuild name:

dev-java/ant-1.10.15-r2

Description

Java-based build tool similar to 'make' that uses XML configuration files

Added to portage

2026-10-14

ant - 1.10.18
Ebuild name:

dev-java/ant-1.10.18

Description

Java-based build tool similar to 'make' that uses XML configuration files

Added to portage

2026-10-14

awscli - 2.38.0
Ebuild name:

app-admin/awscli-2.38.0

Description

Universal Command Line Environment for AWS

Added to portage

2026-10-14

boto3 - 1.43.113
Ebuild name:

dev-python/boto3-1.43.113

Description

The AWS SDK for Python

Added to portage

2026-10-14

botocore - 1.43.113
Ebuild name:

dev-python/botocore-1.43.113

Description

Low-level, data-driven core of boto 3

Added to portage

2026-10-14

bpf-linker - 0.12.0
Ebuild name:

dev-util/bpf-linker-0.12.0

Description

Simple BPF static linker

Added to portage

2026-10-14

bsh - 3.0.0_rc1
Ebuild name:

dev-java/bsh-3.0.0_rc1

Description

A small embeddable Java source interpreter

Added to portage

2026-10-14

bsh-bsf-engine - 3.0.0_rc1
Ebuild name:

dev-java/bsh-bsf-engine-3.0.0_rc1

Description

Beanshell BSF engine

Added to portage

2026-10-14

cramjam - 2.14.0
Ebuild name:

dev-python/cramjam-2.14.0

Description

Thin Python bindings to de/compression algorithms in Rust

Added to portage

2026-10-14

crengine-ng - 0.9.14.1
Ebuild name:

app-text/crengine-ng-0.9.14.1

Description

Cross-platform library designed to implement e-book readers

Added to portage

2026-10-14

curl - 8.23.0
Ebuild name:

net-misc/curl-8.23.0

Description

A Client that groks URLs

Added to portage

2026-10-14

datasets - 5.1.0
Ebuild name:

sci-ml/datasets-5.1.0

Description

Access and share datasets for Audio, Computer Vision, and NLP tasks

Added to portage

2026-10-14

firefox - 153.5.0
Ebuild name:

www-client/firefox-153.5.0

Description

Firefox Web Browser

Added to portage

2026-10-14

firefox-bin - 153.5.0
Ebuild name:

www-client/firefox-bin-153.5.0

Description

Firefox Web Browser

Added to portage

2026-10-14

firefox-l10n - 153.5.0
Ebuild name:

www-client/firefox-l10n-153.5.0

Description

Firefox Web Browser's translation files

Added to portage

2026-10-14

freetype - 2.15.0
Ebuild name:

media-libs/freetype-2.15.0

Description

High-quality and portable font engine

Added to portage

2026-10-14

gcc - 17.0.0_p20261011-r1
Ebuild name:

sys-devel/gcc-17.0.0_p20261011-r1

Description

The GNU Compiler Collection

Added to portage

2026-10-14

glibc - 2.43-r6
Ebuild name:

sys-libs/glibc-2.43-r6

Description

GNU libc C library

Added to portage

2026-10-14

glibc - 2.44-r4
Ebuild name:

sys-libs/glibc-2.44-r4

Description

GNU libc C library

Added to portage

2026-10-14

gpxsee - 16.17
Ebuild name:

sci-geosciences/gpxsee-16.17

Description

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

Added to portage

2026-10-14

grafana-bin - 12.4.13
Ebuild name:

www-apps/grafana-bin-12.4.13

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Ope

Added to portage

2026-10-14

grafana-bin - 13.1.8
Ebuild name:

www-apps/grafana-bin-13.1.8

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2026-10-14

grafana-bin - 13.2.4
Ebuild name:

www-apps/grafana-bin-13.2.4

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2026-10-14

haproxy - 3.0.30
Ebuild name:

net-proxy/haproxy-3.0.30

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-10-14

haproxy - 3.2.26
Ebuild name:

net-proxy/haproxy-3.2.26

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-10-14

haproxy - 3.4.7
Ebuild name:

net-proxy/haproxy-3.4.7

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-10-14

haxe-mode - 0.3.3
Ebuild name:

app-emacs/haxe-mode-0.3.3

Description

Major mode for editing Haxe files

Added to portage

2026-10-14

huggingface_hub - 1.26.1
Ebuild name:

sci-ml/huggingface_hub-1.26.1

Description

a client library to interact with the Hugging Face Hub

Added to portage

2026-10-14

huggingface_hub - 1.31.0
Ebuild name:

sci-ml/huggingface_hub-1.31.0

Description

a client library to interact with the Hugging Face Hub

Added to portage

2026-10-14

hypothesis - 6.169.1
Ebuild name:

dev-python/hypothesis-6.169.1

Description

A library for property based testing

Added to portage

2026-10-14

incus - 7.5.1
Ebuild name:

app-containers/incus-7.5.1

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-10-14

ispc - 1.32.0
Ebuild name:

dev-lang/ispc-1.32.0

Description

Intel SPMD Program Compiler

Added to portage

2026-10-14

jemalloc - 5.4.0-r2
Ebuild name:

dev-libs/jemalloc-5.4.0-r2

Description

Jemalloc is a general-purpose scalable concurrent allocator

Added to portage

2026-10-14

libpng - 1.6.59-r1
Ebuild name:

media-libs/libpng-1.6.59-r1

Description

Portable Network Graphics library

Added to portage

2026-10-14

libzip - 1.12-r1
Ebuild name:

dev-libs/libzip-1.12-r1

Description

Library for manipulating zip archives

Added to portage

2026-10-14

markdown - 3.11.1
Ebuild name:

dev-python/markdown-3.11.1

Description

Python implementation of the markdown markup language

Added to portage

2026-10-14

moarvm - 2026.09
Ebuild name:

dev-lang/moarvm-2026.09

Description

A 6model-based VM for NQP and Raku

Added to portage

2026-10-14

nodejs - 24.21.0-r1
Ebuild name:

net-libs/nodejs-24.21.0-r1

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-10-14

nqp - 2026.09
Ebuild name:

dev-lang/nqp-2026.09

Description

Not Quite Perl, a Raku bootstrapping compiler

Added to portage

2026-10-14

openntpd - 7.9_p1
Ebuild name:

net-misc/openntpd-7.9_p1

Description

Lightweight NTP server ported from OpenBSD

Added to portage

2026-10-14

podman - 6.1.4
Ebuild name:

app-containers/podman-6.1.4

Description

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

Added to portage

2026-10-14

pudb - 2026.1
Ebuild name:

dev-python/pudb-2026.1

Description

A full-screen, console-based Python debugger

Added to portage

2026-10-14

python-utils - 4.1.2
Ebuild name:

dev-python/python-utils-4.1.2

Description

Collection of small Python functions & classes

Added to portage

2026-10-14

pyzotero - 1.16.0
Ebuild name:

dev-python/pyzotero-1.16.0

Description

A Python client for the Zotero API

Added to portage

2026-10-14

rakudo - 2026.09
Ebuild name:

dev-lang/rakudo-2026.09

Description

A compiler for the Raku programming language

Added to portage

2026-10-14

rutorrent - 5.3.16
Ebuild name:

www-apps/rutorrent-5.3.16

Description

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

Added to portage

2026-10-14

sphinx-autodoc-typehints - 3.13.10
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.13.10

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-10-14

sphinxcontrib-httpdomain - 2.2.0
Ebuild name:

dev-python/sphinxcontrib-httpdomain-2.2.0

Description

Sphinx domain for documenting HTTP APIs

Added to portage

2026-10-14

starlette - 1.8.0
Ebuild name:

dev-python/starlette-1.8.0

Description

The little ASGI framework that shines

Added to portage

2026-10-14

thunderbird - 153.5.0
Ebuild name:

mail-client/thunderbird-153.5.0

Description

Thunderbird Mail Client

Added to portage

2026-10-14

thunderbird - 158.0
Ebuild name:

mail-client/thunderbird-158.0

Description

Thunderbird Mail Client

Added to portage

2026-10-14

thunderbird-bin - 153.5.0
Ebuild name:

mail-client/thunderbird-bin-153.5.0

Description

Thunderbird Mail Client

Added to portage

2026-10-14

thunderbird-bin - 158.0
Ebuild name:

mail-client/thunderbird-bin-158.0

Description

Thunderbird Mail Client

Added to portage

2026-10-14

thunderbird-l10n - 153.5.0
Ebuild name:

mail-client/thunderbird-l10n-153.5.0

Description

Thunderbird mail client's translation files

Added to portage

2026-10-14

thunderbird-l10n - 158.0
Ebuild name:

mail-client/thunderbird-l10n-158.0

Description

Thunderbird mail client's translation files

Added to portage

2026-10-14

tox - 4.65.5
Ebuild name:

dev-python/tox-4.65.5

Description

virtualenv-based automation of test activities

Added to portage

2026-10-14

vnstat - 2.13-r3
Ebuild name:

net-analyzer/vnstat-2.13-r3

Description

Console-based network traffic monitor that keeps statistics of network

Added to portage

2026-10-14

wrapt - 2.5.1
Ebuild name:

dev-python/wrapt-2.5.1

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-10-14

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