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:

85242

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-05-20
2026-05-19
amdgpu_top - 0.11.5
Ebuild name:

sys-apps/amdgpu_top-0.11.5

Description

Tool to display AMDGPU usage

Added to portage

2026-05-19

audit - 4.1.4-r2
Ebuild name:

sys-process/audit-4.1.4-r2

Description

Userspace utilities for storing and processing auditing records

Added to portage

2026-05-19

awscli - 1.45.10
Ebuild name:

app-admin/awscli-1.45.10

Description

Universal Command Line Environment for AWS

Added to portage

2026-05-19

bear - 4.1.3
Ebuild name:

dev-util/bear-4.1.3

Description

A tool that generates a compilation database for clang tooling

Added to portage

2026-05-19

beets - 2.10.0
Ebuild name:

media-sound/beets-2.10.0

Description

Media library management system for obsessive music geeks

Added to portage

2026-05-19

beets - 2.11.0
Ebuild name:

media-sound/beets-2.11.0

Description

Media library management system for obsessive music geeks

Added to portage

2026-05-19

black - 26.5.1
Ebuild name:

dev-python/black-26.5.1

Description

The uncompromising Python code formatter

Added to portage

2026-05-19

boto3 - 1.43.10
Ebuild name:

dev-python/boto3-1.43.10

Description

The AWS SDK for Python

Added to portage

2026-05-19

botocore - 1.43.10
Ebuild name:

dev-python/botocore-1.43.10

Description

Low-level, data-driven core of boto 3

Added to portage

2026-05-19

cachetools - 7.1.3
Ebuild name:

dev-python/cachetools-7.1.3

Description

Extensible memoizing collections and decorators

Added to portage

2026-05-19

caja - 1.28.0-r3
Ebuild name:

mate-base/caja-1.28.0-r3

Description

Caja file manager for the MATE desktop

Added to portage

2026-05-19

click - 8.4.0
Ebuild name:

dev-python/click-8.4.0

Description

A Python package for creating beautiful command line interfaces

Added to portage

2026-05-19

clojure - 1.12.5
Ebuild name:

dev-lang/clojure-1.12.5

Description

General-purpose programming language with an emphasis on functional program

Added to portage

2026-05-19

clojure-tools - 1.12.5.1645
Ebuild name:

dev-util/clojure-tools-1.12.5.1645

Description

Development tools for the Clojure programming language

Added to portage

2026-05-19

closure-compiler-bin - 20260513
Ebuild name:

dev-lang/closure-compiler-bin-20260513

Description

JavaScript optimizing compiler

Added to portage

2026-05-19

consoleet-utils - 1.11
Ebuild name:

app-misc/consoleet-utils-1.11

Description

Set of utilities for manipulating terminal fonts and colors

Added to portage

2026-05-19

cronie - 1.7.2-r1
Ebuild name:

sys-process/cronie-1.7.2-r1

Description

Cronie is a standard UNIX daemon cron based on the original vixie-cron

Added to portage

2026-05-19

crystal - 1.20.2
Ebuild name:

dev-lang/crystal-1.20.2

Description

The Crystal Programming Language

Added to portage

2026-05-19

cxxtools - 3.0-r4
Ebuild name:

dev-libs/cxxtools-3.0-r4

Description

Collection of general purpose C++-classes

Added to portage

2026-05-19

dbus - 1.16.2-r1
Ebuild name:

sys-apps/dbus-1.16.2-r1

Description

A message bus system, a simple way for applications to talk to each other

Added to portage

2026-05-19

decorator - 5.3.1
Ebuild name:

dev-python/decorator-5.3.1

Description

Simplifies the usage of decorators for the average programmer

Added to portage

2026-05-19

devcontainer - 0.87.0
Ebuild name:

app-containers/devcontainer-0.87.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-05-19

fable - 4.29.0-r2
Ebuild name:

dev-dotnet/fable-4.29.0-r2

Description

F to JavaScript, TypeScript, Python, Rust and Dart Compiler

Added to portage

2026-05-19

fable - 5.0.0-r2
Ebuild name:

dev-dotnet/fable-5.0.0-r2

Description

F to JavaScript, TypeScript, Python, Rust and Dart Compiler

Added to portage

2026-05-19

firefox - 151.0
Ebuild name:

www-client/firefox-151.0

