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:

89106

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-10-12
aioquic - 1.5.0
Ebuild name:

dev-python/aioquic-1.5.0

Description

An implementation of QUIC and HTTP/3

Added to portage

2026-10-12

beartype - 0.23.1
Ebuild name:

dev-python/beartype-0.23.1

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2026-10-12

bitarray - 3.12.1
Ebuild name:

dev-python/bitarray-3.12.1

Description

Efficient arrays of booleans -- C extension

Added to portage

2026-10-12

bracex - 3.1
Ebuild name:

dev-python/bracex-3.1

Description

Bash style brace expansion for Python

Added to portage

2026-10-12

dist-kernel - 6.18.56
Ebuild name:

virtual/dist-kernel-6.18.56

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-12

dist-kernel - 7.2.10
Ebuild name:

virtual/dist-kernel-7.2.10

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-12

doxygen - 1.17.0-r1
Ebuild name:

app-text/doxygen-1.17.0-r1

Description

Documentation system for most programming languages

Added to portage

2026-10-12

doxygen - 1.18.0-r1
Ebuild name:

app-text/doxygen-1.18.0-r1

Description

Documentation system for most programming languages

Added to portage

2026-10-12

filelock - 4.1.1
Ebuild name:

dev-python/filelock-4.1.1

Description

A platform independent file lock for Python

Added to portage

2026-10-12

gcc - 14.4.1_p20261008
Ebuild name:

sys-devel/gcc-14.4.1_p20261008

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 15.3.1_p20261009
Ebuild name:

sys-devel/gcc-15.3.1_p20261009

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 16.2.1_p20261010
Ebuild name:

sys-devel/gcc-16.2.1_p20261010

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 17.0.0_p20261011
Ebuild name:

sys-devel/gcc-17.0.0_p20261011

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gentoo-kernel - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-6.18.56

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-7.2.10

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-bin - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.56

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-bin - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.10

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-modprep - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.56

Description

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

Added to portage

2026-10-12

gentoo-kernel-modprep - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.10

Description

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

Added to portage

2026-10-12

hypothesis - 6.169.0
Ebuild name:

dev-python/hypothesis-6.169.0

Description

A library for property based testing

Added to portage

2026-10-12

libxmp - 4.7.4
Ebuild name:

media-libs/libxmp-4.7.4

Description

Library that renders module files to PCM data

Added to portage

2026-10-12

lollypop - 1.4.48
Ebuild name:

media-sound/lollypop-1.4.48

Description

Modern music player for GNOME

Added to portage

2026-10-12

ls-qpack - 2.6.4
Ebuild name:

dev-libs/ls-qpack-2.6.4

Description

QPACK compression library for use with HTTP/3

Added to portage

2026-10-12

moto - 5.2.4
Ebuild name:

dev-python/moto-5.2.4

Description

Mock library for boto

Added to portage

2026-10-12

mumps - 5.6.2
Ebuild name:

sci-libs/mumps-5.6.2

Description

MUltifrontal Massively Parallel sparse direct matrix Solver

Added to portage

2026-10-12

platformdirs - 4.13.0
Ebuild name:

dev-python/platformdirs-4.13.0

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-10-12

pydantic - 2.14.1
Ebuild name:

dev-python/pydantic-2.14.1

Description

Data parsing and validation using Python type hints

Added to portage

2026-10-12

pylint - 4.1.3
Ebuild name:

dev-python/pylint-4.1.3

Description

Python code static checker

Added to portage

2026-10-12

pylsqpack - 1.0.0
Ebuild name:

dev-python/pylsqpack-1.0.0

Description

Python wrapper for the ls-qpack QPACK library

Added to portage

2026-10-12

pyrfc3339 - 2.1.1
Ebuild name:

dev-python/pyrfc3339-2.1.1

Description

Generates and parses RFC 3339 timestamps

Added to portage

2026-10-12

pyspelling - 2.13
Ebuild name:

dev-python/pyspelling-2.13

Description

Spell checker automation tool

Added to portage

2026-10-12

pytest-check - 3.0.0
Ebuild name:

dev-python/pytest-check-3.0.0

Description

pytest plugin that allows multiple failures per test

Added to portage

2026-10-12

python-utils - 4.1.1
Ebuild name:

dev-python/python-utils-4.1.1

Description

Collection of small Python functions & classes

Added to portage

2026-10-12

pyzstd - 0.20.0
Ebuild name:

dev-python/pyzstd-0.20.0

Description

Support for Zstandard (zstd) compression

Added to portage

2026-10-12

source-highlight - 9999
Ebuild name:

dev-util/source-highlight-9999

Description

Generate highlighted source code as an (x)html document

Added to portage

2026-10-12

tox - 4.65.3
Ebuild name:

dev-python/tox-4.65.3

