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:

86221

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-24
ant-ivy - 2.5.3
Ebuild name:

dev-java/ant-ivy-2.5.3

Description

Ivy is a free java based dependency manager

Added to portage

2026-06-24

assertj-core - 3.27.7
Ebuild name:

dev-java/assertj-core-3.27.7

Description

Rich and fluent assertions for testing for Java

Added to portage

2026-06-24

awscli - 1.45.35
Ebuild name:

app-admin/awscli-1.45.35

Description

Universal Command Line Environment for AWS

Added to portage

2026-06-24

bcmail - 1.84
Ebuild name:

dev-java/bcmail-1.84

Description

The Bouncy Castle Java S/MIME APIs for handling S/MIME protocols

Added to portage

2026-06-24

bcpg - 1.84
Ebuild name:

dev-java/bcpg-1.84

Description

Java cryptography APIs

Added to portage

2026-06-24

bcpkix - 1.84
Ebuild name:

dev-java/bcpkix-1.84

Description

Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation

Added to portage

2026-06-24

bcprov - 1.84
Ebuild name:

dev-java/bcprov-1.84

Description

Java cryptography APIs

Added to portage

2026-06-24

bcutil - 1.84
Ebuild name:

dev-java/bcutil-1.84

Description

Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctl

Added to portage

2026-06-24

bear - 4.1.4
Ebuild name:

dev-util/bear-4.1.4

Description

A tool that generates a compilation database for clang tooling

Added to portage

2026-06-24

blake3 - 1.0.9
Ebuild name:

dev-python/blake3-1.0.9

Description

Python bindings for the BLAKE3 cryptographic hash function

Added to portage

2026-06-24

boto3 - 1.43.35
Ebuild name:

dev-python/boto3-1.43.35

Description

The AWS SDK for Python

Added to portage

2026-06-24

botocore - 1.43.35
Ebuild name:

dev-python/botocore-1.43.35

Description

Low-level, data-driven core of boto 3

Added to portage

2026-06-24

coverage - 7.14.3
Ebuild name:

dev-python/coverage-7.14.3

Description

Code coverage measurement for Python

Added to portage

2026-06-24

cutechess - 1.5.1
Ebuild name:

games-board/cutechess-1.5.1

Description

Cross-platform tools for working with chess engines

Added to portage

2026-06-24

deepmerge - 2.1.0
Ebuild name:

dev-python/deepmerge-2.1.0

Description

Tools to handle merging of nested data structures in python

Added to portage

2026-06-24

desktop-file-utils - 0.28-r1
Ebuild name:

dev-util/desktop-file-utils-0.28-r1

Description

Command line utilities to work with desktop menu entries

Added to portage

2026-06-24

duckdb - 1.5.4
Ebuild name:

dev-db/duckdb-1.5.4

Description

high-performance analytical database system

Added to portage

2026-06-24

fgl - 5.8.3.1
Ebuild name:

dev-haskell/fgl-5.8.3.1

Description

Martin Erwig's Functional Graph Library

Added to portage

2026-06-24

gentoo-dtd - 20260615
Ebuild name:

app-text/gentoo-dtd-20260615

Description

Document Type Definition for Gentoo-related XML files

Added to portage

2026-06-24

gnome-commander - 2.0.3
Ebuild name:

gnome-extra/gnome-commander-2.0.3

Description

A graphical, full featured, twin-panel file manager

Added to portage

2026-06-24

gnu-regexp - 1.1.4-r5
Ebuild name:

dev-java/gnu-regexp-1.1.4-r5

Description

GNU regular expression package for Java

Added to portage

2026-06-24

hspec-contrib - 0.5.2
Ebuild name:

dev-haskell/hspec-contrib-0.5.2

Description

Contributed functionality for Hspec

Added to portage

2026-06-24

jackcess - 4.0.10
Ebuild name:

dev-java/jackcess-4.0.10

Description

A pure Java library for reading from and writing to MS Access databases

Added to portage

2026-06-24

just - 1.52.0
Ebuild name:

dev-build/just-1.52.0

Description

Just a command runner (with syntax inspired by 'make')

Added to portage

2026-06-24

log4j-12-api - 2.26.0
Ebuild name:

dev-java/log4j-12-api-2.26.0

Description

The Apache Log4j 1.x Compatibility API

Added to portage

2026-06-24

log4j-api - 2.26.0
Ebuild name:

dev-java/log4j-api-2.26.0

Description

The Apache Log4j API

Added to portage

2026-06-24

log4j-core - 2.26.0
Ebuild name:

dev-java/log4j-core-2.26.0

Description

The Apache Log4j Implementation

Added to portage

2026-06-24

mistune - 3.3.2
Ebuild name:

dev-python/mistune-3.3.2

Description

The fastest markdown parser in pure Python

Added to portage

2026-06-24

perl - 5.44.0_rc1
Ebuild name:

dev-lang/perl-5.44.0_rc1

Description

Larry Wall's Practical Extraction and Report Language

