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:

83786

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-03-17
2026-03-16
DBD-SQLite - 1.780.0
Ebuild name:

dev-perl/DBD-SQLite-1.780.0

Description

Self Contained RDBMS in a DBI Driver

Added to portage

2026-03-16

DBIx-Migration - 0.320.0
Ebuild name:

dev-perl/DBIx-Migration-0.320.0

Description

Seamless DB schema up- and downgrades

Added to portage

2026-03-16

Date-Manip - 6.990.0
Ebuild name:

dev-perl/Date-Manip-6.990.0

Description

Perl date manipulation routines

Added to portage

2026-03-16

DateTime-Format-ISO8601 - 0.190.0
Ebuild name:

dev-perl/DateTime-Format-ISO8601-0.190.0

Description

Parses ISO8601 formats

Added to portage

2026-03-16

DateTime-Format-Natural - 1.250.0
Ebuild name:

dev-perl/DateTime-Format-Natural-1.250.0

Description

Parse informal natural language date/time strings

Added to portage

2026-03-16

DateTime-Format-Strptime - 1.800.0
Ebuild name:

dev-perl/DateTime-Format-Strptime-1.800.0

Description

Parse and Format DateTimes using Strptime

Added to portage

2026-03-16

DateTime-TimeZone - 2.670.0
Ebuild name:

dev-perl/DateTime-TimeZone-2.670.0

Description

Time zone object base class and factory

Added to portage

2026-03-16

Devel-Cover - 1.520.0
Ebuild name:

dev-perl/Devel-Cover-1.520.0

Description

Code coverage metrics for Perl

Added to portage

2026-03-16

Devel-Hide - 0.1.600
Ebuild name:

dev-perl/Devel-Hide-0.1.600

Description

Forces the unavailability of specified Perl modules (for testing)

Added to portage

2026-03-16

Devel-PatchPerl - 2.140.0
Ebuild name:

dev-perl/Devel-PatchPerl-2.140.0

Description

Patch perl source a la Devel buildperl.pl

Added to portage

2026-03-16

Devel-Size - 0.860.0
Ebuild name:

dev-perl/Devel-Size-0.860.0

Description

Perl extension for finding the memory usage of Perl variables

Added to portage

2026-03-16

Dist-Milla - 1.0.22
Ebuild name:

dev-perl/Dist-Milla-1.0.22

Description

Distribution builder, Opinionated but Unobtrusive

Added to portage

2026-03-16

Dist-Zilla - 6.37.0
Ebuild name:

dev-perl/Dist-Zilla-6.37.0

Description

Distribution builder; installer not included

Added to portage

2026-03-16

Dist-Zilla-Plugin-Git-Contributors - 0.39.0
Ebuild name:

dev-perl/Dist-Zilla-Plugin-Git-Contributors-0.39.0

Description

Add contributor names from git to your distribut

Added to portage

2026-03-16

apsw - 3.51.3.0
Ebuild name:

dev-python/apsw-3.51.3.0

Description

APSW - Another Python SQLite Wrapper

Added to portage

2026-03-16

atuin - 18.13.2
Ebuild name:

app-shells/atuin-18.13.2

Description

Shell history manager supporting encrypted synchronisation

Added to portage

2026-03-16

babl - 0.1.124
Ebuild name:

media-libs/babl-0.1.124

Description

A dynamic, any to any, pixel format conversion library

Added to portage

2026-03-16

bnd - 7.2.1
Ebuild name:

dev-java/bnd-7.2.1

Description

bndlib A Swiss Army Knife for OSGi

Added to portage

2026-03-16

bnd-annotation - 7.2.1
Ebuild name:

dev-java/bnd-annotation-7.2.1

Description

bnd Annotations Library

Added to portage

2026-03-16

bnd-ant - 7.2.1
Ebuild name:

dev-java/bnd-ant-7.2.1

Description

Bnd Ant Tasks

Added to portage

2026-03-16

bnd-util - 7.2.1
Ebuild name:

dev-java/bnd-util-7.2.1

Description

AQute Bnd Utilities

Added to portage

2026-03-16

bndlib - 7.2.1
Ebuild name:

dev-java/bndlib-7.2.1

Description

bndlib A Swiss Army Knife for OSGi

Added to portage

2026-03-16

charset-normalizer - 3.4.6
Ebuild name:

dev-python/charset-normalizer-3.4.6

Description

The Real First Universal Charset Detector

Added to portage

2026-03-16

croniter - 6.2.2
Ebuild name:

dev-python/croniter-6.2.2

Description

Python module to provide iteration for datetime object

Added to portage

2026-03-16

eclipse-ecj - 4.39
Ebuild name:

dev-java/eclipse-ecj-4.39

Description

Eclipse Compiler for Java

Added to portage

2026-03-16

framework-tool-tui - 0.8.2
Ebuild name:

app-laptop/framework-tool-tui-0.8.2

Description

TUI for controlling and monitoring Framework Computers hardware

Added to portage

2026-03-16

freerdp - 3.24.0
Ebuild name:

net-misc/freerdp-3.24.0

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-03-16

fuse-common - 3.10.4-r3
Ebuild name:

sys-fs/fuse-common-3.10.4-r3

Description

Common files for multiple slots of sys-fs/fuse

Added to portage

2026-03-16

gcc - 16.0.1_p20260315
Ebuild name:

sys-devel/gcc-16.0.1_p20260315

Description

The GNU Compiler Collection

Added to portage

2026-03-16

gegl - 0.4.68
Ebuild name:

media-libs/gegl-0.4.68

Description

A graph based image processing framework

Added to portage

2026-03-16

gentoo-dtd - 20230914-r1
Ebuild name:

app-text/gentoo-dtd-20230914-r1

Description

Document Type Definition for Gentoo-related XML files