Description

Firefox Web Browser

Added to portage

2026-05-19

firefox-l10n - 151.0
Ebuild name:

www-client/firefox-l10n-151.0

Description

Firefox Web Browser's translation files

Added to portage

2026-05-19

fish - 4.7.1
Ebuild name:

app-shells/fish-4.7.1

Description

Friendly Interactive SHell

Added to portage

2026-05-19

gdal - 3.12.4
Ebuild name:

sci-libs/gdal-3.12.4

Description

Translator library for raster geospatial data formats (includes OGR support)

Added to portage

2026-05-19

gentoo-sources - 5.10.256-r1
Ebuild name:

sys-kernel/gentoo-sources-5.10.256-r1

Description

Full sources including the Gentoo patchset for the . kernel t

Added to portage

2026-05-19

gentoo-sources - 5.15.207-r1
Ebuild name:

sys-kernel/gentoo-sources-5.15.207-r1

Description

Full sources including the Gentoo patchset for the . kernel t

Added to portage

2026-05-19

gentoo-sources - 6.1.173-r1
Ebuild name:

sys-kernel/gentoo-sources-6.1.173-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-05-19

gentoo-sources - 6.12.90-r1
Ebuild name:

sys-kernel/gentoo-sources-6.12.90-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-05-19

gentoo-sources - 6.18.32-r1
Ebuild name:

sys-kernel/gentoo-sources-6.18.32-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-05-19

gentoo-sources - 6.6.140-r1
Ebuild name:

sys-kernel/gentoo-sources-6.6.140-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-05-19

gentoo-sources - 7.0.9-r1
Ebuild name:

sys-kernel/gentoo-sources-7.0.9-r1

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-05-19

goland - 2025.3.4
Ebuild name:

dev-util/goland-2025.3.4

Description

Golang IDE by JetBrains

Added to portage

2026-05-19

goland - 2026.1
Ebuild name:

dev-util/goland-2026.1

Description

Golang IDE by JetBrains

Added to portage

2026-05-19

goland - 2026.1.1
Ebuild name:

dev-util/goland-2026.1.1

Description

Golang IDE by JetBrains

Added to portage

2026-05-19

gr-ieee802154 - 0.0_p20210719-r5
Ebuild name:

net-wireless/gr-ieee802154-0.0_p20210719-r5

Description

IEEE 802.15.4 ZigBee Transceiver

Added to portage

2026-05-19

gr-ieee802154 - 0.0_p20230828-r1
Ebuild name:

net-wireless/gr-ieee802154-0.0_p20230828-r1

Description

IEEE 802.15.4 ZigBee Transceiver

Added to portage

2026-05-19

hxtools - 20251011
Ebuild name:

dev-util/hxtools-20251011

Description

Collection of tools and scripts

Added to portage

2026-05-19

hypothesis - 6.152.8
Ebuild name:

dev-python/hypothesis-6.152.8

Description

A library for property based testing

Added to portage

2026-05-19

icalendar - 7.1.1
Ebuild name:

dev-python/icalendar-7.1.1

Description

RFC 5545 compatible parser and generator of iCalendar files

Added to portage

2026-05-19

jf - 1.0.0
Ebuild name:

app-misc/jf-1.0.0

Description

A small utility to safely format and print JSON objects in the commandline

Added to portage

2026-05-19

joplin-desktop - 3.7.1
Ebuild name:

app-office/joplin-desktop-3.7.1

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-05-19

libpqxx - 7.10.6
Ebuild name:

dev-libs/libpqxx-7.10.6

Description

Standard front-end for writing C++ programs that use PostgreSQL

Added to portage

2026-05-19

libpqxx - 7.10.7
Ebuild name:

dev-libs/libpqxx-7.10.7

Description

Standard front-end for writing C++ programs that use PostgreSQL

Added to portage

2026-05-19

libpqxx - 8.0.1
Ebuild name:

dev-libs/libpqxx-8.0.1

Description

Standard front-end for writing C++ programs that use PostgreSQL

Added to portage

2026-05-19

librepcb - 1.3.0-r1
Ebuild name:

sci-electronics/librepcb-1.3.0-r1

Description

Free EDA software to develop printed circuit boards

Added to portage

2026-05-19

libreplaygain - 483-r1
Ebuild name:

media-libs/libreplaygain-483-r1

Description

Replay Gain library from Musepack

Added to portage

2026-05-19

libtmux - 0.57.1
Ebuild name:

dev-python/libtmux-0.57.1

Description

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

Added to portage

2026-05-19

lxml - 6.1.1
Ebuild name:

dev-python/lxml-6.1.1

Description

A Pythonic binding for the libxml2 and libxslt libraries

Added to portage

2026-05-19

memtest86+ - 8.10
Ebuild name:

sys-apps/memtest86+-8.10

Description

Memory tester based on PCMemTest

Added to portage

2026-05-19

moolticute - 1.03.0-r2
Ebuild name:

app-crypt/moolticute-1.03.0-r2

Description

Mooltipass crossplatform daemon/tools

Added to portage

2026-05-19

moolticute - 9999
Ebuild name:

app-crypt/moolticute-9999

Description

Mooltipass crossplatform daemon/tools

Added to portage

2026-05-19

mpg123-base - 1.33.5
Ebuild name:

media-sound/mpg123-base-1.33.5

Description

Realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3

Added to portage

2026-05-19

mpg123-output-plugins - 1.33.5
Ebuild name:

media-plugins/mpg123-output-plugins-1.33.5

Description

Plugins for mpg123, the realtime MPEG 1.0/2.0/2.5 audio

Added to portage

2026-05-19

mtd-utils - 2.3.1
Ebuild name:

sys-fs/mtd-utils-2.3.1

Description

MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)

Added to portage

2026-05-19

mycli - 1.72.1
Ebuild name:

dev-db/mycli-1.72.1

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2026-05-19

nasty - 0.6-r2
Ebuild name:

app-crypt/nasty-0.6-r2

Description

Proof-of-concept GPG passphrase recovery tool

Added to portage

2026-05-19

nethack - 5.0.0-r1
Ebuild name:

games-roguelike/nethack-5.0.0-r1

Description

The ultimate old-school single player dungeon exploration game

Added to portage

2026-05-19

numpy - 2.4.6
Ebuild name:

dev-python/numpy-2.4.6

Description

Fast array and numerical python library

Added to portage

2026-05-19

openpgp-keys-yubico - 20260509
Ebuild name:

sec-keys/openpgp-keys-yubico-20260509

Description

OpenPGP keys used by Yubico's developers

Added to portage

2026-05-19

openstacksdk - 4.13.0
Ebuild name:

dev-python/openstacksdk-4.13.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-05-19

oslo-config - 10.4.0
Ebuild name:

dev-python/oslo-config-10.4.0

Description

Oslo Configuration API

Added to portage

2026-05-19

oslo-context - 6.4.0
Ebuild name:

dev-python/oslo-context-6.4.0

Description

Helpers to maintain useful information about a request context

Added to portage

2026-05-19

oslo-i18n - 6.8.0
Ebuild name:

dev-python/oslo-i18n-6.8.0

Description

Oslo i18n library

Added to portage

2026-05-19

oslo-log - 8.2.0
Ebuild name:

dev-python/oslo-log-8.2.0

Description

OpenStack logging config library, configuration for all openstack project

Added to portage

2026-05-19

oslo-serialization - 5.10.0
Ebuild name:

dev-python/oslo-serialization-5.10.0

Description

Oslo Serialization library

Added to portage

2026-05-19

passwdqc - 2.1.0-r1
Ebuild name:

sys-auth/passwdqc-2.1.0-r1

Description

Password strength checking library (and PAM module)

Added to portage

2026-05-19

patool - 4.0.5
Ebuild name:

app-arch/patool-4.0.5

Description

Portable archive file manager

Added to portage

2026-05-19

ppsspp - 1.20.4
Ebuild name:

games-emulation/ppsspp-1.20.4

Description

A PSP emulator written in C++

Added to portage

2026-05-19

procenv - 0.60
Ebuild name:

sys-process/procenv-0.60

Description

command-line utility to show process environment

Added to portage

2026-05-19

pysnmp - 7.1.27
Ebuild name:

dev-python/pysnmp-7.1.27

Description

Python SNMP library

Added to portage

2026-05-19

python-ironicclient - 6.1.0
Ebuild name:

dev-python/python-ironicclient-6.1.0

Description

Python bindings for the Ironic API

Added to portage

