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:

85835

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-06-12
asteval - 1.0.9
Ebuild name:

dev-python/asteval-1.0.9

Description

Evaluator of Python expression using ast module

Added to portage

2026-06-12

awscli - 1.45.28
Ebuild name:

app-admin/awscli-1.45.28

Description

Universal Command Line Environment for AWS

Added to portage

2026-06-12

boto3 - 1.43.28
Ebuild name:

dev-python/boto3-1.43.28

Description

The AWS SDK for Python

Added to portage

2026-06-12

botocore - 1.43.28
Ebuild name:

dev-python/botocore-1.43.28

Description

Low-level, data-driven core of boto 3

Added to portage

2026-06-12

chrome-binary-plugins - 149.0.7827.114
Ebuild name:

www-plugins/chrome-binary-plugins-149.0.7827.114

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-06-12

chrome-binary-plugins - 150.0.7871.13_beta
Ebuild name:

www-plugins/chrome-binary-plugins-150.0.7871.13_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-06-12

chrome-binary-plugins - 151.0.7872.0_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-151.0.7872.0_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-06-12

chromedriver-bin - 149.0.7827.114
Ebuild name:

www-apps/chromedriver-bin-149.0.7827.114

Description

WebDriver for Chrome

Added to portage

2026-06-12

cucumber-expressions - 20.0.0
Ebuild name:

dev-python/cucumber-expressions-20.0.0

Description

Human friendly alternative to Regular Expressions

Added to portage

2026-06-12

cucumber-tag-expressions - 10.0.0
Ebuild name:

dev-python/cucumber-tag-expressions-10.0.0

Description

Cucumber tag expression parser

Added to portage

2026-06-12

dash - 0.5.13.4-r1
Ebuild name:

app-shells/dash-0.5.13.4-r1

Description

Debian Almquist Shell

Added to portage

2026-06-12

dcc - 2.3.168-r2
Ebuild name:

mail-filter/dcc-2.3.168-r2

Description

Distributed Checksum Clearinghouse

Added to portage

2026-06-12

dcc - 2.3.169
Ebuild name:

mail-filter/dcc-2.3.169

Description

Distributed Checksum Clearinghouse

Added to portage

2026-06-12

deno-bin - 2.8.3
Ebuild name:

dev-lang/deno-bin-2.8.3

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-06-12

django-js-asset - 4.0.1
Ebuild name:

dev-python/django-js-asset-4.0.1

Description

Script tag with additional attributes for django.forms.Media

Added to portage

2026-06-12

dosbox-staging - 0.82.2-r2
Ebuild name:

games-emulation/dosbox-staging-0.82.2-r2

Description

Modernized DOSBox soft-fork

Added to portage

2026-06-12

google-chrome - 149.0.7827.114
Ebuild name:

www-client/google-chrome-149.0.7827.114

Description

The web browser from Google

Added to portage

2026-06-12

google-chrome-beta - 150.0.7871.13
Ebuild name:

www-client/google-chrome-beta-150.0.7871.13

Description

The web browser from Google

Added to portage

2026-06-12

google-chrome-unstable - 151.0.7872.0
Ebuild name:

www-client/google-chrome-unstable-151.0.7872.0

Description

The web browser from Google

Added to portage

2026-06-12

grpcio - 1.81.1
Ebuild name:

dev-python/grpcio-1.81.1

Description

HTTP/2-based RPC framework

Added to portage

2026-06-12

grpcio-status - 1.81.1
Ebuild name:

dev-python/grpcio-status-1.81.1

Description

Reference package for GRPC Python status proto mapping

Added to portage

2026-06-12

hishel - 1.3.0
Ebuild name:

dev-python/hishel-1.3.0

Description

An elegant HTTP Cache implementation for HTTPX and HTTP Core

Added to portage

2026-06-12

libsecret - 0.21.7-r1
Ebuild name:

app-crypt/libsecret-0.21.7-r1

Description

GObject library for accessing the freedesktop.org Secret Service API

Added to portage

2026-06-12

libu2f-host - 1.1.10-r1
Ebuild name:

app-crypt/libu2f-host-1.1.10-r1

Description

Yubico Universal 2nd Factor (U2F) Host C Library

Added to portage

2026-06-12