Description

virtualenv-based automation of test activities

Added to portage

2026-10-12

utidylib - 1.1.0
Ebuild name:

dev-python/utidylib-1.1.0

Description

TidyLib Python wrapper

Added to portage

2026-10-12

validators - 0.36.0
Ebuild name:

dev-python/validators-0.36.0

Description

Python Data Validation for Humans

Added to portage

2026-10-12

vanilla-kernel - 6.18.56
Ebuild name:

sys-kernel/vanilla-kernel-6.18.56

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-12

vanilla-kernel - 7.2.10
Ebuild name:

sys-kernel/vanilla-kernel-7.2.10

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-12

2026-10-11
AusweisApp - 2.6.0
Ebuild name:

sys-auth/AusweisApp-2.6.0

Description

Official authentication app for German ID cards and residence permits

Added to portage

2026-10-11

acme-sh - 3.1.6
Ebuild name:

app-crypt/acme-sh-3.1.6

Description

A pure Unix shell script implementing ACME client protocol

Added to portage

2026-10-11

aiohttp - 3.14.5
Ebuild name:

dev-python/aiohttp-3.14.5

Description

HTTP client/server for asyncio

Added to portage

2026-10-11

aioquic - 1.4.0
Ebuild name:

dev-python/aioquic-1.4.0

Description

An implementation of QUIC and HTTP/3

Added to portage

2026-10-11

arcconf - 5.12.00.28542
Ebuild name:

sys-block/arcconf-5.12.00.28542

Description

Microsemi Adaptec RAID Controller Command Line Utility

Added to portage

2026-10-11

backports-zstd - 1.8.0
Ebuild name:

dev-python/backports-zstd-1.8.0

Description

Backport of PEP-784 adding Zstandard to the standard library

Added to portage

2026-10-11

backrefs - 8.1
Ebuild name:

dev-python/backrefs-8.1

Description

Wrapper around re or regex that adds additional back references

Added to portage

2026-10-11

bash - 5.3_p20-r1
Ebuild name:

app-shells/bash-5.3_p20-r1

Description

The standard GNU Bourne again shell

Added to portage

2026-10-11

beartype - 0.23.0
Ebuild name:

dev-python/beartype-0.23.0

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2026-10-11

bedrock-server - 1.26.52.3
Ebuild name:

games-server/bedrock-server-1.26.52.3

Description

The official bedrock (non-java) based server for the sandbox

Added to portage

2026-10-11

bitstring - 5.0.0
Ebuild name:

dev-python/bitstring-5.0.0

Description

A pure Python module for creation and analysis of binary data

Added to portage

2026-10-11

black - 26.10.1
Ebuild name:

dev-python/black-26.10.1

Description

The uncompromising Python code formatter

Added to portage

2026-10-11

cargo-c - 0.10.26
Ebuild name:

dev-util/cargo-c-0.10.26

Description

Helper program to build and install c-like libraries

Added to portage

2026-10-11

eduke32 - 20260807.10669
Ebuild name:

games-fps/eduke32-20260807.10669

Description

An open source engine port of the classic PC first person shooter

Added to portage

2026-10-11

entangle - 3.0-r5
Ebuild name:

media-gfx/entangle-3.0-r5

Description

Tethered Camera Control & Capture

Added to portage

2026-10-11

executing - 2.3.0
Ebuild name:

dev-python/executing-2.3.0

Description

Get information about what a Python frame is currently doing

Added to portage

2026-10-11

faudio - 26.10
Ebuild name:

app-emulation/faudio-26.10

Description

Accuracy-focused XAudio reimplementation for open platforms

Added to portage

2026-10-11

gentoo-sources - 6.18.56
Ebuild name:

sys-kernel/gentoo-sources-6.18.56

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-10-11

gentoo-sources - 7.2.10
Ebuild name:

sys-kernel/gentoo-sources-7.2.10

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-10-11

gentoolkit - 0.8.2
Ebuild name:

app-portage/gentoolkit-0.8.2

Description

Collection of administration scripts for Gentoo

Added to portage

2026-10-11

gnumeric - 1.12.62
Ebuild name:

app-office/gnumeric-1.12.62

Description

The GNOME Spreadsheet

Added to portage

2026-10-11

intel-compute-runtime - 26.35.39758.15
Ebuild name:

dev-libs/intel-compute-runtime-26.35.39758.15

Description

Intel Graphics Compute Runtime for oneAPI Level Zero

Added to portage

2026-10-11

intel-graphics-compiler - 2.42.3
Ebuild name:

dev-util/intel-graphics-compiler-2.42.3

Description

LLVM-based OpenCL compiler for OpenCL targetting Intel Gen

Added to portage

2026-10-11

intel-metrics-discovery - 1.16.197
Ebuild name:

dev-libs/intel-metrics-discovery-1.16.197

Description

A user mode library that provides access to GPU performan

Added to portage

2026-10-11

intel-metrics-library - 1.0.242
Ebuild name:

dev-libs/intel-metrics-library-1.0.242

Description

User mode driver helper library that provides access to GPU

Added to portage

2026-10-11

jsonpatch - 1.35
Ebuild name:

dev-python/jsonpatch-1.35

Description

Apply JSON-Patches like http

Added to portage

2026-10-11

jsonpointer - 3.2.1
Ebuild name:

dev-python/jsonpointer-3.2.1

Description

Identify specific nodes in a JSON document (according to draft 08)

Added to portage

2026-10-11

kali-archive-keyring - 2020.2
Ebuild name:

app-crypt/kali-archive-keyring-2020.2

Description

GnuPG archive keys of the Kali archive

Added to portage

2026-10-11

level-zero - 1.30.0-r1
Ebuild name:

dev-libs/level-zero-1.30.0-r1

Description

oneAPI Level Zero headers, loader and validation layer

Added to portage

2026-10-11

level-zero - 1.32.0-r1
Ebuild name:

dev-libs/level-zero-1.32.0-r1

Description

oneAPI Level Zero headers, loader and validation layer

Added to portage

2026-10-11

level-zero - 1.33.1-r1
Ebuild name:

dev-libs/level-zero-1.33.1-r1

Description

oneAPI Level Zero headers, loader and validation layer

Added to portage

2026-10-11

level-zero - 1.34.0
Ebuild name:

dev-libs/level-zero-1.34.0

Description

oneAPI Level Zero headers, loader and validation layer

Added to portage

2026-10-11

librsvg - 2.62.4
Ebuild name:

gnome-base/librsvg-2.62.4

Description

Scalable Vector Graphics (SVG) rendering library

Added to portage

2026-10-11

libsfml - 3.1.0-r1
Ebuild name:

media-libs/libsfml-3.1.0-r1

Description

Simple and Fast Multimedia Library (SFML)

Added to portage

2026-10-11

libupnp - 22.1.8
Ebuild name:

net-libs/libupnp-22.1.8

Description

An Portable Open Source UPnP Development Kit

Added to portage

2026-10-11

libzip - 1.12
Ebuild name:

dev-libs/libzip-1.12

Description

Library for manipulating zip archives

Added to portage

2026-10-11

luaposix - 37.0
Ebuild name:

dev-lua/luaposix-37.0

Description

Bindings for POSIX APIs

Added to portage

2026-10-11

minecraft-server - 26.3
Ebuild name:

games-server/minecraft-server-26.3

Description

The official server for the sandbox video game

Added to portage

2026-10-11

mumps - 5.5.1
Ebuild name:

sci-libs/mumps-5.5.1

Description

MUltifrontal Massively Parallel sparse direct matrix Solver

Added to portage

2026-10-11

mxml - 4.0.6
Ebuild name:

dev-libs/mxml-4.0.6

Description

A small XML parsing library that you can use to read XML data files or strings

Added to portage

2026-10-11

narwhals - 2.27.1
Ebuild name:

dev-python/narwhals-2.27.1

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2026-10-11

netpbm - 11.16.1
Ebuild name:

media-libs/netpbm-11.16.1

Description

A set of utilities for converting to/from the netpbm (and related) format

Added to portage

2026-10-11

networkmanager-strongswan - 1.6.6
Ebuild name:

net-vpn/networkmanager-strongswan-1.6.6

Description

NetworkManager StrongSwan plugin

Added to portage

2026-10-11

nuitka - 4.3
Ebuild name:

dev-python/nuitka-4.3

Description

Python to native compiler

Added to portage

2026-10-11

numpy - 2.5.4
Ebuild name:

dev-python/numpy-2.5.4

Description

Fast array and numerical python library

Added to portage

2026-10-11

ollama - 0.40.3
Ebuild name:

sci-ml/ollama-0.40.3

Description

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

Added to portage

2026-10-11

openrct2 - 0.5.6
Ebuild name:

games-simulation/openrct2-0.5.6

Description

An open source re-implementation of Chris Sawyer's RollerCoaster Ty

Added to portage

2026-10-11

opensmtpd - 7.9.0_p0
Ebuild name:

mail-mta/opensmtpd-7.9.0_p0

Description

Lightweight but featured SMTP daemon from OpenBSD

Added to portage

2026-10-11

orca - 50.3
Ebuild name:

app-accessibility/orca-50.3

Description

Extensible screen reader that provides access to the desktop

Added to portage

2026-10-11

parse - 1.22.3
Ebuild name:

dev-python/parse-1.22.3

Description

Parse strings using a specification based on the Python format() syntax

Added to portage

2026-10-11

