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:

88059

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-09-01
blessed - 1.49.0
Ebuild name:

dev-python/blessed-1.49.0

Description

Library for making terminal apps using colors, keyboard input and positio

Added to portage

2026-09-01

c-blosc2 - 3.3.3
Ebuild name:

dev-libs/c-blosc2-3.3.3

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-09-01

cfn-lint - 1.56.0
Ebuild name:

dev-python/cfn-lint-1.56.0

Description

CloudFormation Linter

Added to portage

2026-09-01

darktable - 5.6.1
Ebuild name:

media-gfx/darktable-5.6.1

Description

A virtual lighttable and darkroom for photographers

Added to portage

2026-09-01

fonttools - 4.64.0
Ebuild name:

dev-python/fonttools-4.64.0

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2026-09-01

joblib - 1.6.0
Ebuild name:

dev-python/joblib-1.6.0

Description

Tools to provide lightweight pipelining in Python

Added to portage

2026-09-01

kgpg - 26.04.3-r1
Ebuild name:

kde-apps/kgpg-26.04.3-r1

Description

Frontend for GnuPG, a powerful encryption utility by KDE

Added to portage

2026-09-01

kgpg - 26.08.0-r1
Ebuild name:

kde-apps/kgpg-26.08.0-r1

Description

Frontend for GnuPG, a powerful encryption utility by KDE

Added to portage

2026-09-01

loky - 3.6.0
Ebuild name:

dev-python/loky-3.6.0

Description

Robust and reusable Executor for joblib

Added to portage

2026-09-01

tavern - 3.6.3
Ebuild name:

dev-python/tavern-3.6.3

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-09-01

trimesh - 5.1.0
Ebuild name:

dev-python/trimesh-5.1.0

Description

Python library for loading and using triangular meshes

Added to portage

2026-09-01

websocket-client - 1.9.2
Ebuild name:

dev-python/websocket-client-1.9.2

Description

WebSocket client for python with hybi13 support

Added to portage

2026-09-01

2026-08-31
Sys-Virt - 12.6.0
Ebuild name:

dev-perl/Sys-Virt-12.6.0

Description

API for using the libvirt library from Perl

Added to portage

2026-08-31

apprise - 1.13.1
Ebuild name:

dev-python/apprise-1.13.1

Description

Push Notifications that work with just about every platform

Added to portage

2026-08-31

authlib - 1.8.0
Ebuild name:

dev-python/authlib-1.8.0

Description

A Python library in building OAuth and OpenID Connect servers and clients

Added to portage

2026-08-31

discount - 3.0.2.0
Ebuild name:

app-text/discount-3.0.2.0

Description

A Markdown-to HTML translator written in C

Added to portage

2026-08-31

django-tables2 - 3.0.1
Ebuild name:

dev-python/django-tables2-3.0.1

Description

Table/data-grid framework for Django

Added to portage

2026-08-31

elixir - 1.16.3-r2
Ebuild name:

dev-lang/elixir-1.16.3-r2

Description

Elixir programming language

Added to portage

2026-08-31

elixir - 1.17.3-r2
Ebuild name:

dev-lang/elixir-1.17.3-r2

Description

Elixir programming language

Added to portage

2026-08-31

elixir - 1.18.5
Ebuild name:

dev-lang/elixir-1.18.5

Description

Elixir programming language

Added to portage

2026-08-31

elixir - 1.19.6
Ebuild name:

dev-lang/elixir-1.19.6

Description

Elixir programming language

Added to portage

2026-08-31

elixir - 1.20.4
Ebuild name:

dev-lang/elixir-1.20.4

Description

Elixir programming language

Added to portage

2026-08-31

exiv2 - 0.28.9
Ebuild name:

media-gfx/exiv2-0.28.9

Description

EXIF, IPTC and XMP metadata C++ library and command line utility

Added to portage

2026-08-31

expat - 2.8.4
Ebuild name:

dev-libs/expat-2.8.4

Description

Stream-oriented XML parser library

Added to portage

2026-08-31

fastdownload - 0.0.6-r1
Ebuild name:

sci-ml/fastdownload-0.0.6-r1

Description

Easily download, verify, and extract archives

Added to portage

2026-08-31

firefox-bin - 153.2.0
Ebuild name:

www-client/firefox-bin-153.2.0

Description

Firefox Web Browser

Added to portage

2026-08-31

gcc - 17.0.0_p20260830
Ebuild name:

sys-devel/gcc-17.0.0_p20260830

Description

The GNU Compiler Collection

Added to portage

2026-08-31

git-sources - 7.3_rc1
Ebuild name:

sys-kernel/git-sources-7.3_rc1

Description

The very latest -git version of the Linux kernel

Added to portage

2026-08-31

gnupg - 2.5.22
Ebuild name:

app-crypt/gnupg-2.5.22

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2026-08-31

hypothesis - 6.167.1
Ebuild name:

dev-python/hypothesis-6.167.1

Description

A library for property based testing

Added to portage

2026-08-31

ibus-rime - 1.6.1
Ebuild name:

app-i18n/ibus-rime-1.6.1

Description

Chinese Rime Input Method Engine for IBus

Added to portage

2026-08-31

imlib2 - 1.12.7
Ebuild name:

media-libs/imlib2-1.12.7

Description

Version 2 of an advanced replacement library for libraries like libXpm

Added to portage

2026-08-31

imlib2_loaders - 1.12.7
Ebuild name:

media-plugins/imlib2_loaders-1.12.7

Description

Additional image loaders for Imlib2

Added to portage

2026-08-31

iosevka - 34.8.1
Ebuild name:

media-fonts/iosevka-34.8.1