maturin - 1.14.0
Ebuild name:

dev-util/maturin-1.14.0

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-06-12

microsoft-edge - 149.0.4022.62
Ebuild name:

www-client/microsoft-edge-149.0.4022.62

Description

The web browser from Microsoft

Added to portage

2026-06-12

microsoft-edge-beta - 149.0.4022.52
Ebuild name:

www-client/microsoft-edge-beta-149.0.4022.52

Description

The web browser from Microsoft

Added to portage

2026-06-12

microsoft-edge-beta - 149.0.4022.62
Ebuild name:

www-client/microsoft-edge-beta-149.0.4022.62

Description

The web browser from Microsoft

Added to portage

2026-06-12

microsoft-edge-beta - 150.0.4078.5
Ebuild name:

www-client/microsoft-edge-beta-150.0.4078.5

Description

The web browser from Microsoft

Added to portage

2026-06-12

microsoft-edge-dev - 150.0.4064.2
Ebuild name:

www-client/microsoft-edge-dev-150.0.4064.2

Description

The web browser from Microsoft

Added to portage

2026-06-12

microsoft-edge-dev - 150.0.4078.1
Ebuild name:

www-client/microsoft-edge-dev-150.0.4078.1

Description

The web browser from Microsoft

Added to portage

2026-06-12

microsoft-edge-dev - 150.0.4078.5
Ebuild name:

www-client/microsoft-edge-dev-150.0.4078.5

Description

The web browser from Microsoft

Added to portage

2026-06-12

msgpack - 1.2.0
Ebuild name:

dev-python/msgpack-1.2.0

Description

MessagePack (de)serializer for Python

Added to portage

2026-06-12

openmw - 0.51.0
Ebuild name:

games-engines/openmw-0.51.0

Description

Open source reimplementation of TES III Morrowind

Added to portage

2026-06-12

openscenegraph-openmw - 3.6_p20260130
Ebuild name:

dev-games/openscenegraph-openmw-3.6_p20260130

Description

OpenMW-specific fork of OpenSceneGraph

Added to portage

2026-06-12

opera - 132.0.5905.37
Ebuild name:

www-client/opera-132.0.5905.37

Description

A fast and secure web browser

Added to portage

2026-06-12

opera-developer - 133.0.5917.0
Ebuild name:

www-client/opera-developer-133.0.5917.0

Description

A fast and secure web browser

Added to portage

2026-06-12

opera-developer - 133.0.5924.0
Ebuild name:

www-client/opera-developer-133.0.5924.0

Description

A fast and secure web browser

Added to portage

2026-06-12

oslo-config - 10.5.0
Ebuild name:

dev-python/oslo-config-10.5.0

Description

Oslo Configuration API

Added to portage

2026-06-12

pbs-installer - 2026.6.10
Ebuild name:

dev-python/pbs-installer-2026.6.10

Description

Installer for Python Build Standalone

Added to portage

2026-06-12

peewee - 4.0.7
Ebuild name:

dev-python/peewee-4.0.7

Description

Small Python ORM

Added to portage

2026-06-12

protobuf - 7.35.1
Ebuild name:

dev-python/protobuf-7.35.1

Description

Google's Protocol Buffers - Python bindings

Added to portage

2026-06-12

pyproject-fmt - 2.24.0
Ebuild name:

dev-python/pyproject-fmt-2.24.0

Description

Format your pyproject.toml file

Added to portage

2026-06-12

python-discovery - 1.4.2
Ebuild name:

dev-python/python-discovery-1.4.2

Description

Python interpreter discovery

Added to portage

2026-06-12

sphinx-autodoc-typehints - 3.10.6
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.10.6

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-06-12

sphinx-autodoc-typehints - 3.11.0
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.11.0

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-06-12

sqlglot - 30.11.0
Ebuild name:

dev-python/sqlglot-30.11.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-06-12

vivaldi - 8.0.4033.46
Ebuild name:

www-client/vivaldi-8.0.4033.46

Description

A browser for our friends

Added to portage

2026-06-12

vivaldi-snapshot - 8.1.4068.3
Ebuild name:

www-client/vivaldi-snapshot-8.1.4068.3

Description

A browser for our friends

Added to portage

2026-06-12