Added to portage

2026-03-16

gimp - 3.2.0
Ebuild name:

media-gfx/gimp-3.2.0

Description

GNU Image Manipulation Program

Added to portage

2026-03-16

git-credential-manager - 2.7.3
Ebuild name:

dev-vcs/git-credential-manager-2.7.3

Description

Secure Git credential storage supporing GitHub, Azure Repos, a

Added to portage

2026-03-16

git-sources - 7.0_rc4
Ebuild name:

sys-kernel/git-sources-7.0_rc4

Description

The very latest -git version of the Linux kernel

Added to portage

2026-03-16

gnumach - 1.8_p20260224
Ebuild name:

sys-kernel/gnumach-1.8_p20260224

Description

GNU Mach microkernel, for the Hurd

Added to portage

2026-03-16

gnumach - 9999
Ebuild name:

sys-kernel/gnumach-9999

Description

GNU Mach microkernel, for the Hurd

Added to portage

2026-03-16

hurd - 0.9_p20251029
Ebuild name:

sys-kernel/hurd-0.9_p20251029

Description

GNU Hurd is the GNU project's replacement for UNIX

Added to portage

2026-03-16

hurd - 9999
Ebuild name:

sys-kernel/hurd-9999

Description

GNU Hurd is the GNU project's replacement for UNIX

Added to portage

2026-03-16

identify - 2.6.18
Ebuild name:

dev-python/identify-2.6.18

Description

File identification library for Python

Added to portage

2026-03-16

kgeotag - 2.0.0
Ebuild name:

media-gfx/kgeotag-2.0.0

Description

Photo geotagging program

Added to portage

2026-03-16

kitty - 0.46.1
Ebuild name:

x11-terms/kitty-0.46.1

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-03-16

kitty-shell-integration - 0.46.1
Ebuild name:

x11-terms/kitty-shell-integration-0.46.1

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2026-03-16

kitty-terminfo - 0.46.1
Ebuild name:

x11-terms/kitty-terminfo-0.46.1

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-03-16

kphotoalbum - 6.2.0
Ebuild name:

media-gfx/kphotoalbum-6.2.0

Description

Tool for indexing, searching, and viewing images

Added to portage

2026-03-16

libg - 7.2.1
Ebuild name:

dev-java/libg-7.2.1

Description

A library to be statically linked. Contains many small utilities

Added to portage

2026-03-16

lldpd - 1.0.21
Ebuild name:

net-misc/lldpd-1.0.21

Description

Implementation of IEEE 802.1ab (LLDP)

Added to portage

2026-03-16

logger - 0-r3
Ebuild name:

virtual/logger-0-r3

Description

Virtual for system loggers

Added to portage

2026-03-16

marknote - 1.5.0
Ebuild name:

app-text/marknote-1.5.0

Description

Markdown editor with a wide range of formating options for everyday notes

Added to portage

2026-03-16

maven-bin - 3.9.14
Ebuild name:

dev-java/maven-bin-3.9.14

Description

Project Management and Comprehension Tool for Java

Added to portage

2026-03-16

mig - 1.8_p20231217
Ebuild name:

dev-util/mig-1.8_p20231217

Description

GNU Mach 3.0 interface generator (IDL compiler)

Added to portage

2026-03-16

mig - 9999
Ebuild name:

dev-util/mig-9999

Description

GNU Mach 3.0 interface generator (IDL compiler)

Added to portage

2026-03-16

nginx-mode - 1.1.10
Ebuild name:

app-emacs/nginx-mode-1.1.10

Description

Emacs editing mode for Nginx config files

Added to portage

2026-03-16

nim-mode - 0.4.2_p20231101
Ebuild name:

app-emacs/nim-mode-0.4.2_p20231101

Description

Emacs major mode for the Nim programming language support

Added to portage

2026-03-16

pass - 1.7.4-r5
Ebuild name:

app-admin/pass-1.7.4-r5

Description

Stores, retrieves, generates, and synchronizes passwords securely

Added to portage

2026-03-16

peewee - 4.0.2
Ebuild name:

dev-python/peewee-4.0.2

Description

Small Python ORM

Added to portage

2026-03-16

pipewire - 1.6.2
Ebuild name:

media-video/pipewire-1.6.2

Description

Multimedia processing graphs

Added to portage

2026-03-16

prowlarr-bin - 2.3.4.5307
Ebuild name:

www-apps/prowlarr-bin-2.3.4.5307

Description

An indexer manager/proxy to integrate with your various PVR apps

Added to portage

2026-03-16

pyfakefs - 6.1.5
Ebuild name:

dev-python/pyfakefs-6.1.5

Description

A fake file system that mocks the Python file system modules

Added to portage

2026-03-16

pyopenssl - 26.0.0
Ebuild name:

dev-python/pyopenssl-26.0.0

Description

Python interface to the OpenSSL library

Added to portage

2026-03-16

pypdf - 6.9.0
Ebuild name:

dev-python/pypdf-6.9.0

Description

Python library to work with PDF files

Added to portage

2026-03-16

ruff - 0.15.6
Ebuild name:

dev-util/ruff-0.15.6

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-03-16

simdjson - 4.4.0
Ebuild name:

dev-libs/simdjson-4.4.0

Description

SIMD accelerated C++ JSON library

Added to portage

2026-03-16

systemd - 259.3-r2
Ebuild name:

sys-apps/systemd-259.3-r2

Description

System and service manager for Linux

Added to portage

2026-03-16

systemd - 259.4-r1
Ebuild name:

sys-apps/systemd-259.4-r1

Description

System and service manager for Linux

Added to portage

2026-03-16

taglib - 2.2.1
Ebuild name:

media-libs/taglib-2.2.1

Description

Library for reading and editing audio meta data

Added to portage

2026-03-16

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