Added to portage

2026-06-24

phonenumbers - 9.0.33
Ebuild name:

dev-python/phonenumbers-9.0.33

Description

Python port of Google's libphonenumber

Added to portage

2026-06-24

poi - 5.5.1
Ebuild name:

dev-java/poi-5.5.1

Description

Java API to access Mocrosoft format files

Added to portage

2026-06-24

prettytable - 3.18.0
Ebuild name:

dev-python/prettytable-3.18.0

Description

Easily displaying tabular data in a visually appealing ASCII table fo

Added to portage

2026-06-24

pyfuse3 - 3.5.0
Ebuild name:

dev-python/pyfuse3-3.5.0

Description

Python 3 bindings for libfuse 3 with asynchronous API

Added to portage

2026-06-24

pypdf - 6.14.0
Ebuild name:

dev-python/pypdf-6.14.0

Description

Python library to work with PDF files

Added to portage

2026-06-24

python - 0.3.15.0_beta3
Ebuild name:

dev-lang/python-0.3.15.0_beta3

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-06-24

python - 3.15.0_beta3
Ebuild name:

dev-lang/python-3.15.0_beta3

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-06-24

python-tests - 0.3.15.0_beta3
Ebuild name:

dev-python/python-tests-0.3.15.0_beta3

Description

Test modules from dev-lang/python

Added to portage

2026-06-24

python-tests - 3.15.0_beta3
Ebuild name:

dev-python/python-tests-3.15.0_beta3

Description

Test modules from dev-lang/python

Added to portage

2026-06-24

sccache - 0.16.0
Ebuild name:

dev-util/sccache-0.16.0

Description

ccache/distcc like tool with support for rust and cloud storage

Added to portage

2026-06-24

setuptools-scm - 10.1.1
Ebuild name:

dev-python/setuptools-scm-10.1.1

Description

Manage versions by scm tags via setuptools

Added to portage

2026-06-24

setuptools-scm - 10.1.2
Ebuild name:

dev-python/setuptools-scm-10.1.2

Description

Manage versions by scm tags via setuptools

Added to portage

2026-06-24

shellcheck - 0.11.0
Ebuild name:

dev-util/shellcheck-0.11.0

Description

Shell script analysis tool

Added to portage

2026-06-24

shelltestrunner - 1.11
Ebuild name:

dev-util/shelltestrunner-1.11

Description

Easy, repeatable testing of CLI programs/commands

Added to portage

2026-06-24

sqlmap - 1.10.6
Ebuild name:

dev-db/sqlmap-1.10.6

Description

An automatic SQL injection and database takeover tool

Added to portage

2026-06-24

trang - 20241231-r1
Ebuild name:

app-text/trang-20241231-r1

Description

Multi-format schema converter based on RELAX NG

Added to portage

2026-06-24

translate-toolkit - 3.19.12
Ebuild name:

dev-python/translate-toolkit-3.19.12

Description

Toolkit to convert between many translation formats

Added to portage

2026-06-24

unison-lang-bin - 1.3.0-r1
Ebuild name:

dev-lang/unison-lang-bin-1.3.0-r1

Description

A friendly programming language from the future

Added to portage

2026-06-24

vcs-versioning - 2.1.0
Ebuild name:

dev-python/vcs-versioning-2.1.0

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-06-24

yara-x - 1.18.0
Ebuild name:

app-forensics/yara-x-1.18.0

Description

A malware identification and classification tool

Added to portage

2026-06-24

zeroconf - 0.150.0
Ebuild name:

dev-python/zeroconf-0.150.0

Description

Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi comp

Added to portage

2026-06-24

2026-06-23
courier - 2.0.1
Ebuild name:

mail-mta/courier-2.0.1

Description

An MTA designed specifically for maildirs

Added to portage

2026-06-23

courier-authlib - 0.73.0
Ebuild name:

net-libs/courier-authlib-0.73.0

Description

Courier authentication library

Added to portage

2026-06-23

courier-unicode - 2.6.0
Ebuild name:

net-libs/courier-unicode-2.6.0

Description

Unicode library used by the courier mail server

Added to portage

2026-06-23

pkgcheck - 0.10.39-r1
Ebuild name:

dev-util/pkgcheck-0.10.39-r1

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-06-23

rspamd - 4.0.1-r1
Ebuild name:

mail-filter/rspamd-4.0.1-r1

Description

Rapid spam filtering system

Added to portage

2026-06-23

rspamd - 4.1.1
Ebuild name:

mail-filter/rspamd-4.1.1

Description

Rapid spam filtering system

Added to portage

2026-06-23

spyder-kernels - 3.1.4_p20260622
Ebuild name:

dev-python/spyder-kernels-3.1.4_p20260622

Description

Kernels used by spyder on its ipython console

Added to portage

2026-06-23

zdkimfilter - 3.24
Ebuild name:

mail-filter/zdkimfilter-3.24

Description

DKIM filter for Courier-MTA

Added to portage

2026-06-23

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