vivaldi-snapshot - 8.1.4069.3
Ebuild name:

www-client/vivaldi-snapshot-8.1.4069.3

Description

A browser for our friends

Added to portage

2026-06-12

2026-06-11
awscli - 1.45.27
Ebuild name:

app-admin/awscli-1.45.27

Description

Universal Command Line Environment for AWS

Added to portage

2026-06-11

bcachefs-tools - 1.37.4-r1
Ebuild name:

sys-fs/bcachefs-tools-1.37.4-r1

Description

Tools for bcachefs

Added to portage

2026-06-11

bcachefs-tools - 1.38.2-r1
Ebuild name:

sys-fs/bcachefs-tools-1.38.2-r1

Description

Tools for bcachefs

Added to portage

2026-06-11

binutils - 2.46.1-r1
Ebuild name:

sys-devel/binutils-2.46.1-r1

Description

Tools necessary to build programs

Added to portage

2026-06-11

binutils-libs - 2.46.1-r1
Ebuild name:

sys-libs/binutils-libs-2.46.1-r1

Description

Core binutils libraries (libbfd, libopcodes, libiberty) for extern

Added to portage

2026-06-11

boto3 - 1.43.27
Ebuild name:

dev-python/boto3-1.43.27

Description

The AWS SDK for Python

Added to portage

2026-06-11

botocore - 1.43.27
Ebuild name:

dev-python/botocore-1.43.27

Description

Low-level, data-driven core of boto 3

Added to portage

2026-06-11

c-blosc2 - 3.1.3
Ebuild name:

dev-libs/c-blosc2-3.1.3

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-06-11

catalyst - 4.1.1-r1
Ebuild name:

dev-util/catalyst-4.1.1-r1

Description

Release metatool used for creating releases based on Gentoo Linux

Added to portage

2026-06-11

claude-code - 2.1.172
Ebuild name:

dev-util/claude-code-2.1.172

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-06-11

css-parser - 1.1.1
Ebuild name:

dev-python/css-parser-1.1.1

Description

A CSS Cascading Style Sheets library (fork of cssutils)

Added to portage

2026-06-11

cython - 3.2.5-r1
Ebuild name:

dev-python/cython-3.2.5-r1

Description

A Python to C compiler

Added to portage

2026-06-11

evisum - 1.2.5
Ebuild name:

sys-process/evisum-1.2.5

Description

System and process monitor written with EFL

Added to portage

2026-06-11

evisum - 2.0.11
Ebuild name:

sys-process/evisum-2.0.11

Description

System and process monitor written with EFL

Added to portage

2026-06-11

faker - 40.23.0
Ebuild name:

dev-python/faker-40.23.0

Description

A Python package that generates fake data for you

Added to portage

2026-06-11

file - 5.48
Ebuild name:

sys-apps/file-5.48

Description

Identify a file's format by scanning binary data for patterns

Added to portage

2026-06-11

filelock - 3.29.3
Ebuild name:

dev-python/filelock-3.29.3

Description

A platform independent file lock for Python

Added to portage

2026-06-11

foot - 1.27.0
Ebuild name:

gui-apps/foot-1.27.0

Description

Fast, lightweight and minimalistic Wayland terminal emulator

Added to portage

2026-06-11

foot-terminfo - 1.27.0
Ebuild name:

gui-apps/foot-terminfo-1.27.0

Description

Terminfo for foot, a fast, lightweight and minimal Wayland terminal e

Added to portage

2026-06-11

game-device-udev-rules - 20260605
Ebuild name:

games-util/game-device-udev-rules-20260605

Description

udev rules for various game hardware devices

Added to portage

2026-06-11

gherkin-official - 40.0.0
Ebuild name:

dev-python/gherkin-official-40.0.0

Description

Gherkin parser/compiler for Python

Added to portage

2026-06-11

gnupg - 2.5.20-r1
Ebuild name:

app-crypt/gnupg-2.5.20-r1

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2026-06-11

ipykernel - 7.3.0
Ebuild name:

dev-python/ipykernel-7.3.0

Description

IPython Kernel for Jupyter

Added to portage

2026-06-11

libgphoto2 - 2.5.34
Ebuild name:

media-libs/libgphoto2-2.5.34

Description

Library that implements support for numerous digital cameras

