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:

90732

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-11-27
backports-zstd - 1.8.1
Ebuild name:

dev-python/backports-zstd-1.8.1

Description

Backport of PEP-784 adding Zstandard to the standard library

Added to portage

2026-11-27

dxvk - 3.2
Ebuild name:

app-emulation/dxvk-3.2

Description

Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine

Added to portage

2026-11-27

ggml - 1.1.1
Ebuild name:

sci-ml/ggml-1.1.1

Description

Tensor library for machine learning

Added to portage

2026-11-27

git-credential-manager - 3.1.0
Ebuild name:

dev-vcs/git-credential-manager-3.1.0

Description

Secure Git credential storage supporing GitHub, Azure Repos, a

Added to portage

2026-11-27

httpx - 0.29.0
Ebuild name:

dev-python/httpx-0.29.0

Description

Fully-featured HTTP client which provides sync and async APIs

Added to portage

2026-11-27

ig - 0.58.1
Ebuild name:

app-admin/ig-0.58.1

Description

Tools and framework for data collection and system inspection using eBPF

Added to portage

2026-11-27

keystoneauth1 - 5.20.0
Ebuild name:

dev-python/keystoneauth1-5.20.0

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-11-27

kirigami - 1.2.4
Ebuild name:

app-emacs/kirigami-1.2.4

Description

A unified method to fold and unfold text

Added to portage

2026-11-27

libsquish - 1.15.2
Ebuild name:

media-libs/libsquish-1.15.2

Description

Library for compressing images with the DXT/S3TC standard

Added to portage

2026-11-27

logswan - 2.1.18
Ebuild name:

www-misc/logswan-2.1.18

Description

Fast Web log analyzer using probabilistic data structures

Added to portage

2026-11-27

lxml-html-clean - 0.4.7
Ebuild name:

dev-python/lxml-html-clean-0.4.7

Description

Separate project for HTML cleaning functionalities copied from lxm

Added to portage

2026-11-27

mkl - 2026.2.2.7
Ebuild name:

sci-libs/mkl-2026.2.2.7

Description

Intel Math Kernel Library

Added to portage

2026-11-27

mosquitto - 2.1.4
Ebuild name:

app-misc/mosquitto-2.1.4

Description

An Open Source MQTT Broker

Added to portage

2026-11-27

mosquitto - 9999
Ebuild name:

app-misc/mosquitto-9999

Description

An Open Source MQTT Broker

Added to portage

2026-11-27

nuitka - 4.4
Ebuild name:

dev-python/nuitka-4.4

Description

Python to native compiler

Added to portage

2026-11-27

openrazer - 3.12.5
Ebuild name:

sys-apps/openrazer-3.12.5

Description

Drivers and user-space daemon to control Razer devices on GNU/Linux

Added to portage

2026-11-27

openstacksdk - 4.26.0
Ebuild name:

dev-python/openstacksdk-4.26.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-11-27

osc-lib - 4.7.1
Ebuild name:

dev-python/osc-lib-4.7.1

Description

A package of common support modules for writing OSC plugins

Added to portage

2026-11-27

pikepdf - 10.18.3
Ebuild name:

dev-python/pikepdf-10.18.3

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-11-27

pyotp - 2.12.2
Ebuild name:

dev-python/pyotp-2.12.2

Description

PyOTP is a Python library for generating and verifying one-time passwords

Added to portage

2026-11-27

pypdf - 7.2.0
Ebuild name:

dev-python/pypdf-7.2.0

Description

Python library to work with PDF files

Added to portage

2026-11-27

pyrate-limiter - 4.6.0
Ebuild name:

dev-python/pyrate-limiter-4.6.0

Description

Python Rate-Limiter using Leaky-Bucket Algorimth Family

Added to portage

2026-11-27

safeeyes - 3.6.3
Ebuild name:

x11-misc/safeeyes-3.6.3

Description

Linux alternative to EyeLeo

Added to portage

2026-11-27

semver - 3.2.0
Ebuild name:

dev-python/semver-3.2.0

Description

A Python module for semantic versioning

Added to portage

2026-11-27

shell-maker - 0.98.5
Ebuild name:

app-emacs/shell-maker-0.98.5

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-11-27

tifffile - 2026.11.26
Ebuild name:

dev-python/tifffile-2026.11.26

Description

Read and write TIFF files

Added to portage

2026-11-27

translate-toolkit - 3.21.0
Ebuild name:

dev-python/translate-toolkit-3.21.0

Description

Toolkit to convert between many translation formats

Added to portage

2026-11-27

typer - 0.29.3
Ebuild name:

dev-python/typer-0.29.3

Description

Build great CLIs. Easy to code. Based on Python type hints