portage - 3.0.83
Ebuild name:

sys-apps/portage-3.0.83

Description

The package management and distribution system for Gentoo

Added to portage

2026-10-11

procps - 4.0.5-r5
Ebuild name:

sys-process/procps-4.0.5-r5

Description

Standard informational utilities and process-handling tools

Added to portage

2026-10-11

pykka - 4.5.0
Ebuild name:

dev-python/pykka-4.5.0

Description

A Python implementation of the actor model

Added to portage

2026-10-11

pymdown-extensions - 12.2
Ebuild name:

dev-python/pymdown-extensions-12.2

Description

Extensions for Python Markdown

Added to portage

2026-10-11

pyproject-api - 1.11.5
Ebuild name:

dev-python/pyproject-api-1.11.5

Description

API to interact with the python pyproject.toml based projects

Added to portage

2026-10-11

pyspellchecker - 0.9.1
Ebuild name:

dev-python/pyspellchecker-0.9.1

Description

Pure python spell checker based on work by Peter Norvig

Added to portage

2026-10-11

pytest-env - 1.8.0
Ebuild name:

dev-python/pytest-env-1.8.0

Description

pytest plugin that allows you to add environment variables

Added to portage

2026-10-11

rrdtool - 1.11.0
Ebuild name:

net-analyzer/rrdtool-1.11.0

Description

A data logging and graphing system for time series data

Added to portage

2026-10-11

rrdtool-bindings - 1.11.0
Ebuild name:

dev-ruby/rrdtool-bindings-1.11.0

Description

Ruby bindings for rrdtool

Added to portage

2026-10-11

scalapack - 2.2.3-r2
Ebuild name:

sci-libs/scalapack-2.2.3-r2

Description

Subset of LAPACK routines redesigned for heterogenous (MPI) computing

Added to portage

2026-10-11

scummvm - 2026.4.0
Ebuild name:

games-engines/scummvm-2026.4.0

Description

Reimplementation of various game engines for adventures and role-pla

Added to portage

2026-10-11

soupsieve - 3.0.1
Ebuild name:

dev-python/soupsieve-3.0.1

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-10-11

stress-ng - 0.22.01
Ebuild name:

app-benchmarks/stress-ng-0.22.01

Description

Stress test for a computer system with various selectable ways

Added to portage

2026-10-11

telegram-desktop - 7.1.2-r1
Ebuild name:

net-im/telegram-desktop-7.1.2-r1

Description

Official desktop client for Telegram

Added to portage

2026-10-11

telegram-desktop-bin - 7.3.1
Ebuild name:

net-im/telegram-desktop-bin-7.3.1

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-10-11

thunar - 4.21.7
Ebuild name:

xfce-base/thunar-4.21.7

Description

File manager for the Xfce desktop environment

Added to portage

2026-10-11

tox - 4.65.2
Ebuild name:

dev-python/tox-4.65.2

Description

virtualenv-based automation of test activities

Added to portage

2026-10-11

tuba - 0.11.1-r1
Ebuild name:

net-misc/tuba-0.11.1-r1

Description

Browse the Fediverse (GTK client)

Added to portage

2026-10-11

txredisapi - 1.6.0
Ebuild name:

dev-python/txredisapi-1.6.0

Description

Non-blocking redis client for python

Added to portage

2026-10-11

unifi - 10.6.106
Ebuild name:

net-wireless/unifi-10.6.106

Description

A Management Controller for Ubiquiti Networks UniFi APs

Added to portage

2026-10-11

unionfs-fuse - 3.8
Ebuild name:

sys-fs/unionfs-fuse-3.8

Description

Self-syncing tree-merging file system based on FUSE

Added to portage

2026-10-11

vanilla-sources - 6.18.56
Ebuild name:

sys-kernel/vanilla-sources-6.18.56

Description

Full sources for the Linux kernel

Added to portage

2026-10-11

vanilla-sources - 7.2.10
Ebuild name:

sys-kernel/vanilla-sources-7.2.10

Description

Full sources for the Linux kernel

Added to portage

2026-10-11

wcmatch - 11.1
Ebuild name:

dev-python/wcmatch-11.1

Description

Wildcard/glob file name matcher

Added to portage

2026-10-11

xfdesktop - 4.21.1
Ebuild name:

xfce-base/xfdesktop-4.21.1

Description

Desktop manager for the Xfce desktop environment

Added to portage

2026-10-11

zookeeper-bin - 3.8.7
Ebuild name:

sys-cluster/zookeeper-bin-3.8.7

Description

A high-performance coordination service for distributed application

Added to portage

2026-10-11

zookeeper-bin - 3.9.6
Ebuild name:

sys-cluster/zookeeper-bin-3.9.6

Description

A high-performance coordination service for distributed application

Added to portage

2026-10-11

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