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:

87175

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-25
courier-common - 3.1.5-r2
Ebuild name:

net-mail/courier-common-3.1.5-r2

Description

Mail delivery agent/filter

Added to portage

2026-07-25

courier-common - 3.3.0
Ebuild name:

net-mail/courier-common-3.3.0

Description

Mail delivery agent/filter

Added to portage

2026-07-25

gentoolkit - 0.8.0
Ebuild name:

app-portage/gentoolkit-0.8.0

Description

Collection of administration scripts for Gentoo

Added to portage

2026-07-25

kodi - 22.0_beta1
Ebuild name:

media-tv/kodi-22.0_beta1

Description

A free and open source media-player and entertainment hub

Added to portage

2026-07-25

2026-07-24
android-studio - 2026.1.2.11
Ebuild name:

dev-util/android-studio-2026.1.2.11

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-07-24

annotated-types - 0.8.0
Ebuild name:

dev-python/annotated-types-0.8.0

Description

Reusable constraint types to use with typing.Annotated

Added to portage

2026-07-24

aws-crt-cpp - 0.37.4-r2
Ebuild name:

dev-cpp/aws-crt-cpp-0.37.4-r2

Description

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

Added to portage

2026-07-24

awscli - 1.45.55
Ebuild name:

app-admin/awscli-1.45.55

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-24

boto3 - 1.43.55
Ebuild name:

dev-python/boto3-1.43.55

Description

The AWS SDK for Python

Added to portage

2026-07-24

botocore - 1.43.55
Ebuild name:

dev-python/botocore-1.43.55

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-24

cachetools - 7.1.6
Ebuild name:

dev-python/cachetools-7.1.6

Description

Extensible memoizing collections and decorators

Added to portage

2026-07-24

cfn-lint - 1.53.2
Ebuild name:

dev-python/cfn-lint-1.53.2

Description

CloudFormation Linter

Added to portage

2026-07-24

dump1090 - 11.1
Ebuild name:

net-wireless/dump1090-11.1

Description

Simple Mode S decoder for RTLSDR devices

Added to portage

2026-07-24

geekbench - 7.0.0
Ebuild name:

app-benchmarks/geekbench-7.0.0

Description

A Cross-Platform Benchmark for Android, iOS, Linux, MacOS and Window

Added to portage

2026-07-24

gentoo-sources - 6.1.178
Ebuild name:

sys-kernel/gentoo-sources-6.1.178

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gentoo-sources - 6.12.97
Ebuild name:

sys-kernel/gentoo-sources-6.12.97

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gentoo-sources - 6.18.40
Ebuild name:

sys-kernel/gentoo-sources-6.18.40

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gentoo-sources - 6.6.145
Ebuild name:

sys-kernel/gentoo-sources-6.6.145

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gentoo-sources - 7.1.5
Ebuild name:

sys-kernel/gentoo-sources-7.1.5

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gnumach - 1.8_p20260630
Ebuild name:

sys-kernel/gnumach-1.8_p20260630

Description

GNU Mach microkernel, for the Hurd

Added to portage

2026-07-24

grpcio - 1.83.0
Ebuild name:

dev-python/grpcio-1.83.0

Description

HTTP/2-based RPC framework

Added to portage

2026-07-24

grpcio-status - 1.83.0
Ebuild name:

dev-python/grpcio-status-1.83.0

Description

Reference package for GRPC Python status proto mapping

Added to portage

2026-07-24

h2 - 4.4.0
Ebuild name:

dev-python/h2-4.4.0

Description

HTTP/2 State-Machine based protocol implementation

Added to portage

2026-07-24

httpx2 - 2.9.0
Ebuild name:

dev-python/httpx2-2.9.0

Description

The next generation HTTP client (Pydantic fork)

Added to portage

2026-07-24

hurd - 0.9_p20260630
Ebuild name:

sys-kernel/hurd-0.9_p20260630

Description

GNU Hurd is the GNU project's replacement for UNIX

Added to portage

2026-07-24

hypothesis - 6.161.1
Ebuild name:

dev-python/hypothesis-6.161.1

Description

A library for property based testing

Added to portage

2026-07-24

intellij-idea - 2026.2.0.1
Ebuild name:

dev-util/intellij-idea-2026.2.0.1

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-07-24

kirigami-app-components - 1.0.1-r1
Ebuild name:

dev-libs/kirigami-app-components-1.0.1-r1

Description

Kirigami addons and modules necessary to do a full featur