2026-05-19

python-openstackclient - 10.0.0
Ebuild name:

dev-python/python-openstackclient-10.0.0

Description

A client for the OpenStack APIs

Added to portage

2026-05-19

requests-ratelimiter - 0.10.0
Ebuild name:

dev-python/requests-ratelimiter-0.10.0

Description

Rate-limiting for the requests library

Added to portage

2026-05-19

scx - 1.1.1
Ebuild name:

sys-kernel/scx-1.1.1

Description

sched_ext schedulers and tools

Added to portage

2026-05-19

scx-loader - 1.1.1
Ebuild name:

sys-kernel/scx-loader-1.1.1

Description

DBUS on-demand loader of sched-ext schedulers

Added to portage

2026-05-19

setuptools-gettext - 0.1.17
Ebuild name:

dev-python/setuptools-gettext-0.1.17

Description

Setuptools plugin for building mo files

Added to portage

2026-05-19

stevedore - 5.8.0
Ebuild name:

dev-python/stevedore-5.8.0

Description

Manage dynamic plugins for Python applications

Added to portage

2026-05-19

strongswan - 6.0.4-r1
Ebuild name:

net-vpn/strongswan-6.0.4-r1

Description

IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE

Added to portage

2026-05-19

superqt - 0.8.2
Ebuild name:

dev-python/superqt-0.8.2

Description

Missing widgets and components for PyQt/PySide

Added to portage

2026-05-19

tuf - 7.0.0
Ebuild name:

dev-python/tuf-7.0.0

Description

A secure updater framework for Python

Added to portage

2026-05-19

tuxpaint - 0.9.35-r1
Ebuild name:

media-gfx/tuxpaint-0.9.35-r1

Description

Drawing program designed for young children

Added to portage

2026-05-19

types-docutils - 0.22.3.20260518
Ebuild name:

dev-python/types-docutils-0.22.3.20260518

Description

Typing stubs for docutils

Added to portage

2026-05-19

types-gdb - 16.3.0.20260518
Ebuild name:

dev-python/types-gdb-16.3.0.20260518

Description

Typing stubs for gdb

Added to portage

2026-05-19

types-psutil - 7.2.2.20260518
Ebuild name:

dev-python/types-psutil-7.2.2.20260518

Description

Typing stubs for psutil

Added to portage

2026-05-19

types-python-dateutil - 2.9.0.20260518
Ebuild name:

dev-python/types-python-dateutil-2.9.0.20260518

Description

Typing stubs for python-dateutil

Added to portage

2026-05-19

types-setuptools - 82.0.0.20260518
Ebuild name:

dev-python/types-setuptools-82.0.0.20260518

Description

Typing stubs for setuptools

Added to portage

2026-05-19

umockdev - 0.19.7-r1
Ebuild name:

dev-util/umockdev-0.19.7-r1

Description

Mock hardware devices for creating unit tests

Added to portage

2026-05-19

uv - 0.11.15
Ebuild name:

dev-python/uv-0.11.15

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-05-19

uv-build - 0.11.15
Ebuild name:

dev-python/uv-build-0.11.15

Description

PEP517 uv build backend

Added to portage

2026-05-19

vinyl-cache - 8.0.2
Ebuild name:

www-servers/vinyl-cache-8.0.2

Description

Varnish is a state-of-the-art, high-performance HTTP accelerator

Added to portage

2026-05-19

vinyl-cache - 9.0.1
Ebuild name:

www-servers/vinyl-cache-9.0.1

Description

A high-performance caching HTTP reverse proxy

Added to portage

2026-05-19

watchfiles - 1.2.0
Ebuild name:

dev-python/watchfiles-1.2.0

Description

Simple, modern file watching and code reload in Python

Added to portage

2026-05-19

xmlsec - 1.3.11-r1
Ebuild name:

dev-libs/xmlsec-1.3.11-r1

Description

Command line tool for signing, verifying, encrypting and decrypting XML

Added to portage

2026-05-19

zeroconf - 0.149.7
Ebuild name:

dev-python/zeroconf-0.149.7

Description

Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi comp

Added to portage

2026-05-19

zipp - 4.1.0
Ebuild name:

dev-python/zipp-4.1.0

Description

Backport of pathlib-compatible object wrapper for zip files

Added to portage

2026-05-19

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