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:

87400

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-08-04
FBGEMM - 1.7.0-r1
Ebuild name:

sci-ml/FBGEMM-1.7.0-r1

Description

Facebook GEneral Matrix Multiplication

Added to portage

2026-08-04

2026-08-03
coverage - 7.15.3
Ebuild name:

dev-python/coverage-7.15.3

Description

Code coverage measurement for Python

Added to portage

2026-08-03

cpp-httplib - 0.51.0
Ebuild name:

dev-cpp/cpp-httplib-0.51.0

Description

C++ HTTP/HTTPS server and client library

Added to portage

2026-08-03

curl - 8.21.0-r1
Ebuild name:

net-misc/curl-8.21.0-r1

Description

A Client that groks URLs

Added to portage

2026-08-03

dist-kernel - 6.12.101
Ebuild name:

virtual/dist-kernel-6.12.101

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-03

dist-kernel - 6.18.42
Ebuild name:

virtual/dist-kernel-6.18.42

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-03

dist-kernel - 6.6.148
Ebuild name:

virtual/dist-kernel-6.6.148

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-03

dist-kernel - 7.1.6
Ebuild name:

virtual/dist-kernel-7.1.6

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-03

flrig - 2.0.10-r1
Ebuild name:

media-radio/flrig-2.0.10-r1

Description

Transceiver control program for Amateur Radio use

Added to portage

2026-08-03

gallery-dl - 1.32.9
Ebuild name:

net-misc/gallery-dl-1.32.9

Description

Download image galleries and collections from several image hosting site

Added to portage

2026-08-03

gcc - 13.4.1_p20260729
Ebuild name:

sys-devel/gcc-13.4.1_p20260729

Description

The GNU Compiler Collection

Added to portage

2026-08-03

gcc - 14.4.1_p20260730
Ebuild name:

sys-devel/gcc-14.4.1_p20260730

Description

The GNU Compiler Collection

Added to portage

2026-08-03

gcc - 15.3.1_p20260731
Ebuild name:

sys-devel/gcc-15.3.1_p20260731

Description

The GNU Compiler Collection

Added to portage

2026-08-03

gcc - 16.1.1_p20260731
Ebuild name:

sys-devel/gcc-16.1.1_p20260731

Description

The GNU Compiler Collection

Added to portage

2026-08-03

gcc - 17.0.0_p20260802
Ebuild name:

sys-devel/gcc-17.0.0_p20260802

Description

The GNU Compiler Collection

Added to portage

2026-08-03

gentoo-kernel - 6.12.101
Ebuild name:

sys-kernel/gentoo-kernel-6.12.101

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-03

gentoo-kernel - 6.18.42
Ebuild name:

sys-kernel/gentoo-kernel-6.18.42

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-03

gentoo-kernel - 6.6.148
Ebuild name:

sys-kernel/gentoo-kernel-6.6.148

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-03

gentoo-kernel - 7.1.6
Ebuild name:

sys-kernel/gentoo-kernel-7.1.6

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-03

gentoo-kernel-bin - 6.12.101
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.101

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-03

gentoo-kernel-bin - 6.18.42
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.42

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-03

gentoo-kernel-bin - 6.6.148
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.148

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-03

gentoo-kernel-bin - 7.1.6
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.6

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-03

gentoo-kernel-modprep - 6.12.101
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.101

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-03

gentoo-kernel-modprep - 6.18.42
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.42

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-03

gentoo-kernel-modprep - 6.6.148
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.148

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-08-03

gentoo-kernel-modprep - 7.1.6
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.6

Description

Minimal subset of gentoo-kernel-bin for building modules, fo

Added to portage

2026-08-03

gentoo-retirement-scripts - 3
Ebuild name:

app-admin/gentoo-retirement-scripts-3

Description

Scripts to help retiring Gentoo developers

Added to portage

2026-08-03

gentoo-sources - 6.12.101
Ebuild name:

sys-kernel/gentoo-sources-6.12.101

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-03

gentoo-sources - 6.18.42
Ebuild name:

sys-kernel/gentoo-sources-6.18.42

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-03