Added to portage

2026-07-24

lego - 5.3.1
Ebuild name:

app-crypt/lego-5.3.1

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2026-07-24

libacpica - 0_pre20220331_p7
Ebuild name:

sys-power/libacpica-0_pre20220331_p7

Description

ACPICA as a library

Added to portage

2026-07-24

metamath-mode - 0_p20221005
Ebuild name:

app-emacs/metamath-mode-0_p20221005

Description

Major GNU Emacs mode for metamath files

Added to portage

2026-07-24

mew - 6.8_p20230203
Ebuild name:

app-emacs/mew-6.8_p20230203

Description

Great MIME mail reader for Emacs/XEmacs

Added to portage

2026-07-24

mic-paren - 3.15-r1
Ebuild name:

app-emacs/mic-paren-3.15-r1

Description

Advanced highlighting of matching parentheses

Added to portage

2026-07-24

mldonkey - 0.0.4b-r2
Ebuild name:

app-emacs/mldonkey-0.0.4b-r2

Description

An Emacs Lisp interface to the MLDonkey core

Added to portage

2026-07-24

patatt - 0.8.0
Ebuild name:

dev-python/patatt-0.8.0

Description

A simple library to add cryptographic attestation to patches sent via email

Added to portage

2026-07-24

pkgcheck - 0.10.41
Ebuild name:

dev-util/pkgcheck-0.10.41

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-07-24

pkgcore - 0.12.36
Ebuild name:

sys-apps/pkgcore-0.12.36

Description

a framework for package management

Added to portage

2026-07-24

quart - 0.21.0
Ebuild name:

dev-python/quart-0.21.0

Description

A Python ASGI web microframework with the same API as Flask

Added to portage

2026-07-24

rnv - 1.7.11-r5
Ebuild name:

app-text/rnv-1.7.11-r5

Description

A lightweight Relax NG Compact Syntax validator

Added to portage

2026-07-24

rust - 1.97.1
Ebuild name:

dev-lang/rust-1.97.1

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-07-24

rust-bin - 1.97.1
Ebuild name:

dev-lang/rust-bin-1.97.1

Description

Added to portage

2026-07-24

rust-common - 1.97.1
Ebuild name:

dev-lang/rust-common-1.97.1

Description

Common files shared between multiple slots of Rust

Added to portage

2026-07-24

rust-std - 1.97.1
Ebuild name:

sys-devel/rust-std-1.97.1

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-07-24

snakeoil - 0.11.2
Ebuild name:

dev-python/snakeoil-0.11.2

Description

misc common functionality and useful optimizations

Added to portage

2026-07-24

stalwart-cli - 1.0.11
Ebuild name:

net-mail/stalwart-cli-1.0.11

Description

Stalwart Mail Server command line utility

Added to portage

2026-07-24

stalwart-mail - 0.16.14
Ebuild name:

net-mail/stalwart-mail-0.16.14

Description

Stalwart Mail Server

Added to portage

2026-07-24

telegram-desktop-bin - 7.0.5
Ebuild name:

net-im/telegram-desktop-bin-7.0.5

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-07-24

urwid - 4.0.6
Ebuild name:

dev-python/urwid-4.0.6

Description

Curses-based user interface library for Python

Added to portage

2026-07-24

uv - 0.11.32
Ebuild name:

dev-python/uv-0.11.32

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-07-24

uv-build - 0.11.32
Ebuild name:

dev-python/uv-build-0.11.32

Description

PEP517 uv build backend

Added to portage

2026-07-24

vanilla-sources - 6.1.178
Ebuild name:

sys-kernel/vanilla-sources-6.1.178

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

vanilla-sources - 6.12.97
Ebuild name:

sys-kernel/vanilla-sources-6.12.97

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

vanilla-sources - 6.18.40
Ebuild name:

sys-kernel/vanilla-sources-6.18.40

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

vanilla-sources - 6.6.145
Ebuild name:

sys-kernel/vanilla-sources-6.6.145

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

vanilla-sources - 7.1.5
Ebuild name:

sys-kernel/vanilla-sources-7.1.5

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

webrtc-audio-processing - 1.3-r5
Ebuild name:

media-libs/webrtc-audio-processing-1.3-r5

Description

AudioProcessing library from the webrtc.org codebase

Added to portage

2026-07-24

xvfbwrapper - 0.2.29
Ebuild name:

dev-python/xvfbwrapper-0.2.29

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-07-24

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