Description

Slender typeface for code, from code

Added to portage

2026-08-31

libgcrypt - 1.12.3
Ebuild name:

dev-libs/libgcrypt-1.12.3

Description

General purpose crypto library based on the code used in GnuPG

Added to portage

2026-08-31

libgcrypt - 1.12.3-r1
Ebuild name:

dev-libs/libgcrypt-1.12.3-r1

Description

General purpose crypto library based on the code used in GnuPG

Added to portage

2026-08-31

libksba - 1.8.1
Ebuild name:

dev-libs/libksba-1.8.1

Description

X.509 and CMS (PKCS7) library

Added to portage

2026-08-31

libvirt - 12.6.0
Ebuild name:

app-emulation/libvirt-12.6.0

Description

C toolkit to manipulate virtual machines

Added to portage

2026-08-31

libvirt-python - 12.6.0
Ebuild name:

dev-python/libvirt-python-12.6.0

Description

libvirt Python bindings

Added to portage

2026-08-31

lsp-ui - 9.0.0
Ebuild name:

app-emacs/lsp-ui-9.0.0

Description

UI modules for lsp-mode

Added to portage

2026-08-31

lua-mode - 20210802
Ebuild name:

app-emacs/lua-mode-20210802

Description

An Emacs major mode for editing Lua scripts

Added to portage

2026-08-31

lv - 0.15.0-r1
Ebuild name:

app-emacs/lv-0.15.0-r1

Description

Other echo area

Added to portage

2026-08-31

lyskom-elisp-client - 0.48_p20200226
Ebuild name:

app-emacs/lyskom-elisp-client-0.48_p20200226

Description

Elisp client for the LysKOM conference system

Added to portage

2026-08-31

nxml-libvirt-schemas - 12.6.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-12.6.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-08-31

nzbget - 26.3
Ebuild name:

net-nntp/nzbget-26.3

Description

A command-line based binary newsgrabber supporting .nzb files

Added to portage

2026-08-31

ogdi - 4.1.0-r2
Ebuild name:

sci-libs/ogdi-4.1.0-r2

Description

Open Geographical Datastore Interface, a GIS support library

Added to portage

2026-08-31

openpgp-keys-libvirt - 20260831
Ebuild name:

sec-keys/openpgp-keys-libvirt-20260831

Description

OpenPGP keys used by libvirt

Added to portage

2026-08-31

pcsx2 - 2.8.1
Ebuild name:

games-emulation/pcsx2-2.8.1

Description

PlayStation 2 emulator

Added to portage

2026-08-31

pcsx2_patches - 0_p20260810
Ebuild name:

games-emulation/pcsx2_patches-0_p20260810

Description

Collection of game patches for use with PCSX2 (e.g. wides

Added to portage

2026-08-31

pyrate-limiter - 4.5.0
Ebuild name:

dev-python/pyrate-limiter-4.5.0

Description

Python Rate-Limiter using Leaky-Bucket Algorimth Family

Added to portage

2026-08-31

python-engineio - 4.14.0
Ebuild name:

dev-python/python-engineio-4.14.0

Description

Python implementation of the Engine.IO realtime server

Added to portage

2026-08-31

pyzotero - 1.15.1
Ebuild name:

dev-python/pyzotero-1.15.1

Description

A Python client for the Zotero API

Added to portage

2026-08-31

rapidfuzz - 3.14.6
Ebuild name:

dev-python/rapidfuzz-3.14.6

Description

Rapid fuzzy string matching in Python using various string metrics

Added to portage

2026-08-31

rapidfuzz-cpp - 3.3.4
Ebuild name:

dev-cpp/rapidfuzz-cpp-3.3.4

Description

Rapid fuzzy string matching in C++

Added to portage

2026-08-31

regex - 2026.8.31
Ebuild name:

dev-python/regex-2026.8.31

Description

Alternative regular expression module to replace re

Added to portage

2026-08-31

rq - 2.12.0
Ebuild name:

dev-python/rq-2.12.0

Description

Simple, lightweight library for creating and processing background jobs

Added to portage

2026-08-31

sudo-rs - 0.2.15
Ebuild name:

app-admin/sudo-rs-0.2.15

Description

A memory safe implementation of sudo and su

Added to portage

2026-08-31

sway - 1.11-r1
Ebuild name:

gui-wm/sway-1.11-r1

Description

i3-compatible Wayland window manager

Added to portage

2026-08-31

sway - 1.12-r1
Ebuild name:

gui-wm/sway-1.12-r1

Description

i3-compatible Wayland window manager

Added to portage

2026-08-31

teamviewer - 15.81.5
Ebuild name:

net-misc/teamviewer-15.81.5

Description

All-In-One Solution for Remote Access and Support over the Internet

Added to portage

2026-08-31

transformers - 5.16.1
Ebuild name:

sci-ml/transformers-5.16.1

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-08-31

tuba - 0.11.1
Ebuild name:

net-misc/tuba-0.11.1

Description

Browse the Fediverse (GTK client)

Added to portage

2026-08-31

wrapt - 2.4.0
Ebuild name:

dev-python/wrapt-2.4.0

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-08-31

xsimd - 14.3.0
Ebuild name:

dev-cpp/xsimd-14.3.0

Description

C++ wrappers for SIMD intrinsics

Added to portage

2026-08-31

zeroconf - 0.151.3
Ebuild name:

dev-python/zeroconf-0.151.3

Description

Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi comp

Added to portage

2026-08-31

zoxide - 0.10.0
Ebuild name:

app-shells/zoxide-0.10.0

Description

A smarter cd command for your terminal

Added to portage

2026-08-31

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