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:

90685

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-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

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

cachetools - 8.0.3
Ebuild name:

dev-python/cachetools-8.0.3

Description

Extensible memoizing collections and decorators

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

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

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

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

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

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

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

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

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

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

2026-11-25
aioquic - 1.9.2
Ebuild name:

dev-python/aioquic-1.9.2

Description

An implementation of QUIC and HTTP/3

Added to portage

2026-11-25

aseprite - 1.3.18.6
Ebuild name:

dev-games/aseprite-1.3.18.6

Description

Animated sprite editor & pixel art tool

Added to portage

2026-11-25

aws-crt-cpp - 0.44.6
Ebuild name:

dev-cpp/aws-crt-cpp-0.44.6

Description

C++ wrapper around the aws-c-* libraries

Added to portage

2026-11-25

babel - 2.19.0
Ebuild name:

dev-python/babel-2.19.0

Description

Collection of tools for internationalizing Python applications

Added to portage

2026-11-25

dulwich - 1.2.22
Ebuild name:

dev-python/dulwich-1.2.22

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-11-25

grafana-bin - 12.4.16
Ebuild name:

www-apps/grafana-bin-12.4.16

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Ope

Added to portage

2026-11-25

grafana-bin - 13.1.11
Ebuild name:

www-apps/grafana-bin-13.1.11

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Ope

Added to portage

2026-11-25

grafana-bin - 13.2.7
Ebuild name:

www-apps/grafana-bin-13.2.7

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2026-11-25

grafana-bin - 13.3.2
Ebuild name:

www-apps/grafana-bin-13.3.2

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2026-11-25

grpcio - 1.85.4
Ebuild name:

dev-python/grpcio-1.85.4

Description

HTTP/2-based RPC framework

Added to portage

2026-11-25

grpcio-status - 1.85.4
Ebuild name:

dev-python/grpcio-status-1.85.4

Description

Reference package for GRPC Python status proto mapping

Added to portage

2026-11-25

huawei-lte-api - 3.0.0
Ebuild name:

dev-python/huawei-lte-api-3.0.0

Description

API For huawei LAN/WAN LTE Modems

Added to portage

2026-11-25

kbfs - 9999
Ebuild name:

app-crypt/kbfs-9999

Description

Keybase Filesystem (KBFS)

Added to portage

2026-11-25

keepsecret - 26.08.3
Ebuild name:

app-crypt/keepsecret-26.08.3

Description

Password manager GUI for SecretService providers

Added to portage

2026-11-25

keybase - 6.0.2
Ebuild name:

app-crypt/keybase-6.0.2

Description

Keybase client

Added to portage

2026-11-25

keybase - 6.2.4
Ebuild name:

app-crypt/keybase-6.2.4

Description

Keybase client

Added to portage

2026-11-25

keybase - 9999
Ebuild name:

app-crypt/keybase-9999

Description

Keybase client

Added to portage

2026-11-25

krita - 6.0.5
Ebuild name:

media-gfx/krita-6.0.5

Description

Free digital painting application. Digital Painting, Creative Freedom

Added to portage

2026-11-25

libetonyek - 0.1.15
Ebuild name:

app-text/libetonyek-0.1.15

Description

Library parsing Apple Keynote presentations

Added to portage

2026-11-25

libetonyek - 9999
Ebuild name:

app-text/libetonyek-9999

Description

Library parsing Apple Keynote presentations

Added to portage

2026-11-25

libmspub - 0.1.6
Ebuild name:

app-text/libmspub-0.1.6

Description

Library parsing Microsoft Publisher documents

Added to portage

2026-11-25

libtmux - 0.68.0
Ebuild name:

dev-python/libtmux-0.68.0

Description

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

Added to portage

2026-11-25

libvisio - 0.1.12
Ebuild name:

media-libs/libvisio-0.1.12

Description

Library parsing the file format of MS Visio documents

Added to portage

2026-11-25

linux-firmware - 20261124
Ebuild name:

sys-kernel/linux-firmware-20261124

Description

Linux firmware files

Added to portage

2026-11-25

ollama - 0.40.18
Ebuild name:

sci-ml/ollama-0.40.18

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models

Added to portage

2026-11-25

openstacksdk - 4.25.0
Ebuild name:

dev-python/openstacksdk-4.25.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-11-25

pbs-installer - 2026.11.24
Ebuild name:

dev-python/pbs-installer-2026.11.24

Description

Installer for Python Build Standalone

Added to portage

2026-11-25

plotly - 7.2.0
Ebuild name:

dev-python/plotly-7.2.0

Description

Browser-based graphing library for Python

Added to portage

2026-11-25

pylsqpack - 1.1.3
Ebuild name:

dev-python/pylsqpack-1.1.3

Description

Python wrapper for the ls-qpack QPACK library

Added to portage

2026-11-25

pysnmp - 7.1.34
Ebuild name:

dev-python/pysnmp-7.1.34

Description

Python SNMP library

Added to portage

2026-11-25

python-glanceclient - 4.14.0
Ebuild name:

dev-python/python-glanceclient-4.14.0

Description

A client for the OpenStack Glance API

Added to portage

2026-11-25

quazip - 1.7.2
Ebuild name:

dev-libs/quazip-1.7.2

Description

Simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package

Added to portage

2026-11-25

rr - 5.10.0
Ebuild name:

dev-debug/rr-5.10.0

Description

Record and Replay Framework

Added to portage

2026-11-25

simdjson - 5.3.0
Ebuild name:

dev-libs/simdjson-5.3.0

Description

SIMD accelerated C++ JSON library

Added to portage

2026-11-25

sqlglot - 30.35.0
Ebuild name:

dev-python/sqlglot-30.35.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-11-25

tomlkit - 0.15.3
Ebuild name:

dev-python/tomlkit-0.15.3

Description

Style preserving TOML library

Added to portage

2026-11-25

trakit - 0.6.0
Ebuild name:

dev-python/trakit-0.6.0

Description

Identify a track from its title

Added to portage

2026-11-25

urwid - 5.2.0
Ebuild name:

dev-python/urwid-5.2.0

Description

Curses-based user interface library for Python

Added to portage

2026-11-25

uv - 0.13.10
Ebuild name:

dev-python/uv-0.13.10

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-11-25

uv-build - 0.13.10
Ebuild name:

dev-python/uv-build-0.13.10

Description

PEP517 uv build backend

Added to portage

2026-11-25

wand - 0.7.3
Ebuild name:

dev-python/wand-0.7.3

Description

Ctypes-based simple ImageMagick binding for Python

Added to portage

2026-11-25

wine-proton - 11.0.3-r1
Ebuild name:

app-emulation/wine-proton-11.0.3-r1

Description

Valve Software's fork of Wine

Added to portage

2026-11-25

zellij - 0.46.1
Ebuild name:

app-misc/zellij-0.46.1

Description

A terminal workspace with batteries included

Added to portage

2026-11-25

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