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:

86582

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-06
dbus-python - 1.4.0-r1
Ebuild name:

dev-python/dbus-python-1.4.0-r1

Description

Python bindings for the D-Bus messagebus

Added to portage

2026-07-06

getmail - 6.20.00
Ebuild name:

net-mail/getmail-6.20.00

Description

A mail retriever with reliable Maildir and mbox delivery

Added to portage

2026-07-06

gst-plugins-sndio - 1.24.0
Ebuild name:

media-plugins/gst-plugins-sndio-1.24.0

Description

Sndio audio sink and source for GStreamer

Added to portage

2026-07-06

munt-mt32emu - 2.8.3
Ebuild name:

media-libs/munt-mt32emu-2.8.3

Description

Library for emulating the Roland MT-32, CM-32L, CM-64 and LAPC-I

Added to portage

2026-07-06

portage - 3.0.81.1
Ebuild name:

sys-apps/portage-3.0.81.1

Description

The package management and distribution system for Gentoo

Added to portage

2026-07-06

2026-07-05
Feature-Compat-Class - 0.80.0
Ebuild name:

dev-perl/Feature-Compat-Class-0.80.0

Description

Make class syntax available

Added to portage

2026-07-05

Object-Pad - 0.825.0
Ebuild name:

dev-perl/Object-Pad-0.825.0

Description

Simple syntax for lexical field-based objects

Added to portage

2026-07-05

XS-Parse-Sublike - 0.410.0
Ebuild name:

dev-perl/XS-Parse-Sublike-0.410.0

Description

XS functions to assist in parsing sub-like syntax

Added to portage

2026-07-05

apprise - 1.12.0
Ebuild name:

dev-python/apprise-1.12.0

Description

Push Notifications that work with just about every platform

Added to portage

2026-07-05

audit - 4.1.4-r4
Ebuild name:

sys-process/audit-4.1.4-r4

Description

Userspace utilities for storing and processing auditing records

Added to portage

2026-07-05

bitwarden-cli-bin - 2026.6.0
Ebuild name:

app-admin/bitwarden-cli-bin-2026.6.0

Description

CLI client for Bitwarden compatible servers

Added to portage

2026-07-05

bitwarden-desktop-bin - 2026.6.1
Ebuild name:

app-admin/bitwarden-desktop-bin-2026.6.1

Description

Bitwarden password manager desktop client

Added to portage

2026-07-05

c3p0 - 0.9.5.5-r3
Ebuild name:

dev-java/c3p0-0.9.5.5-r3

Description

JDBC drivers with JNDI-bindable DataSources

Added to portage

2026-07-05

cbor2 - 6.1.3
Ebuild name:

dev-python/cbor2-6.1.3

Description

CBOR (de)serializer with extensive tag support

Added to portage

2026-07-05

checkpolicy - 3.11
Ebuild name:

sys-apps/checkpolicy-3.11

Description

SELinux policy compiler

Added to portage

2026-07-05

commons-beanutils - 1.11.0-r1
Ebuild name:

dev-java/commons-beanutils-1.11.0-r1

Description

Provides easy-to-use wrappers around Reflection and Introspect

Added to portage

2026-07-05

commons-digester - 2.1-r4
Ebuild name:

dev-java/commons-digester-2.1-r4

Description

Reads XML configuration files to provide initialization of various

Added to portage

2026-07-05

commons-validator - 1.10.1
Ebuild name:

dev-java/commons-validator-1.10.1

Description

Commons component to validate user input, or data input

Added to portage

2026-07-05

darktable - 5.6.0
Ebuild name:

media-gfx/darktable-5.6.0

Description

A virtual lighttable and darkroom for photographers

Added to portage

2026-07-05

dist-kernel - 6.1.177
Ebuild name:

virtual/dist-kernel-6.1.177

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

dist-kernel - 6.12.95
Ebuild name:

virtual/dist-kernel-6.12.95

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

dist-kernel - 6.18.38
Ebuild name:

virtual/dist-kernel-6.18.38

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

dist-kernel - 6.6.144
Ebuild name:

virtual/dist-kernel-6.6.144

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

dist-kernel - 7.1.3
Ebuild name:

virtual/dist-kernel-7.1.3

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-05

element-desktop-bin - 1.12.22
Ebuild name:

net-im/element-desktop-bin-1.12.22

Description