Added to portage

2026-06-11

lld - 21.1.8-r1
Ebuild name:

llvm-core/lld-21.1.8-r1

Description

The LLVM linker (link editor)

Added to portage

2026-06-11

lld - 22.1.7-r1
Ebuild name:

llvm-core/lld-22.1.7-r1

Description

The LLVM linker (link editor)

Added to portage

2026-06-11

mcomix - 3.1.1-r1
Ebuild name:

media-gfx/mcomix-3.1.1-r1

Description

GTK image viewer for comic book archives

Added to portage

2026-06-11

meson-python - 0.20.0
Ebuild name:

dev-python/meson-python-0.20.0

Description

Meson PEP 517 Python build backend

Added to portage

2026-06-11

moodle - 4.5.12
Ebuild name:

www-apps/moodle-4.5.12

Description

The Moodle Course Management System

Added to portage

2026-06-11

moodle - 5.0.8
Ebuild name:

www-apps/moodle-5.0.8

Description

The Moodle Course Management System

Added to portage

2026-06-11

moonlight - 6.1.0-r4
Ebuild name:

net-misc/moonlight-6.1.0-r4

Description

NVIDIA GameStream (and Sunshine) client

Added to portage

2026-06-11

mpg123-base - 1.33.6
Ebuild name:

media-sound/mpg123-base-1.33.6

Description

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

Added to portage

2026-06-11

mpg123-output-plugins - 1.33.6
Ebuild name:

media-plugins/mpg123-output-plugins-1.33.6

Description

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

Added to portage

2026-06-11

mycli - 1.74.0
Ebuild name:

dev-db/mycli-1.74.0

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2026-06-11

nest-asyncio2 - 1.7.0
Ebuild name:

dev-python/nest-asyncio2-1.7.0

Description

Patch asyncio to allow nested event loops

Added to portage

2026-06-11

poppler - 26.05.0-r1
Ebuild name:

app-text/poppler-26.05.0-r1

Description

PDF rendering library based on the xpdf-3.0 code base

Added to portage

2026-06-11

pyghmi - 1.6.17
Ebuild name:

dev-python/pyghmi-1.6.17

Description

A pure python implementation of IPMI protocol

Added to portage

2026-06-11

pypdf - 6.13.2
Ebuild name:

dev-python/pypdf-6.13.2

Description

Python library to work with PDF files

Added to portage

2026-06-11

python - 0.3.14.6
Ebuild name:

dev-lang/python-0.3.14.6

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-06-11

python - 3.13.14
Ebuild name:

dev-lang/python-3.13.14

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-06-11

python - 3.14.6
Ebuild name:

dev-lang/python-3.14.6

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-06-11

python-openstackclient - 10.1.0
Ebuild name:

dev-python/python-openstackclient-10.1.0

Description

A client for the OpenStack APIs

Added to portage

2026-06-11

python-tests - 0.3.14.6
Ebuild name:

dev-python/python-tests-0.3.14.6

Description

Test modules from dev-lang/python

Added to portage

2026-06-11

python-tests - 3.13.14
Ebuild name:

dev-python/python-tests-3.13.14

Description

Test modules from dev-lang/python

Added to portage

2026-06-11

python-tests - 3.14.6
Ebuild name:

dev-python/python-tests-3.14.6

Description

Test modules from dev-lang/python

Added to portage

2026-06-11

senpai - 0.5.0
Ebuild name:

net-irc/senpai-0.5.0

Description

Modern terminal IRC client. NOTICE me

Added to portage

2026-06-11

snd - 26.4
Ebuild name:

media-sound/snd-26.4

Description

Sound editor

Added to portage

2026-06-11

systemtap - 5.5
Ebuild name:

dev-debug/systemtap-5.5

Description

Linux trace/probe tool

Added to portage

2026-06-11

uv - 0.11.20
Ebuild name:

dev-python/uv-0.11.20

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-06-11

uv-build - 0.11.20
Ebuild name:

dev-python/uv-build-0.11.20

Description

PEP517 uv build backend

Added to portage

2026-06-11

vopono - 0.10.17
Ebuild name:

net-vpn/vopono-0.10.17

Description

Launch applications via VPN tunnels using temporary network namespaces

Added to portage

2026-06-11

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