gentoo-sources - 6.6.148
Ebuild name:

sys-kernel/gentoo-sources-6.6.148

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-03

gentoo-sources - 7.1.6
Ebuild name:

sys-kernel/gentoo-sources-7.1.6

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-03

git-sources - 7.2_rc6
Ebuild name:

sys-kernel/git-sources-7.2_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2026-08-03

ideep - 3.12
Ebuild name:

sci-ml/ideep-3.12

Description

Intel Optimization for Chainer

Added to portage

2026-08-03

incus - 7.0.1-r1
Ebuild name:

app-containers/incus-7.0.1-r1

Description

Modern, secure and powerful system container and virtual machine mana

Added to portage

2026-08-03

incus - 7.3-r1
Ebuild name:

app-containers/incus-7.3-r1

Description

Modern, secure and powerful system container and virtual machine manage

Added to portage

2026-08-03

indilib - 2.2.4.1
Ebuild name:

sci-libs/indilib-2.2.4.1

Description

INDI Astronomical Control Protocol library

Added to portage

2026-08-03

krita - 6.0.3-r1
Ebuild name:

media-gfx/krita-6.0.3-r1

Description

Free digital painting application. Digital Painting, Creative Freedom

Added to portage

2026-08-03

mailcrypt - 3.5.9-r3
Ebuild name:

app-emacs/mailcrypt-3.5.9-r3

Description

Provides a simple interface to public key cryptography with OpenPGP

Added to portage

2026-08-03

mame - 0.289-r2
Ebuild name:

games-emulation/mame-0.289-r2

Description

Multiple Arcade Machine Emulator

Added to portage

2026-08-03

marginalia - 2.10
Ebuild name:

app-emacs/marginalia-2.10

Description

Marginalia in the minibuffer

Added to portage

2026-08-03

marginalia - 2.11
Ebuild name:

app-emacs/marginalia-2.11

Description

Marginalia in the minibuffer

Added to portage

2026-08-03

markdown-mode - 2.8
Ebuild name:

app-emacs/markdown-mode-2.8

Description

Major mode for editing Markdown-formatted text files

Added to portage

2026-08-03

mastodon - 2.0.7
Ebuild name:

app-emacs/mastodon-2.0.7

Description

Emacs client for Mastodon, federated microblogging social network

Added to portage

2026-08-03

mastodon - 9999
Ebuild name:

app-emacs/mastodon-9999

Description

Emacs client for Mastodon, federated microblogging social network

Added to portage

2026-08-03

math-symbol-lists - 1.3
Ebuild name:

app-emacs/math-symbol-lists-1.3

Description

Lists of Unicode mathematical symbols and latex commands

Added to portage

2026-08-03

matlab - 6.1_p20241107
Ebuild name:

app-emacs/matlab-6.1_p20241107

Description

Major modes for MATLAB .m and .tlc files

Added to portage

2026-08-03

matlab - 8.2.0
Ebuild name:

app-emacs/matlab-8.2.0

Description

Major modes for MATLAB .m and .tlc files

Added to portage

2026-08-03

mattermost-desktop-bin - 6.3.0_rc3
Ebuild name:

net-im/mattermost-desktop-bin-6.3.0_rc3

Description

Mattermost Desktop application

Added to portage

2026-08-03

miller - 6.20.2
Ebuild name:

sys-apps/miller-6.20.2

Description