Added to portage

2026-11-27

xcffib - 1.14.0
Ebuild name:

dev-python/xcffib-1.14.0

Description

A drop in replacement for xpyb, an XCB python binding

Added to portage

2026-11-27

2026-11-26
alertmanager - 0.35.1
Ebuild name:

app-metrics/alertmanager-0.35.1

Description

Alertmanager for alerts sent by client applications such as Prometh

Added to portage

2026-11-26

ansible-compat - 26.11.1
Ebuild name:

dev-python/ansible-compat-26.11.1

Description

Contains functions that facilitate working with various versions

Added to portage

2026-11-26

bleachbit - 6.0.6
Ebuild name:

sys-apps/bleachbit-6.0.6

Description

Clean junk to free disk space and to maintain privacy

Added to portage

2026-11-26

boinc - 8.2.13-r1
Ebuild name:

sci-misc/boinc-8.2.13-r1

Description

The Berkeley Open Infrastructure for Network Computing

Added to portage

2026-11-26

c-blosc2 - 3.9.0
Ebuild name:

dev-libs/c-blosc2-3.9.0

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-11-26

c-client - 2007f_p7-r2
Ebuild name:

net-libs/c-client-2007f_p7-r2

Description

UW IMAP c-client library

Added to portage

2026-11-26

cachetools - 8.0.3
Ebuild name:

dev-python/cachetools-8.0.3

Description

Extensible memoizing collections and decorators

Added to portage

2026-11-26

chrony_exporter - 0.16.0
Ebuild name:

app-metrics/chrony_exporter-0.16.0

Description

Chrony NTP exporter for Prometheus

Added to portage

2026-11-26

cli-helpers - 2.15.5
Ebuild name:

dev-python/cli-helpers-2.15.5

Description

Python helpers for common CLI tasks

Added to portage

2026-11-26

cython - 3.3.2
Ebuild name:

dev-python/cython-3.3.2

Description

A Python to C compiler

Added to portage

2026-11-26

dnscrypt-proxy - 2.1.21
Ebuild name:

net-dns/dnscrypt-proxy-2.1.21

Description

Flexible DNS proxy, with support for encrypted DNS protocols

Added to portage

2026-11-26

dnsdist - 2.1.4
Ebuild name:

net-dns/dnsdist-2.1.4

Description

A highly DNS-, DoS- and abuse-aware loadbalancer

Added to portage

2026-11-26

exim - 4.100.2
Ebuild name:

mail-mta/exim-4.100.2

Description

A highly configurable, drop-in replacement for sendmail

Added to portage

2026-11-26

fonttools - 4.69.1
Ebuild name:

dev-python/fonttools-4.69.1

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2026-11-26

forbiddenfruit - 0.1.5
Ebuild name:

dev-python/forbiddenfruit-0.1.5

Description

Patch built-in Python objects

Added to portage

2026-11-26

fzf - 0.75.0
Ebuild name:

app-shells/fzf-0.75.0

Description

General-purpose command-line fuzzy finder, written in Golang

Added to portage

2026-11-26

gentoodo - 0.2.0
Ebuild name:

app-portage/gentoodo-0.2.0

Description

Generate reminder emails for Gentoo package maintainers

Added to portage

2026-11-26

gitea - 28.4.0
Ebuild name:

www-apps/gitea-28.4.0

Description

A painless self-hosted Git service

Added to portage

2026-11-26

haproxy - 3.0.32
Ebuild name:

net-proxy/haproxy-3.0.32

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-11-26

haproxy - 3.2.28
Ebuild name:

net-proxy/haproxy-3.2.28

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-11-26

haproxy - 3.4.9
Ebuild name:

net-proxy/haproxy-3.4.9

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-11-26

htmlize - 1.59
Ebuild name:

app-emacs/htmlize-1.59

Description

HTML-ize font-lock buffers in Emacs

Added to portage

2026-11-26

httpd - 1.1-r1
Ebuild name:

app-emacs/httpd-1.1-r1

Description

A HTTP server embedded in the Emacs

Added to portage

2026-11-26

intellij-idea - 2026.3.0.1
Ebuild name:

dev-util/intellij-idea-2026.3.0.1

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-11-26

kubo - 0.43.1
Ebuild name:

net-p2p/kubo-0.43.1

Description

Main implementation of IPFS

Added to portage

2026-11-26

libdispatch - 6.4.3
Ebuild name:

dev-libs/libdispatch-6.4.3

Description

Library for concurrent code execution on multicore hardware

Added to portage

2026-11-26

markdown - 3.11.4
Ebuild name:

dev-python/markdown-3.11.4

Description

Python implementation of the markdown markup language

Added to portage

2026-11-26

