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:

82939

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 (35 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-01-25
Finance-Quote - 1.670.0-r1
Ebuild name:

dev-perl/Finance-Quote-1.670.0-r1

Description

Get stock and mutual fund quotes from various exchanges

Added to portage

2026-01-25

Sys-Virt - 12.0.0
Ebuild name:

dev-perl/Sys-Virt-12.0.0

Description

API for using the libvirt library from Perl

Added to portage

2026-01-25

cli-helpers - 2.8.1
Ebuild name:

dev-python/cli-helpers-2.8.1

Description

Python helpers for common CLI tasks

Added to portage

2026-01-25

color - 2.2.0
Ebuild name:

dev-ruby/color-2.2.0

Description

Colour management with Ruby

Added to portage

2026-01-25

coreutils - 9.9-r12
Ebuild name:

sys-apps/coreutils-9.9-r12

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

Added to portage

2026-01-25

django-cache-url - 3.4.6
Ebuild name:

dev-python/django-cache-url-3.4.6

Description

Use Cache URLs in your Django application

Added to portage

2026-01-25

faker - 3.6.0
Ebuild name:

dev-ruby/faker-3.6.0

Description

A library for generating fake data such as names, addresses, and phone numbers

Added to portage

2026-01-25

glibc - 2.41-r10
Ebuild name:

sys-libs/glibc-2.41-r10

Description

GNU libc C library

Added to portage

2026-01-25

harfbuzz - 12.3.2
Ebuild name:

media-libs/harfbuzz-12.3.2

Description

An OpenType text shaping engine

Added to portage

2026-01-25

kauth - 5.116.0-r1
Ebuild name:

kde-frameworks/kauth-5.116.0-r1

Description

Framework to let applications perform actions as a privileged user

Added to portage

2026-01-25

libsodium - 1.0.21_p20260122
Ebuild name:

dev-libs/libsodium-1.0.21_p20260122

Description

Portable fork of NaCl, a higher-level cryptographic library

Added to portage

2026-01-25

libvirt - 12.0.0
Ebuild name:

app-emulation/libvirt-12.0.0

Description

C toolkit to manipulate virtual machines

Added to portage

2026-01-25

libvirt-python - 12.0.0
Ebuild name:

dev-python/libvirt-python-12.0.0

Description

libvirt Python bindings

Added to portage

2026-01-25

lucene++ - 3.0.9-r2
Ebuild name:

dev-cpp/lucene++-3.0.9-r2

Description

C++ port of Lucene library, a high-performance, full-featured text search

Added to portage

2026-01-25

makemkv - 1.18.3
Ebuild name:

media-video/makemkv-1.18.3

Description

Tool for ripping and streaming Blu-ray, HD-DVD and DVD discs

Added to portage

2026-01-25

mkdocstrings - 1.0.2
Ebuild name:

dev-python/mkdocstrings-1.0.2

Description

Automatic documentation from sources, for MkDocs

Added to portage

2026-01-25

openjdk - 26_beta32
Ebuild name:

dev-java/openjdk-26_beta32

Description

Open source implementation of the Java programming language

Added to portage

2026-01-25

openjdk - 27_alpha6
Ebuild name:

dev-java/openjdk-27_alpha6

Description

Open source implementation of the Java programming language

Added to portage

2026-01-25

openjdk - 8.482_p08
Ebuild name:

dev-java/openjdk-8.482_p08

Description

Open source implementation of the Java programming language

Added to portage

2026-01-25

openpgp-keys-libjpeg-turbo - 20260124
Ebuild name:

sec-keys/openpgp-keys-libjpeg-turbo-20260124

Description

OpenPGP key used by media-libs/libjpeg-turbo

Added to portage

2026-01-25

org-superstar-mode - 1.5.0
Ebuild name:

app-emacs/org-superstar-mode-1.5.0

Description

Prettify headings and plain lists in Org mode (use UTF8 bullets)

Added to portage

2026-01-25

osm - 1.12
Ebuild name:

app-emacs/osm-1.12

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-25

osm - 1.9
Ebuild name:

app-emacs/osm-1.9

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-25

pass - 1.7.4-r4
Ebuild name:

app-admin/pass-1.7.4-r4

Description

Stores, retrieves, generates, and synchronizes passwords securely

Added to portage

2026-01-25

passff-host - 1.2.5
Ebuild name:

www-plugins/passff-host-1.2.5

Description

Host app for the PassFF WebExtension

Added to portage

2026-01-25

plantuml - 1.2026.1
Ebuild name:

media-gfx/plantuml-1.2026.1

Description

Draw UML diagrams using a simple and human readable text description

Added to portage

2026-01-25

puma - 7.2.0
Ebuild name:

www-servers/puma-7.2.0

Description

a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rac

Added to portage

2026-01-25

pycollada - 0.9.3
Ebuild name:

dev-python/pycollada-0.9.3

Description

Python library for reading and writing COLLADA documents

Added to portage

2026-01-25

qpdf - 12.3.2
Ebuild name:

app-text/qpdf-12.3.2

Description

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

Added to portage

2026-01-25

redoflacs - 1.1.0
Ebuild name:

media-sound/redoflacs-1.1.0

Description

Bash commandline flac compressor, verifier, organizer, analyzer, retagg

Added to portage

2026-01-25

rich - 14.3.1
Ebuild name:

dev-python/rich-14.3.1

Description

Python library for rendering rich text, tables, etc. to the terminal

Added to portage

2026-01-25

tiff - 4.7.1
Ebuild name:

media-libs/tiff-4.7.1

Description

Tag Image File Format (TIFF) library

Added to portage

2026-01-25

tomcat - 9.0.115
Ebuild name:

www-servers/tomcat-9.0.115

Description

Tomcat Servlet-4.0/JSP-2.3/EL-3.0/WebSocket-1.1/JASPIC-1.1 Container

Added to portage

2026-01-25

wine-staging - 11.1
Ebuild name:

app-emulation/wine-staging-11.1

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patch

Added to portage

2026-01-25

wrapt - 2.1.0_rc1
Ebuild name:

dev-python/wrapt-2.1.0_rc1

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-01-25

x25519 - 1.0.11
Ebuild name:

dev-ruby/x25519-1.0.11

Description

Key exchange via the X25519 (Curve25519) Elliptic Curve Diffie-Hellman funct

Added to portage

2026-01-25

2026-01-24
awscli - 1.44.24
Ebuild name:

app-admin/awscli-1.44.24

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-24

boto3 - 1.42.34
Ebuild name:

dev-python/boto3-1.42.34

Description

The AWS SDK for Python

Added to portage

2026-01-24

botocore - 1.42.34
Ebuild name:

dev-python/botocore-1.42.34

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-24

closure-compiler-bin - 20260121
Ebuild name:

dev-lang/closure-compiler-bin-20260121

Description

JavaScript optimizing compiler

Added to portage

2026-01-24

crystal - 1.19.1
Ebuild name:

dev-lang/crystal-1.19.1

Description

The Crystal Programming Language

Added to portage

2026-01-24

electrum - 4.7.0
Ebuild name:

net-misc/electrum-4.7.0

Description

User friendly Bitcoin client

Added to portage

2026-01-24

gallery-dl - 1.31.4
Ebuild name:

net-misc/gallery-dl-1.31.4

Description

Download image galleries and collections from several image hosting site

Added to portage

2026-01-24

gentoo-sources - 6.12.67
Ebuild name:

sys-kernel/gentoo-sources-6.12.67

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-01-24

gentoo-sources - 6.18.7
Ebuild name:

sys-kernel/gentoo-sources-6.18.7

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-01-24

glibc - 2.42-r5
Ebuild name:

sys-libs/glibc-2.42-r5

Description

GNU libc C library

Added to portage

2026-01-24

glibc - 2.43
Ebuild name:

sys-libs/glibc-2.43

Description

GNU libc C library

Added to portage

2026-01-24

greenlet - 3.3.1
Ebuild name:

dev-python/greenlet-3.3.1

Description

Lightweight in-process concurrent programming

Added to portage

2026-01-24

gunicorn - 24.1.1
Ebuild name:

www-servers/gunicorn-24.1.1

Description

A WSGI HTTP Server for UNIX

Added to portage

2026-01-24

hcloud - 2.16.0
Ebuild name:

dev-python/hcloud-2.16.0

Description

Official Hetzner Cloud python library

Added to portage

2026-01-24

hypothesis - 6.150.3
Ebuild name:

dev-python/hypothesis-6.150.3

Description

A library for property based testing

Added to portage

2026-01-24

ibus-m17n - 1.4.37
Ebuild name:

app-i18n/ibus-m17n-1.4.37

Description

M17N engine for IBus

Added to portage

2026-01-24

ibus-table - 1.17.17
Ebuild name:

app-i18n/ibus-table-1.17.17

Description

Tables engines for IBus

Added to portage

2026-01-24

ibus-typing-booster - 2.30.0
Ebuild name:

app-i18n/ibus-typing-booster-2.30.0

Description

Completion input method for IBus

Added to portage

2026-01-24

joplin-desktop - 3.6.2
Ebuild name:

app-office/joplin-desktop-3.6.2

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-01-24

jupyterlab - 4.5.3
Ebuild name:

dev-python/jupyterlab-4.5.3

Description

JupyterLab computational environment

Added to portage

2026-01-24

kanshi - 1.9.0
Ebuild name:

gui-apps/kanshi-1.9.0

Description

dynamic display configuration (autorandr for wayland)

Added to portage

2026-01-24

kineto - 0.4.0_p20251121
Ebuild name:

sci-ml/kineto-0.4.0_p20251121

Description

part of the PyTorch Profiler

Added to portage

2026-01-24

libbytesize - 2.12
Ebuild name:

dev-libs/libbytesize-2.12

Description

Tiny library providing a C

Added to portage

2026-01-24

libkdumpfile - 0.5.6
Ebuild name:

dev-libs/libkdumpfile-0.5.6

Description

Kernel coredump file access

Added to portage

2026-01-24

libnl - 3.12.0
Ebuild name:

dev-libs/libnl-3.12.0

Description

Libraries providing APIs to netlink protocol based Linux kernel interfaces

Added to portage

2026-01-24

libopenmpt - 0.8.4
Ebuild name:

media-libs/libopenmpt-0.8.4

Description

Library to decode tracked music files (modules)

Added to portage

2026-01-24

libsodium - 1.0.21
Ebuild name:

dev-libs/libsodium-1.0.21

Description

Portable fork of NaCl, a higher-level cryptographic library

Added to portage

2026-01-24

libxcrypt - 4.4.38-r1
Ebuild name:

sys-libs/libxcrypt-4.4.38-r1

Description

Extended crypt library for descrypt, md5crypt, bcrypt, and others

Added to portage

2026-01-24

libxmlb - 0.3.24-r1
Ebuild name:

dev-libs/libxmlb-0.3.24-r1

Description

Library to help create and query binary XML blobs

Added to portage

2026-01-24

man-pages - 6.16-r2
Ebuild name:

sys-apps/man-pages-6.16-r2

Description

A somewhat comprehensive collection of Linux man pages

Added to portage

2026-01-24

marshmallow - 4.2.1
Ebuild name:

dev-python/marshmallow-4.2.1

Description

A library for converting to and from native Python datatypes

Added to portage

2026-01-24

mkl - 2025.3.1.8
Ebuild name:

sci-libs/mkl-2025.3.1.8

Description

Intel Math Kernel Library

Added to portage

2026-01-24

nuitka - 2.8.10
Ebuild name:

dev-python/nuitka-2.8.10

Description

Python to native compiler

Added to portage

2026-01-24

openjdk - 11.0.30_p7
Ebuild name:

dev-java/openjdk-11.0.30_p7

Description

Open source implementation of the Java programming language

Added to portage

2026-01-24

openjdk - 17.0.18_p8
Ebuild name:

dev-java/openjdk-17.0.18_p8

Description

Open source implementation of the Java programming language

Added to portage

2026-01-24

openjdk - 21.0.10_p7
Ebuild name:

dev-java/openjdk-21.0.10_p7

Description

Open source implementation of the Java programming language

Added to portage

2026-01-24

openjdk - 25.0.2_p10
Ebuild name:

dev-java/openjdk-25.0.2_p10

Description

Open source implementation of the Java programming language

Added to portage

2026-01-24

openmpt123 - 0.8.4
Ebuild name:

media-sound/openmpt123-0.8.4

Description

libopenmpt-based command line player for tracked music files (modules)

Added to portage

2026-01-24

openpgp-keys-cjwatson - 20260124
Ebuild name:

sec-keys/openpgp-keys-cjwatson-20260124

Description

OpenPGP key used by Colin Watson

Added to portage

2026-01-24

openpgp-keys-hughsie - 20260124
Ebuild name:

sec-keys/openpgp-keys-hughsie-20260124

Description

OpenPGP key used by Richard Hughes (hughsie)

Added to portage

2026-01-24

openpgp-keys-libusb - 1.0.29
Ebuild name:

sec-keys/openpgp-keys-libusb-1.0.29

Description

OpenPGP key used by dev-libs/libusb

Added to portage

2026-01-24

openpgp-keys-thomashaller - 20260124
Ebuild name:

sec-keys/openpgp-keys-thomashaller-20260124

Description

OpenPGP key used by Thomas Haller

Added to portage

2026-01-24

pdm - 2.26.6
Ebuild name:

dev-python/pdm-2.26.6

Description

Python package and dependency manager supporting the latest PEP standards

Added to portage

2026-01-24

portage - 3.0.77
Ebuild name:

sys-apps/portage-3.0.77

Description

The package management and distribution system for Gentoo

Added to portage

2026-01-24

pymdown-extensions - 10.20.1
Ebuild name:

dev-python/pymdown-extensions-10.20.1

Description

Extensions for Python Markdown

Added to portage

2026-01-24

rinetd - 0.73-r1
Ebuild name:

net-misc/rinetd-0.73-r1

Description

redirects TCP connections from one IP address and port to another

Added to portage

2026-01-24

ruff - 0.14.14
Ebuild name:

dev-util/ruff-0.14.14

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-01-24

shards - 0.20.0
Ebuild name:

dev-util/shards-0.20.0

Description

Dependency manager for the Crystal language

Added to portage

2026-01-24

siegfried - 1.11.4
Ebuild name:

app-misc/siegfried-1.11.4

Description

Signature-based file format identification

Added to portage

2026-01-24

simpleidn - 0.2.3
Ebuild name:

dev-ruby/simpleidn-0.2.3

Description

Allows easy conversion from punycode ACE to unicode UTF-8 strings and vice

Added to portage

2026-01-24

sqlalchemy - 2.1.0_beta1
Ebuild name:

dev-python/sqlalchemy-2.1.0_beta1

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-01-24

sqlite - 3.51.2
Ebuild name:

dev-db/sqlite-3.51.2

Description

SQL database engine

Added to portage

2026-01-24

tensorpipe - 2025.11.05
Ebuild name:

sci-ml/tensorpipe-2025.11.05

Description

provides a tensor-aware channel

Added to portage

2026-01-24

thunar - 4.20.7
Ebuild name:

xfce-base/thunar-4.20.7

Description

File manager for the Xfce desktop environment

Added to portage

2026-01-24

thunar - 4.21.4
Ebuild name:

xfce-base/thunar-4.21.4

Description

File manager for the Xfce desktop environment

Added to portage

2026-01-24

tigervnc - 1.16.0
Ebuild name:

net-misc/tigervnc-1.16.0

Description

Remote desktop viewer display system

Added to portage

2026-01-24

tigervnc-xorg-module - 1.16.0
Ebuild name:

net-misc/tigervnc-xorg-module-1.16.0

Description

Metapackage for the xorg module provided by tigervnc

Added to portage

2026-01-24

types-setuptools - 80.10.0.20260124
Ebuild name:

dev-python/types-setuptools-80.10.0.20260124

Description

Typing stubs for setuptools

Added to portage

2026-01-24

vali - 0.1.1
Ebuild name:

dev-libs/vali-0.1.1

Description

C library and code generator for Varlink

Added to portage

2026-01-24

vanilla-sources - 6.12.67
Ebuild name:

sys-kernel/vanilla-sources-6.12.67

Description

Full sources for the Linux kernel

Added to portage

2026-01-24

vanilla-sources - 6.18.7
Ebuild name:

sys-kernel/vanilla-sources-6.18.7

Description

Full sources for the Linux kernel

Added to portage

2026-01-24

vivaldi-snapshot - 7.8.3925.33
Ebuild name:

www-client/vivaldi-snapshot-7.8.3925.33

Description

A browser for our friends

Added to portage

2026-01-24

wcwidth - 0.3.2
Ebuild name:

dev-python/wcwidth-0.3.2

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-01-24

wine-vanilla - 11.1
Ebuild name:

app-emulation/wine-vanilla-11.1

Description

Free implementation of Windows(tm) on Unix, without external patchs

Added to portage

2026-01-24

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