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:

87122

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-07-23
7zip - 26.02-r1
Ebuild name:

app-arch/7zip-26.02-r1

Description

Free file archiver for extremely high compression

Added to portage

2026-07-23

bind - 9.20.26
Ebuild name:

net-dns/bind-9.20.26

Description

Berkeley Internet Name Domain - Name Server

Added to portage

2026-07-23

cargo-nextest - 0.9.140
Ebuild name:

dev-util/cargo-nextest-0.9.140

Description

Next-generation test runner for Rust

Added to portage

2026-07-23

git-delete-merged-branches - 7.6.1
Ebuild name:

dev-vcs/git-delete-merged-branches-7.6.1

Description

Command-line tool to delete merged Git branches

Added to portage

2026-07-23

knot-resolver - 5.7.7
Ebuild name:

net-dns/knot-resolver-5.7.7

Description

A scaleable caching DNS resolver

Added to portage

2026-07-23

knot-resolver - 6.4.1
Ebuild name:

net-dns/knot-resolver-6.4.1

Description

Scaleable caching DNS resolver

Added to portage

2026-07-23

pdns-recursor - 5.3.9
Ebuild name:

net-dns/pdns-recursor-5.3.9

Description

The PowerDNS Recursor

Added to portage

2026-07-23

pdns-recursor - 5.4.4
Ebuild name:

net-dns/pdns-recursor-5.4.4

Description

The PowerDNS Recursor

Added to portage

2026-07-23

rnv - 1.7.11-r4
Ebuild name:

app-text/rnv-1.7.11-r4

Description

A lightweight Relax NG Compact Syntax validator

Added to portage

2026-07-23

unbound - 1.25.2
Ebuild name:

net-dns/unbound-1.25.2

Description

A validating, recursive and caching DNS resolver

Added to portage

2026-07-23

unionfs-fuse - 3.7-r1
Ebuild name:

sys-fs/unionfs-fuse-3.7-r1

Description

Self-syncing tree-merging file system based on FUSE

Added to portage

2026-07-23

2026-07-22
CSS-Minifier-XS - 0.140.0
Ebuild name:

dev-perl/CSS-Minifier-XS-0.140.0

Description

XS based CSS minifier

Added to portage

2026-07-22

Config-IniFiles - 3.1.0
Ebuild name:

dev-perl/Config-IniFiles-3.1.0

Description

Module for reading .ini-style configuration files

Added to portage

2026-07-22

DBI - 1.651.0
Ebuild name:

dev-perl/DBI-1.651.0

Description

Database independent interface for Perl

Added to portage

2026-07-22

JavaScript-Minifier-XS - 0.160.0
Ebuild name:

dev-perl/JavaScript-Minifier-XS-0.160.0

Description

XS based JavaScript minifier

Added to portage

2026-07-22

List-SomeUtils-XS - 0.590.0
Ebuild name:

dev-perl/List-SomeUtils-XS-0.590.0

Description

XS implementation for List

Added to portage

2026-07-22

archivemount - 1b
Ebuild name:

sys-fs/archivemount-1b

Description

Mount archives using libarchive and FUSE

Added to portage

2026-07-22

awscli - 1.45.53
Ebuild name:

app-admin/awscli-1.45.53

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-22

bind - 9.20.24
Ebuild name:

net-dns/bind-9.20.24

Description

Berkeley Internet Name Domain - Name Server

Added to portage

2026-07-22

boto3 - 1.43.53
Ebuild name:

dev-python/boto3-1.43.53

Description

The AWS SDK for Python

Added to portage

2026-07-22

botocore - 1.43.53
Ebuild name:

dev-python/botocore-1.43.53

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-22

buildah - 1.44.1
Ebuild name:

app-containers/buildah-1.44.1

Description

A tool that facilitates building OCI images

Added to portage

2026-07-22

ceres-solver - 2.2.0-r2
Ebuild name:

sci-libs/ceres-solver-2.2.0-r2

Description

Nonlinear least-squares minimizer

Added to portage

2026-07-22

clazy - 1.17.1-r1
Ebuild name:

dev-util/clazy-1.17.1-r1

Description

