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:

87589

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-11
android-studio - 2026.1.3.8
Ebuild name:

dev-util/android-studio-2026.1.3.8

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-08-11

apache-arrow - 25.0.1
Ebuild name:

dev-libs/apache-arrow-25.0.1

Description

A cross-language development platform for in-memory data

Added to portage

2026-08-11

boto3 - 1.43.68
Ebuild name:

dev-python/boto3-1.43.68

Description

The AWS SDK for Python

Added to portage

2026-08-11

botocore - 1.43.68
Ebuild name:

dev-python/botocore-1.43.68

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-11

bsnes-jg - 2.1.0-r1
Ebuild name:

games-emulation/bsnes-jg-2.1.0-r1

Description

Jolly Good Fork of bsnes

Added to portage

2026-08-11

bsnes-jg - 2.1.1
Ebuild name:

games-emulation/bsnes-jg-2.1.1

Description

Jolly Good Fork of bsnes

Added to portage

2026-08-11

cachebox - 6.2.5
Ebuild name:

dev-python/cachebox-6.2.5

Description

The fastest memoizing and caching Python library written in Rust

Added to portage

2026-08-11

cega-jg - 0.6.1-r1
Ebuild name:

games-emulation/cega-jg-0.6.1-r1

Description

Jolly Good SG-1000, SMS, and Game Gear Emulator

Added to portage

2026-08-11

cega-jg - 0.6.2
Ebuild name:

games-emulation/cega-jg-0.6.2

Description

Jolly Good SG-1000, SMS, and Game Gear Emulator

Added to portage

2026-08-11

clamav - 0.103.12-r6
Ebuild name:

app-antivirus/clamav-0.103.12-r6

Description

Clam Anti-Virus Scanner

Added to portage

2026-08-11

dep-logic - 0.7.1
Ebuild name:

dev-python/dep-logic-0.7.1

Description

Python dependency specifications supporting logical operations

Added to portage

2026-08-11

django-debug-toolbar - 7.1.0
Ebuild name:

dev-python/django-debug-toolbar-7.1.0

Description

A configurable set of panels that display various debug infor

Added to portage

2026-08-11

eiciel - 0.10.1-r1
Ebuild name:

gnome-extra/eiciel-0.10.1-r1

Description

ACL editor for GNOME, with Nautilus extension

Added to portage

2026-08-11

expat - 2.8.3
Ebuild name:

dev-libs/expat-2.8.3

Description

Stream-oriented XML parser library

Added to portage

2026-08-11

feedparser-sgmllib - 2.1.0
Ebuild name:

dev-python/feedparser-sgmllib-2.1.0

Description

sgmllib from Python 2.7 for feedparser use

Added to portage

2026-08-11

gambatte-jg - 0.6.0-r1
Ebuild name:

games-emulation/gambatte-jg-0.6.0-r1

Description

Jolly Good Fork of Gambatte

Added to portage

2026-08-11

gambatte-jg - 0.6.1
Ebuild name:

games-emulation/gambatte-jg-0.6.1

Description

Jolly Good Fork of Gambatte

Added to portage

2026-08-11

geolith-jg - 0.3.0-r1
Ebuild name:

games-emulation/geolith-jg-0.3.0-r1

Description

Jolly Good Neo Geo AES/MVS Emulator

Added to portage

2026-08-11

geolith-jg - 0.4.1-r2
Ebuild name:

games-emulation/geolith-jg-0.4.1-r2

Description

Jolly Good Neo Geo AES/MVS/CD/CDZ Emulator

Added to portage

2026-08-11

geolith-jg - 0.4.2
Ebuild name:

games-emulation/geolith-jg-0.4.2

Description

Jolly Good Neo Geo AES/MVS/CD/CDZ Emulator

Added to portage

2026-08-11

gitpython - 3.1.59
Ebuild name:

dev-python/gitpython-3.1.59

Description

Library used to interact with Git repositories

Added to portage

2026-08-11

greenlet - 3.5.5
Ebuild name:

dev-python/greenlet-3.5.5

Description

Lightweight in-process concurrent programming

Added to portage

2026-08-11

heroic-bin - 2.22.1
Ebuild name:

games-util/heroic-bin-2.22.1

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-08-11

hishel - 1.3.1
Ebuild name:

dev-python/hishel-1.3.1

Description

An elegant HTTP Cache implementation for HTTPX and HTTP Core

Added to portage

2026-08-11

intellij-idea - 2026.2.1
Ebuild name:

dev-util/intellij-idea-2026.2.1

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-08-11

jgrf - 1.4.0-r2
Ebuild name:

games-emulation/jgrf-1.4.0-r2

Description

The Jolly Good Reference Frontend

Added to portage

2026-08-11

jgrf - 2.0.1
Ebuild name:

games-emulation/jgrf-2.0.1

Description

The Jolly Good Reference Frontend

Added to portage

2026-08-11

jollycv-jg - 2.0.0-r1
Ebuild name:

games-emulation/jollycv-jg-2.0.0-r1

Description

Jolly Good ColecoVision, CreatiVision and My Vision Emulator

Added to portage

2026-08-11

jollycv-jg - 2.0.1
Ebuild name:

games-emulation/jollycv-jg-2.0.1

Description

Jolly Good ColecoVision, CreatiVision and My Vision Emulator

Added to portage

2026-08-11

koleo-cli - 0.2.137.37
Ebuild name:

app-misc/koleo-cli-0.2.137.37

Description

A simple CLI for koleo.pl railway planner

Added to portage

2026-08-11

loop-aes-losetup - 2.40.2
Ebuild name:

app-crypt/loop-aes-losetup-2.40.2

Description

Loop-AES losetup utility

Added to portage

2026-08-11

loop-aes-losetup - 2.41.1
Ebuild name:

app-crypt/loop-aes-losetup-2.41.1

Description

Loop-AES losetup utility

Added to portage

2026-08-11

mcrypt - 2.6.8-r3
Ebuild name:

app-crypt/mcrypt-2.6.8-r3

Description

Replacement of the old unix crypt(1)

Added to portage

2026-08-11

mednafen-jg - 1.32.1.1-r1
Ebuild name:

games-emulation/mednafen-jg-1.32.1.1-r1

Description

Jolly Good Port of Mednafen

Added to portage

2026-08-11

mednafen-jg - 1.32.1.2
Ebuild name:

games-emulation/mednafen-jg-1.32.1.2

Description

Jolly Good Port of Mednafen

Added to portage

2026-08-11

melonds-jg - 1.1.0-r1
Ebuild name:

games-emulation/melonds-jg-1.1.0-r1

Description

Jolly Good Port of melonDS

Added to portage

2026-08-11

melonds-jg - 1.1.0.1
Ebuild name:

games-emulation/melonds-jg-1.1.0.1

Description

Jolly Good Port of melonDS

Added to portage

2026-08-11

meson - 1.12.0
Ebuild name:

dev-build/meson-1.12.0

Description

Open source build system

Added to portage

2026-08-11

mgba-jg - 0.10.5-r1
Ebuild name:

games-emulation/mgba-jg-0.10.5-r1

Description

Jolly Good Port of mGBA

Added to portage

2026-08-11

mgba-jg - 0.10.5.1
Ebuild name:

games-emulation/mgba-jg-0.10.5.1

Description

Jolly Good Port of mGBA

Added to portage

2026-08-11

nestopia-jg - 1.53.2-r1
Ebuild name:

games-emulation/nestopia-jg-1.53.2-r1

Description

Jolly Good Fork of Nestopia

Added to portage

2026-08-11

nestopia-jg - 1.54.0
Ebuild name:

games-emulation/nestopia-jg-1.54.0

Description

Jolly Good Fork of Nestopia

Added to portage

2026-08-11

pegtl - 3.2.8-r2
Ebuild name:

dev-libs/pegtl-3.2.8-r2

Description

Header-only library for creating parsers according to Parsing Expression Gr

Added to portage

2026-08-11

prosystem-jg - 1.5.3-r1
Ebuild name:

games-emulation/prosystem-jg-1.5.3-r1

Description

Jolly Good Fork of ProSystem

Added to portage

2026-08-11

prosystem-jg - 1.5.4
Ebuild name:

games-emulation/prosystem-jg-1.5.4

Description

Jolly Good Fork of ProSystem

Added to portage

2026-08-11

pyqt6 - 6.11.0-r1
Ebuild name:

dev-python/pyqt6-6.11.0-r1

Description

Python bindings for the Qt framework

Added to portage

2026-08-11

sameboy-jg - 1.0.3-r1
Ebuild name:

games-emulation/sameboy-jg-1.0.3-r1

Description

Jolly Good Port of SameBoy

Added to portage

2026-08-11

sameboy-jg - 1.0.3.1
Ebuild name:

games-emulation/sameboy-jg-1.0.3.1

Description

Jolly Good Port of SameBoy

Added to portage

2026-08-11

vecx-jg - 1.2.3-r1
Ebuild name:

games-emulation/vecx-jg-1.2.3-r1

Description

Jolly Good Fork of vecx

Added to portage

2026-08-11

vecx-jg - 1.2.4
Ebuild name:

games-emulation/vecx-jg-1.2.4

Description

Jolly Good Fork of vecx

Added to portage

2026-08-11

2026-08-10
apache_exporter - 0-r1
Ebuild name:

acct-group/apache_exporter-0-r1

Description

Group used for the apache_exporter prometheus plugin

Added to portage

2026-08-10

apache_exporter - 0-r1
Ebuild name:

acct-user/apache_exporter-0-r1

Description

User for the apache_exporter prometheus plugin

Added to portage

2026-08-10

apache_exporter - 1.1.1
Ebuild name:

app-metrics/apache_exporter-1.1.1

Description

Prometheus exporter for apache metrics

Added to portage

2026-08-10

at-spi2-core - 2.58.8
Ebuild name:

app-accessibility/at-spi2-core-2.58.8

Description

D-Bus accessibility specifications and registration daemon

Added to portage

2026-08-10

bats - 1.14.0
Ebuild name:

dev-util/bats-1.14.0

Description

Bats-core Bash Automated Testing System

Added to portage

2026-08-10

cjose - 0.6.2.7
Ebuild name:

dev-libs/cjose-0.6.2.7

Description

C library implementing the Javascript Object Signing and Encryption (JOSE)

Added to portage

2026-08-10

curses - 1.0.12
Ebuild name:

dev-ml/curses-1.0.12

Description

Bindings to ncurses

Added to portage

2026-08-10

elixir - 1.20.2
Ebuild name:

dev-lang/elixir-1.20.2

Description

Elixir programming language

Added to portage

2026-08-10

esptool - 4.12.0
Ebuild name:

dev-embedded/esptool-4.12.0

Description

Utility to communicate with the ROM bootloader in Espressif ESP8266 and

Added to portage

2026-08-10

esptool - 5.3.1
Ebuild name:

dev-embedded/esptool-5.3.1

Description

Serial utility for flashing and interacting with Espressif ESP8266 and E

Added to portage

2026-08-10

gdbus-codegen - 2.88.3
Ebuild name:

dev-util/gdbus-codegen-2.88.3

Description

GDBus code and documentation generator

Added to portage

2026-08-10

gdm - 49.2-r3
Ebuild name:

gnome-base/gdm-49.2-r3

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-08-10

gdm - 49.3-r3
Ebuild name:

gnome-base/gdm-49.3-r3

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-08-10

gdm - 49.4
Ebuild name:

gnome-base/gdm-49.4

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-08-10

glib - 2.88.3
Ebuild name:

dev-libs/glib-2.88.3

Description

The GLib library of C routines

Added to portage

2026-08-10

glib-utils - 2.88.3
Ebuild name:

dev-util/glib-utils-2.88.3

Description

Build utilities for GLib using projects

Added to portage

2026-08-10

gnome-control-center - 49.9
Ebuild name:

gnome-base/gnome-control-center-49.9

Description

GNOME's main interface to configure various aspects of the des

Added to portage

2026-08-10

gnome-session-openrc - 49.3
Ebuild name:

gnome-base/gnome-session-openrc-49.3

Description

Gnome session leader for OpenRC

Added to portage

2026-08-10

gnome-shell - 49.9
Ebuild name:

gnome-base/gnome-shell-49.9

Description

Provides core UI functions for the GNOME desktop

Added to portage

2026-08-10

gnome-user-docs - 49.9
Ebuild name:

gnome-extra/gnome-user-docs-49.9

Description

GNOME end user documentation

Added to portage

2026-08-10