Tool like sed, awk, cut, join, and sort for name-indexed data (CSV, JSON, ..

Added to portage

2026-08-03

no-littering - 1.9.0
Ebuild name:

app-emacs/no-littering-1.9.0

Description

ELisp library that helps keeping Emacs configuration directory clean

Added to portage

2026-08-03

nvidia-drivers - 580.178.04
Ebuild name:

x11-drivers/nvidia-drivers-580.178.04

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-08-03

nvidia-drivers - 610.57.04
Ebuild name:

x11-drivers/nvidia-drivers-610.57.04

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-08-03

oneDNN - 3.12
Ebuild name:

sci-ml/oneDNN-3.12

Description

oneAPI Deep Neural Network Library

Added to portage

2026-08-03

osm - 2.5
Ebuild name:

app-emacs/osm-2.5

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-08-03

package-build - 5.0.1
Ebuild name:

app-emacs/package-build-5.0.1

Description

Tools for assembling a package archive

Added to portage

2026-08-03

plasma-bigscreen - 6.7.3-r1
Ebuild name:

kde-plasma/plasma-bigscreen-6.7.3-r1

Description

Plasma shell for TVs

Added to portage

2026-08-03

portalocker - 4.1.0
Ebuild name:

dev-python/portalocker-4.1.0

Description

A library for Python file locking

Added to portage

2026-08-03

pyqt6-sip - 13.12.0
Ebuild name:

dev-python/pyqt6-sip-13.12.0

Description

sip module support for PyQt6

Added to portage

2026-08-03

rarfile - 4.5
Ebuild name:

dev-python/rarfile-4.5

Description

Module for RAR archive reading

Added to portage

2026-08-03

rclone - 1.75.0
Ebuild name:

net-misc/rclone-1.75.0

Description

A program to sync files to and from various cloud storage providers

Added to portage

2026-08-03

s - 1.13.1
Ebuild name:

app-emacs/s-1.13.1

Description

The long lost Emacs string manipulation library

Added to portage

2026-08-03

sip - 6.16.0
Ebuild name:

dev-python/sip-6.16.0

Description

Python bindings generator for C/C++ libraries

Added to portage

2026-08-03

spyder-kernels - 3.1.5-r1
Ebuild name:

dev-python/spyder-kernels-3.1.5-r1

Description

Kernels used by spyder on its ipython console

Added to portage

2026-08-03

symbols-nerd-font - 3.5.0
Ebuild name:

media-fonts/symbols-nerd-font-3.5.0

Description

Symbols-only font containing the Nerd Font icons

Added to portage

2026-08-03

transient - 0.13.6
Ebuild name:

app-emacs/transient-0.13.6

Description

Transient commands abstraction for GNU Emacs

Added to portage

2026-08-03

tree-sitter-erlang - 0.20
Ebuild name:

dev-libs/tree-sitter-erlang-0.20

Description

Erlang programming language grammar for Tree-sitter

Added to portage

2026-08-03

tsm - 8.2.2.0
Ebuild name:

app-backup/tsm-8.2.2.0

Description

IBM Storage Protect (former Tivoli Storage Manager) Backup/Archive Client, A

Added to portage

2026-08-03

vanilla-kernel - 6.12.101
Ebuild name:

sys-kernel/vanilla-kernel-6.12.101

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-03

vanilla-kernel - 6.18.42
Ebuild name:

sys-kernel/vanilla-kernel-6.18.42

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-03

vanilla-kernel - 6.6.148
Ebuild name:

sys-kernel/vanilla-kernel-6.6.148

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-03

vanilla-kernel - 7.1.6
Ebuild name:

sys-kernel/vanilla-kernel-7.1.6

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-03

vanilla-sources - 6.12.101
Ebuild name:

sys-kernel/vanilla-sources-6.12.101

Description

Full sources for the Linux kernel

Added to portage

2026-08-03

vanilla-sources - 6.18.42
Ebuild name:

sys-kernel/vanilla-sources-6.18.42

Description

Full sources for the Linux kernel

Added to portage

2026-08-03

vanilla-sources - 6.6.148
Ebuild name:

sys-kernel/vanilla-sources-6.6.148

Description

Full sources for the Linux kernel

Added to portage

2026-08-03

vanilla-sources - 7.1.6
Ebuild name:

sys-kernel/vanilla-sources-7.1.6

Description

Full sources for the Linux kernel

Added to portage

2026-08-03

webob - 1.8.11
Ebuild name:

dev-python/webob-1.8.11

Description

WSGI request and response object

Added to portage

2026-08-03

whenever - 0.10.4
Ebuild name:

dev-python/whenever-0.10.4

Description

Modern datetime library for Python

Added to portage

2026-08-03

with-editor - 3.5.3
Ebuild name:

app-emacs/with-editor-3.5.3

Description

Use the Emacsclient as the of child processes

Added to portage

2026-08-03

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