Compiler plugin which allows clang to understand Qt semantics

Added to portage

2026-07-22

cryptsetup - 2.8.7
Ebuild name:

sys-fs/cryptsetup-2.8.7

Description

Tool to setup encrypted devices with dm-crypt

Added to portage

2026-07-22

dash - 0.5.13.5
Ebuild name:

app-shells/dash-0.5.13.5

Description

Debian Almquist Shell

Added to portage

2026-07-22

element - 1.12.24
Ebuild name:

www-apps/element-1.12.24

Description

A glossy Matrix collaboration client for the web

Added to portage

2026-07-22

fcgiwrap - 1.1.0_p20150419-r3
Ebuild name:

www-misc/fcgiwrap-1.1.0_p20150419-r3

Description

Simple FastCGI wrapper for CGI scripts (CGI support for nginx)

Added to portage

2026-07-22

filelock - 3.32.0
Ebuild name:

dev-python/filelock-3.32.0

Description

A platform independent file lock for Python

Added to portage

2026-07-22

fish - 4.8.1
Ebuild name:

app-shells/fish-4.8.1

Description

Friendly Interactive SHell

Added to portage

2026-07-22

freerdp - 3.30.0
Ebuild name:

net-misc/freerdp-3.30.0

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-07-22

google-auth - 2.56.2
Ebuild name:

dev-python/google-auth-2.56.2

Description

Google Authentication Library

Added to portage

2026-07-22

hcloud - 2.23.0
Ebuild name:

dev-python/hcloud-2.23.0

Description

Official Hetzner Cloud python library

Added to portage

2026-07-22

jupyterlab - 4.5.10
Ebuild name:

dev-python/jupyterlab-4.5.10

Description

JupyterLab computational environment

Added to portage

2026-07-22

jupyterlab - 4.6.2
Ebuild name:

dev-python/jupyterlab-4.6.2

Description

JupyterLab computational environment

Added to portage

2026-07-22

kdeconnect - 26.04.3-r2
Ebuild name:

kde-misc/kdeconnect-26.04.3-r2

Description

Adds communication between KDE Plasma and your smartphone

Added to portage

2026-07-22

kdenetwork-meta - 26.04.3-r1
Ebuild name:

kde-apps/kdenetwork-meta-26.04.3-r1

Description

kdenetwork - merge this to pull in all kdenetwork-derived packa

Added to portage

2026-07-22

kirigami-app-components - 1.0.1
Ebuild name:

dev-libs/kirigami-app-components-1.0.1

Description

Kirigami addons and modules necessary to do a full featured

Added to portage

2026-07-22

libmysofa - 1.3.5
Ebuild name:

media-libs/libmysofa-1.3.5

Description

Library for reading AES SOFA (Spatially Oriented Format for Acoustics) f

Added to portage

2026-07-22

meson - 1.12.0_rc2
Ebuild name:

dev-build/meson-1.12.0_rc2

Description

Open source build system

Added to portage

2026-07-22

modus-themes - 5.2.0
Ebuild name:

app-emacs/modus-themes-5.2.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-07-22

modus-themes - 5.3.0
Ebuild name:

app-emacs/modus-themes-5.3.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-07-22

pkgconf - 3.0.4
Ebuild name:

dev-util/pkgconf-3.0.4

Description

pkg-config compatible replacement with no dependencies other than C99

Added to portage

2026-07-22

platformdirs - 4.11.0
Ebuild name:

dev-python/platformdirs-4.11.0

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-07-22

podman - 6.0.2
Ebuild name:

app-containers/podman-6.0.2

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-07-22

postfix - 3.12_pre20260721
Ebuild name:

mail-mta/postfix-3.12_pre20260721

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-07-22

pyproject-api - 1.11.0
Ebuild name:

dev-python/pyproject-api-1.11.0

Description

API to interact with the python pyproject.toml based projects

Added to portage

2026-07-22

pyshp - 3.1.5
Ebuild name:

sci-libs/pyshp-3.1.5

Description

Pure Python read/write support for ESRI Shapefile format

Added to portage

2026-07-22

pytest-env - 1.7.0
Ebuild name:

dev-python/pytest-env-1.7.0

Description

pytest plugin that allows you to add environment variables

Added to portage

2026-07-22

python-discovery - 1.5.0
Ebuild name:

dev-python/python-discovery-1.5.0

Description

Python interpreter discovery

Added to portage

2026-07-22

scrcpy - 4.1
Ebuild name:

app-mobilephone/scrcpy-4.1

Description

Display and control your Android device

Added to portage

2026-07-22

scx - 1.1.2
Ebuild name:

sys-kernel/scx-1.1.2

Description

sched_ext schedulers and tools

Added to portage

2026-07-22

scx-loader - 1.1.2
Ebuild name:

sys-kernel/scx-loader-1.1.2

Description

DBUS on-demand loader of sched-ext schedulers

Added to portage

2026-07-22

seatd - 0.9.3-r1
Ebuild name:

sys-auth/seatd-0.9.3-r1

Description

Minimal seat management daemon and universal library

Added to portage

2026-07-22

servefile - 0.5.4-r4
Ebuild name:

www-servers/servefile-0.5.4-r4

Description

Serve a single file via HTTP

Added to portage

2026-07-22

setuptools-scm - 10.2.1
Ebuild name:

dev-python/setuptools-scm-10.2.1

Description

Manage versions by scm tags via setuptools

Added to portage

2026-07-22

skim - 5.4.0
Ebuild name:

app-misc/skim-5.4.0

Description

Command-line fuzzy finder

Added to portage

2026-07-22

soupsieve - 2.9.1
Ebuild name:

dev-python/soupsieve-2.9.1

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-07-22

sphinx-autodoc-typehints - 3.13.0
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.13.0

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-07-22

subliminal - 2.7.0
Ebuild name:

media-video/subliminal-2.7.0

Description

Python library to search and download subtitles

Added to portage

2026-07-22

svneverever - 1.7.2-r3
Ebuild name:

dev-vcs/svneverever-1.7.2-r3

Description

Tool collecting path entries across SVN history

Added to portage

2026-07-22

throttled - 0.12-r1
Ebuild name:

sys-power/throttled-0.12-r1

Description

Daemon to work around throttling issues on some Intel laptops

Added to portage

2026-07-22

tox - 4.58.0
Ebuild name:

dev-python/tox-4.58.0

Description

virtualenv-based automation of test activities

Added to portage

2026-07-22

uv - 0.11.31
Ebuild name:

dev-python/uv-0.11.31

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-07-22

uv-build - 0.11.31
Ebuild name:

dev-python/uv-build-0.11.31

Description

PEP517 uv build backend

Added to portage

2026-07-22

virtualenv - 21.7.0
Ebuild name:

dev-python/virtualenv-21.7.0

Description

Virtual Python Environment builder

Added to portage

2026-07-22

wordpress - 6.8.6
Ebuild name:

www-apps/wordpress-6.8.6

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-07-22

wordpress - 6.9.5
Ebuild name:

www-apps/wordpress-6.9.5

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-07-22

xclipboard - 1.1.6
Ebuild name:

x11-apps/xclipboard-1.1.6

Description

interchange between cut buffer and selection

Added to portage

2026-07-22

xclock - 1.2.1
Ebuild name:

x11-apps/xclock-1.2.1

Description

analog / digital clock for X

Added to portage

2026-07-22

xkbprint - 1.0.8
Ebuild name:

x11-apps/xkbprint-1.0.8

Description

Print an XKB keyboard description

Added to portage

2026-07-22

xload - 1.2.1
Ebuild name:

x11-apps/xload-1.2.1

Description

system load average display for X

Added to portage

2026-07-22

xmodmap - 1.0.12
Ebuild name:

x11-apps/xmodmap-1.0.12

Description

utility for modifying keymaps and pointer button mappings in X

Added to portage

2026-07-22

xwininfo - 1.1.7
Ebuild name:

x11-apps/xwininfo-1.1.7

Description

window information utility for X

Added to portage

2026-07-22

zim - 0.77.1
Ebuild name:

x11-misc/zim-0.77.1

Description

A desktop wiki

Added to portage

2026-07-22

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