gtkmm - 4.20.0-r1
Ebuild name:

dev-cpp/gtkmm-4.20.0-r1

Description

C++ interface for GTK+

Added to portage

2026-08-10

httpx2 - 2.10.0
Ebuild name:

dev-python/httpx2-2.10.0

Description

The next generation HTTP client (Pydantic fork)

Added to portage

2026-08-10

keepassxc - 2.8.0_pre20260629-r1
Ebuild name:

app-admin/keepassxc-2.8.0_pre20260629-r1

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2026-08-10

knowit - 0.6.1
Ebuild name:

dev-python/knowit-0.6.1

Description

Know better your media files

Added to portage

2026-08-10

libadwaita - 1.8.7
Ebuild name:

gui-libs/libadwaita-1.8.7

Description

Building blocks for modern GNOME applications

Added to portage

2026-08-10

libcec - 8.1.6
Ebuild name:

dev-libs/libcec-8.1.6

Description

Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor

Added to portage

2026-08-10

liblore - 0.8.1
Ebuild name:

dev-python/liblore-0.8.1

Description

Shared library for public-inbox / lore.kernel.org access

Added to portage

2026-08-10

lmdb - 0.9.36
Ebuild name:

dev-db/lmdb-0.9.36

Description

An ultra-fast, ultra-compact key-value embedded data store

Added to portage

2026-08-10

lmdb - 1.0.1
Ebuild name:

dev-db/lmdb-1.0.1

Description

An ultra-fast, ultra-compact key-value embedded data store

Added to portage

2026-08-10

methane - 3.0.1-r1
Ebuild name:

games-arcade/methane-3.0.1-r1

Description

Port from an old Amiga game

Added to portage

2026-08-10

mycli - 2.9.0
Ebuild name:

dev-db/mycli-2.9.0

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2026-08-10

numpy - 2.5.2
Ebuild name:

dev-python/numpy-2.5.2

Description

Fast array and numerical python library

Added to portage

2026-08-10

nwjs - 0.114.0-r1
Ebuild name:

dev-libs/nwjs-0.114.0-r1

Description

Framework that lets you call all Node.js modules directly from the DOM

Added to portage

2026-08-10

odamex - 12.3.0
Ebuild name:

games-engines/odamex-12.3.0

Description

Online multiplayer free software engine for DOOM

Added to portage

2026-08-10

pykeepass - 4.2.0
Ebuild name:

dev-python/pykeepass-4.2.0

Description

Python library to interact with keepass databases (supports KDBX3 and KD

Added to portage

2026-08-10

pylint - 4.0.7
Ebuild name:

dev-python/pylint-4.0.7

Description

Python code static checker

Added to portage

2026-08-10

pysequoia - 0.1.34
Ebuild name:

dev-python/pysequoia-0.1.34

Description

Provides OpenPGP facilities using Sequoia-PGP library

Added to portage

2026-08-10

qemu-guest-agent - 10.2.3
Ebuild name:

app-emulation/qemu-guest-agent-10.2.3

Description

QEMU Guest Agent (qemu-ga) for use when running inside a VM

Added to portage

2026-08-10

qpdf - 12.4.0
Ebuild name:

app-text/qpdf-12.4.0

Description

Command-line tool for structural, content-preserving transformation of PDF fil

Added to portage

2026-08-10

scribus - 1.7.3-r1
Ebuild name:

app-office/scribus-1.7.3-r1

Description

Desktop publishing (DTP) and layout program

Added to portage

2026-08-10

telega - 0.8.660_p20260806
Ebuild name:

app-emacs/telega-0.8.660_p20260806

Description

Full-featured unofficial GNU Emacs client for Telegram

Added to portage

2026-08-10

thriftpy2 - 0.7.0
Ebuild name:

dev-python/thriftpy2-0.7.0

Description

Pure python approach of Apache Thrift

Added to portage

2026-08-10

unreal - 227k_p14-r1
Ebuild name:

games-fps/unreal-227k_p14-r1

Description

Modern build of the original Unreal engine

Added to portage

2026-08-10

wofi - 1.5
Ebuild name:

gui-apps/wofi-1.5

Description

Wofi is a launcher/menu program for wlroots based wayland compositors like sway

Added to portage

2026-08-10

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