mkvtoolnix - 104.0
Ebuild name:

media-video/mkvtoolnix-104.0

Description

Tools to create, alter, and inspect Matroska files

Added to portage

2026-11-26

pg_background - 2.0.5
Ebuild name:

dev-db/pg_background-2.0.5

Description

Postgres Background Worker

Added to portage

2026-11-26

pip - 26.3-r1
Ebuild name:

dev-python/pip-26.3-r1

Description

The PyPA recommended tool for installing Python packages

Added to portage

2026-11-26

pipewire - 1.6.12
Ebuild name:

media-video/pipewire-1.6.12

Description

Multimedia processing graphs

Added to portage

2026-11-26

pixi - 0.85.0
Ebuild name:

dev-util/pixi-0.85.0

Description

A package management and workflow tool

Added to portage

2026-11-26

prosody - 13.0.8
Ebuild name:

net-im/prosody-13.0.8

Description

Prosody is a modern XMPP communication server

Added to portage

2026-11-26

py-spy - 0.4.4
Ebuild name:

dev-util/py-spy-0.4.4

Description

Sampling profiler for Python programs

Added to portage

2026-11-26

pymongo - 4.20.2
Ebuild name:

dev-python/pymongo-4.20.2

Description

Python driver for MongoDB

Added to portage

2026-11-26

python-openstackclient - 10.6.0
Ebuild name:

dev-python/python-openstackclient-10.6.0

Description

A client for the OpenStack APIs

Added to portage

2026-11-26

qmapshack - 1.22.0
Ebuild name:

sci-geosciences/qmapshack-1.22.0

Description

GPS mapping utility

Added to portage

2026-11-26

qt5-sqlcipher - 1.1.0-r2
Ebuild name:

dev-db/qt5-sqlcipher-1.1.0-r2

Description

Qt SQL driver plugin for SQLCipher

Added to portage

2026-11-26

reaper-bin - 7.86-r3
Ebuild name:

media-sound/reaper-bin-7.86-r3

Description

Digital audio workstation

Added to portage

2026-11-26

regex - 2026.11.25
Ebuild name:

dev-python/regex-2026.11.25

Description

Alternative regular expression module to replace re

Added to portage

2026-11-26

restic - 0.20.0
Ebuild name:

app-backup/restic-0.20.0

Description

A backup program that is fast, efficient and secure

Added to portage

2026-11-26

rutorrent - 5.3.25
Ebuild name:

www-apps/rutorrent-5.3.25

Description

ruTorrent is a front-end for the popular Bittorrent client rTorrent

Added to portage

2026-11-26

snobol - 2.3.5
Ebuild name:

dev-lang/snobol-2.3.5

Description

Phil Budne's port of Macro SNOBOL4 in C, for modern machines

Added to portage

2026-11-26

testfixtures - 12.5.0
Ebuild name:

dev-python/testfixtures-12.5.0

Description

A collection of helpers and mock objects for unit tests and doc test

Added to portage

2026-11-26

thunderbird - 153.8.0
Ebuild name:

mail-client/thunderbird-153.8.0

Description

Thunderbird Mail Client

Added to portage

2026-11-26

thunderbird - 161.0
Ebuild name:

mail-client/thunderbird-161.0

Description

Thunderbird Mail Client

Added to portage

2026-11-26

thunderbird-bin - 153.8.0
Ebuild name:

mail-client/thunderbird-bin-153.8.0

Description

Thunderbird Mail Client

Added to portage

2026-11-26

thunderbird-bin - 161.0
Ebuild name:

mail-client/thunderbird-bin-161.0

Description

Thunderbird Mail Client

Added to portage

2026-11-26

thunderbird-l10n - 153.8.0
Ebuild name:

mail-client/thunderbird-l10n-153.8.0

Description

Thunderbird mail client's translation files

Added to portage

2026-11-26

thunderbird-l10n - 161.0
Ebuild name:

mail-client/thunderbird-l10n-161.0

Description

Thunderbird mail client's translation files

Added to portage

2026-11-26

urwid - 5.2.1
Ebuild name:

dev-python/urwid-5.2.1

Description

Curses-based user interface library for Python

Added to portage

2026-11-26

valijson - 1.1.5
Ebuild name:

dev-cpp/valijson-1.1.5

Description

Header-only C++ library for JSON Schema validation

Added to portage

2026-11-26

zope-schema - 8.2
Ebuild name:

dev-python/zope-schema-8.2

Description

Zope schema Architecture

Added to portage

2026-11-26

zstandard - 0.25.0-r1
Ebuild name:

dev-python/zstandard-0.25.0-r1

Description

Zstandard Bindings for Python

Added to portage

2026-11-26

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