A glossy Matrix collaboration client for desktop (binary package

Added to portage

2026-07-05

ensurepip-setuptools - 83.0.0
Ebuild name:

dev-python/ensurepip-setuptools-83.0.0

Description

Shared setuptools wheel for ensurepip Python module

Added to portage

2026-07-05

exim - 4.99.4-r1
Ebuild name:

mail-mta/exim-4.99.4-r1

Description

A highly configurable, drop-in replacement for sendmail

Added to portage

2026-07-05

gcc - 13.4.1_p20260701
Ebuild name:

sys-devel/gcc-13.4.1_p20260701

Description

The GNU Compiler Collection

Added to portage

2026-07-05

gcc - 15.3.1_p20260703
Ebuild name:

sys-devel/gcc-15.3.1_p20260703

Description

The GNU Compiler Collection

Added to portage

2026-07-05

gcc - 16.1.1_p20260704
Ebuild name:

sys-devel/gcc-16.1.1_p20260704

Description

The GNU Compiler Collection

Added to portage

2026-07-05

gentoo-kernel - 6.1.177
Ebuild name:

sys-kernel/gentoo-kernel-6.1.177

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel - 6.12.95
Ebuild name:

sys-kernel/gentoo-kernel-6.12.95

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel - 6.18.38
Ebuild name:

sys-kernel/gentoo-kernel-6.18.38

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel - 6.6.144
Ebuild name:

sys-kernel/gentoo-kernel-6.6.144

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel - 7.1.3
Ebuild name:

sys-kernel/gentoo-kernel-7.1.3

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 6.1.177
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.177

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 6.12.95
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.95

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 6.18.38
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.38

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 6.6.144
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.144

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-bin - 7.1.3
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.3

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-05

gentoo-kernel-modprep - 6.1.177
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.177

Description

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

Added to portage

2026-07-05

gentoo-kernel-modprep - 6.12.95
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.95

Description

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

Added to portage

2026-07-05

gentoo-kernel-modprep - 6.18.38
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.38

Description

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

Added to portage

2026-07-05

gentoo-kernel-modprep - 6.6.144
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.144

Description

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

Added to portage

2026-07-05

gentoo-kernel-modprep - 7.1.3
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.3

Description

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

Added to portage

2026-07-05

gentoo-sources - 6.1.177
Ebuild name:

sys-kernel/gentoo-sources-6.1.177

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoo-sources - 6.12.95
Ebuild name:

sys-kernel/gentoo-sources-6.12.95

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoo-sources - 6.18.38
Ebuild name:

sys-kernel/gentoo-sources-6.18.38

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoo-sources - 6.6.144
Ebuild name:

sys-kernel/gentoo-sources-6.6.144

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoo-sources - 7.1.3
Ebuild name:

sys-kernel/gentoo-sources-7.1.3

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-05

gentoolkit - 0.7.6
Ebuild name:

app-portage/gentoolkit-0.7.6

Description

Collection of administration scripts for Gentoo

Added to portage

2026-07-05

gitea - 1.26.4
Ebuild name:

www-apps/gitea-1.26.4

Description

A painless self-hosted Git service

Added to portage

2026-07-05

leancrypto - 1.8.0
Ebuild name:

dev-libs/leancrypto-1.8.0

Description

Lean cryptographic library usable for bare-metal environments

Added to portage

2026-07-05

libselinux - 3.10-r2
Ebuild name:

sys-libs/libselinux-3.10-r2

Description

SELinux userland library

Added to portage

2026-07-05

libselinux - 3.11
Ebuild name:

sys-libs/libselinux-3.11

Description

SELinux userland library

Added to portage

2026-07-05

libsemanage - 3.11
Ebuild name:

sys-libs/libsemanage-3.11

Description

SELinux kernel and policy management library

Added to portage

2026-07-05

libsepol - 3.11
Ebuild name:

sys-libs/libsepol-3.11

Description

SELinux binary policy representation library

Added to portage

2026-07-05

libtmux - 0.61.0
Ebuild name:

dev-python/libtmux-0.61.0

Description

Typed library that provides an ORM wrapper for tmux, a terminal multiplex

Added to portage

2026-07-05

llvm-mingw64 - 13.0.0-r5
Ebuild name:

dev-util/llvm-mingw64-13.0.0-r5

Description

Clang/LLVM based mingw64 toolchain

Added to portage

2026-07-05

mchange-commons - 0.2.20-r1
Ebuild name:

dev-java/mchange-commons-0.2.20-r1

Description

a library of arguably useful Java utilities

Added to portage

2026-07-05

mcstrans - 3.11
Ebuild name:

sys-apps/mcstrans-3.11

Description

SELinux context translation to human readable names

Added to portage

2026-07-05

md5deep - 4.4
Ebuild name:

app-crypt/md5deep-4.4

Description

Expanded md5sum program with recursive and comparison options

Added to portage

2026-07-05

md6sum - 1.0-r3
Ebuild name:

app-crypt/md6sum-1.0-r3

Description

A C implementation of MD6

Added to portage

2026-07-05

mhash - 0.9.9.9-r4
Ebuild name:

app-crypt/mhash-0.9.9.9-r4

Description

Library providing a uniform interface to a large number of hash algorith

Added to portage

2026-07-05

mutt - 2.4.1
Ebuild name:

mail-client/mutt-2.4.1

Description

A small but very powerful text-based mail client

Added to portage

2026-07-05

numpy - 2.5.1
Ebuild name:

dev-python/numpy-2.5.1

Description

Fast array and numerical python library

Added to portage

2026-07-05

ollama - 0.31.1
Ebuild name:

sci-ml/ollama-0.31.1

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models.

Added to portage

2026-07-05

policycoreutils - 3.11
Ebuild name:

sys-apps/policycoreutils-3.11

Description

SELinux core utilities

Added to portage

2026-07-05

restorecond - 3.11
Ebuild name:

sys-apps/restorecond-3.11

Description

Daemon to watch for creation and set default SELinux fcontexts

Added to portage

2026-07-05

secilc - 3.11
Ebuild name:

sys-apps/secilc-3.11

Description

SELinux Common Intermediate Language (CIL) Compiler

Added to portage

2026-07-05

selinux-python - 3.10-r1
Ebuild name:

sys-apps/selinux-python-3.10-r1

Description

SELinux core utilities

Added to portage

2026-07-05

selinux-python - 3.11-r1
Ebuild name:

sys-apps/selinux-python-3.11-r1

Description

SELinux core utilities

Added to portage

2026-07-05

semodule-utils - 3.11
Ebuild name:

sys-apps/semodule-utils-3.11

Description

SELinux policy module utilities

Added to portage

2026-07-05

setproctitle - 1.3.7-r1
Ebuild name:

dev-python/setproctitle-1.3.7-r1

Description

Allow customization of the process title

Added to portage

2026-07-05

setuptools - 83.0.0
Ebuild name:

dev-python/setuptools-83.0.0

Description

Collection of extensions to Distutils

Added to portage

2026-07-05

sleuthkit - 4.12.1-r3
Ebuild name:

app-forensics/sleuthkit-4.12.1-r3

Description

A collection of file system and media management forensic analysi

Added to portage

2026-07-05

sphinxcontrib-jsmath - 1.0.1-r5
Ebuild name:

dev-python/sphinxcontrib-jsmath-1.0.1-r5

Description

Sphinx extension which renders display math in HTML via Ja

Added to portage

2026-07-05

spirv-llvm-translator - 16.0.26
Ebuild name:

dev-util/spirv-llvm-translator-16.0.26

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 17.0.25
Ebuild name:

dev-util/spirv-llvm-translator-17.0.25

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 18.1.25
Ebuild name:

dev-util/spirv-llvm-translator-18.1.25

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 19.1.20
Ebuild name:

dev-util/spirv-llvm-translator-19.1.20

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 20.1.15
Ebuild name:

dev-util/spirv-llvm-translator-20.1.15

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 21.1.9
Ebuild name:

dev-util/spirv-llvm-translator-21.1.9

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spirv-llvm-translator - 22.1.4
Ebuild name:

dev-util/spirv-llvm-translator-22.1.4

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-07-05

spsdeclib - 5.2
Ebuild name:

dev-libs/spsdeclib-5.2

Description

Kryoflux SPS Decoder Library

Added to portage

2026-07-05

stormlib - 9.40
Ebuild name:

app-arch/stormlib-9.40

Description

Library to read and write MPQ archives (Diablo, StarCraft)

Added to portage

2026-07-05

tellico - 4.2.1
Ebuild name:

kde-misc/tellico-4.2.1

Description

Collection manager based on KDE Frameworks

Added to portage

2026-07-05

uvicorn - 0.50.0
Ebuild name:

dev-python/uvicorn-0.50.0

Description

Lightning-fast ASGI server implementation

Added to portage

2026-07-05

vanilla-kernel - 6.1.177
Ebuild name:

sys-kernel/vanilla-kernel-6.1.177

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-kernel - 6.12.95
Ebuild name:

sys-kernel/vanilla-kernel-6.12.95

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-kernel - 6.18.38
Ebuild name:

sys-kernel/vanilla-kernel-6.18.38

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-kernel - 6.6.144
Ebuild name:

sys-kernel/vanilla-kernel-6.6.144

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-kernel - 7.1.3
Ebuild name:

sys-kernel/vanilla-kernel-7.1.3

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-05

vanilla-sources - 5.10.260
Ebuild name:

sys-kernel/vanilla-sources-5.10.260

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 5.15.211
Ebuild name:

sys-kernel/vanilla-sources-5.15.211

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.1.177
Ebuild name:

sys-kernel/vanilla-sources-6.1.177

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.12.94
Ebuild name:

sys-kernel/vanilla-sources-6.12.94

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.18.38
Ebuild name:

sys-kernel/vanilla-sources-6.18.38

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 6.6.144
Ebuild name:

sys-kernel/vanilla-sources-6.6.144

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vanilla-sources - 7.1.3
Ebuild name:

sys-kernel/vanilla-sources-7.1.3

Description

Full sources for the Linux kernel

Added to portage

2026-07-05

vcrpy - 8.3.0
Ebuild name:

dev-python/vcrpy-8.3.0

Description

Automatically mock your HTTP interactions to simplify and speed up testing

Added to portage

2026-07-05

winbox - 4.2_rc1
Ebuild name:

app-admin/winbox-4.2_rc1

Description

Management Software for MikroTik RouterOS

Added to portage

2026-07-05

yt-dlp - 2026.07.04
Ebuild name:

net-misc/yt-dlp-2026.07.04

Description

youtube-dl fork with additional features and fixes

Added to portage

2026-07-05

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