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:

86527

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-04
forbiddenfruit - 0.1.4-r1
Ebuild name:

dev-python/forbiddenfruit-0.1.4-r1

Description

Patch built-in Python objects

Added to portage

2026-07-04

intellij-idea - 2026.1.4
Ebuild name:

dev-util/intellij-idea-2026.1.4

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-07-04

libmemcached-awesome - 1.1.4-r1
Ebuild name:

dev-libs/libmemcached-awesome-1.1.4-r1

Description

a C/C++ memcached client library

Added to portage

2026-07-04

mod_wsgi - 6.0.5
Ebuild name:

www-apache/mod_wsgi-6.0.5

Description

An Apache2 module for running Python WSGI applications

Added to portage

2026-07-04

pylibmc - 1.6.3-r3
Ebuild name:

dev-python/pylibmc-1.6.3-r3

Description

Libmemcached wrapper written as a Python extension

Added to portage

2026-07-04

pyquery - 2.0.1-r1
Ebuild name:

dev-python/pyquery-2.0.1-r1

Description

A jQuery-like library for python

Added to portage

2026-07-04

pytest-expect - 1.1.0-r3
Ebuild name:

dev-python/pytest-expect-1.1.0-r3

Description

pytest plugin that stores test expectations by saving the set of

Added to portage

2026-07-04

virtualbox - 7.2.12
Ebuild name:

app-emulation/virtualbox-7.2.12

Description

Family of powerful x86 virtualization products for enterprise and h

Added to portage

2026-07-04

virtualbox-additions - 7.2.12
Ebuild name:

app-emulation/virtualbox-additions-7.2.12

Description

CD image containing guest additions for VirtualBox

Added to portage

2026-07-04

virtualbox-extpack-oracle - 7.2.12
Ebuild name:

app-emulation/virtualbox-extpack-oracle-7.2.12

Description

PUEL extensions for VirtualBox

Added to portage

2026-07-04

virtualbox-guest-additions - 7.2.12
Ebuild name:

app-emulation/virtualbox-guest-additions-7.2.12

Description

VirtualBox kernel modules and user-space tools for

Added to portage

2026-07-04

virtualbox-guest-modules - 7.2.12
Ebuild name:

app-emulation/virtualbox-guest-modules-7.2.12

Description

Kernel Modules for Virtualbox Guest Additions

Added to portage

2026-07-04

virtualbox-kvm - 7.2.12_pre20260201
Ebuild name:

app-emulation/virtualbox-kvm-7.2.12_pre20260201

Description

Family of powerful x86 virtualization products for

Added to portage

2026-07-04

virtualbox-modules - 7.2.12
Ebuild name:

app-emulation/virtualbox-modules-7.2.12

Description

Kernel Modules for Virtualbox

Added to portage

2026-07-04

zlib-ng - 1.0.0-r1
Ebuild name:

dev-python/zlib-ng-1.0.0-r1

Description

Drop-in replacement for zlib and gzip modules using zlib-ng

Added to portage

2026-07-04

zope-testing - 6.2
Ebuild name:

dev-python/zope-testing-6.2

Description

Zope testing helpers

Added to portage

2026-07-04

2026-07-03
awkward - 2.10.0
Ebuild name:

dev-python/awkward-2.10.0

Description

Manipulate JSON-like data with NumPy-like idioms

Added to portage

2026-07-03

awkward-cpp - 54
Ebuild name:

dev-python/awkward-cpp-54

Description

CPU kernels and compiled extensions for Awkward Array

Added to portage

2026-07-03

awscli - 1.45.40
Ebuild name:

app-admin/awscli-1.45.40

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-03

bitwarden-desktop-bin - 2026.6.0
Ebuild name:

app-admin/bitwarden-desktop-bin-2026.6.0

Description

Bitwarden password manager desktop client

Added to portage

2026-07-03

boto3 - 1.43.40
Ebuild name:

dev-python/boto3-1.43.40

Description

The AWS SDK for Python

Added to portage

2026-07-03

botocore - 1.43.40
Ebuild name:

dev-python/botocore-1.43.40

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-03

candy - 6.1.8
Ebuild name:

net-vpn/candy-6.1.8

Description

A reliable, low-latency, and anti-censorship virtual private network

Added to portage

2026-07-03

certbot - 5.6.0
Ebuild name:

app-crypt/certbot-5.6.0

Description

Let's Encrypt client to automate deployment of X.509 certificates

Added to portage

2026-07-03

clamav - 0.103.12-r5
Ebuild name:

app-antivirus/clamav-0.103.12-r5

Description

Clam Anti-Virus Scanner

Added to portage

2026-07-03

coverage - 7.15.0
Ebuild name:

dev-python/coverage-7.15.0

Description

Code coverage measurement for Python

Added to portage

2026-07-03

croniter - 6.2.3
Ebuild name:

dev-python/croniter-6.2.3

Description

Python module to provide iteration for datetime object

Added to portage

2026-07-03

derper - 1.100.0
Ebuild name:

net-vpn/derper-1.100.0

Description

DERP server for tailscale network

Added to portage

2026-07-03

dune - 3.23.1
Ebuild name:

dev-ml/dune-3.23.1

Description

A composable build system for OCaml

Added to portage

2026-07-03

faudio - 26.07
Ebuild name:

app-emulation/faudio-26.07

Description

Accuracy-focused XAudio reimplementation for open platforms

Added to portage

2026-07-03

filezilla - 3.70.6
Ebuild name:

net-ftp/filezilla-3.70.6

Description

FTP client with lots of useful features and an intuitive interface

Added to portage

2026-07-03

fitsio - 1.4.0
Ebuild name:

dev-python/fitsio-1.4.0

Description

Python library to read from and write to FITS files

Added to portage

2026-07-03

framework_tool - 0.6.5
Ebuild name:

app-laptop/framework_tool-0.6.5

Description

Tool to control Framework Computer systems

Added to portage

2026-07-03

fzssh - 1.3.0
Ebuild name:

net-libs/fzssh-1.3.0

Description

A SSH/SFTP library based on libfilezilla

Added to portage

2026-07-03

itsdangerous - 2.2.0-r1
Ebuild name:

dev-python/itsdangerous-2.2.0-r1

Description

Various helpers to pass trusted data to untrusted environments and

Added to portage

2026-07-03

libfilezilla - 0.56.1
Ebuild name:

dev-libs/libfilezilla-0.56.1

Description

C++ library offering some basic functionality for platform-independent

Added to portage

2026-07-03

libmd - 1.2.0
Ebuild name:

app-crypt/libmd-1.2.0

Description

Message Digest functions from BSD systems

Added to portage

2026-07-03

libmodbus - 3.2.0
Ebuild name:

dev-libs/libmodbus-3.2.0

Description

Modbus library which supports RTU communication over a serial line or a TC

Added to portage

2026-07-03

libscrypt - 1.22-r3
Ebuild name:

app-crypt/libscrypt-1.22-r3

Description

Shared library to implement the scrypt algorithm

Added to portage

2026-07-03

libscrypt - 1.22-r3
Ebuild name:

app-crypt/libscrypt-1.22-r3

Description

Shared library to implement the scrypt algorithm

Added to portage

2026-07-03

libupnp - 2.0.2
Ebuild name:

net-libs/libupnp-2.0.2

Description

An Portable Open Source UPnP Development Kit

Added to portage

2026-07-03

lsp-treemacs - 0.5
Ebuild name:

app-emacs/lsp-treemacs-0.5

Description

Integration between lsp-mode and treemacs

Added to portage

2026-07-03

nattka - 0.4.3
Ebuild name:

app-portage/nattka-0.4.3

Description

A New Arch Tester Toolkit -- open-source stable-bot replacement

Added to portage

2026-07-03

nerdctl - 2.3.4
Ebuild name:

app-containers/nerdctl-2.3.4

Description

Docker-compatible CLI for containerd, with support for Compose

Added to portage

2026-07-03

netifrc - 0.7.13-r1
Ebuild name:

net-misc/netifrc-0.7.13-r1

Description

Gentoo Network Interface Management Scripts

Added to portage

2026-07-03

netifrc - 0.7.14-r1
Ebuild name:

net-misc/netifrc-0.7.14-r1

Description

Gentoo Network Interface Management Scripts

Added to portage

2026-07-03

openpgp-keys-acl - 20260702
Ebuild name:

sec-keys/openpgp-keys-acl-20260702

Description

OpenPGP keys used by sys-apps/acl

Added to portage

2026-07-03

openrc - 0.63.3
Ebuild name:

sys-apps/openrc-0.63.3

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2026-07-03

pjproject - 2.17-r1
Ebuild name:

net-libs/pjproject-2.17-r1

Description

Open source SIP, Media, and NAT Traversal Library

Added to portage

2026-07-03

puppet - 8.10.0-r1
Ebuild name:

app-admin/puppet-8.10.0-r1

Description

A system automation and configuration management software

Added to portage

2026-07-03

pycargoebuild - 0.16.0
Ebuild name:

app-portage/pycargoebuild-0.16.0

Description

A generator for Rust/Cargo ebuilds written in Python

Added to portage

2026-07-03

pymdown-extensions - 11.0.1
Ebuild name:

dev-python/pymdown-extensions-11.0.1

Description

Extensions for Python Markdown

Added to portage

2026-07-03

python-ironicclient - 6.2.0
Ebuild name:

dev-python/python-ironicclient-6.2.0

Description

Python bindings for the Ironic API

Added to portage

2026-07-03

python-utils - 4.0.0
Ebuild name:

dev-python/python-utils-4.0.0

Description

Collection of small Python functions & classes

Added to portage

2026-07-03

qmmp - 2.3.3
Ebuild name:

media-sound/qmmp-2.3.3

Description

Qt-based audio player with winamp/xmms skins support

Added to portage

2026-07-03

qmmp-plugin-pack - 2.3.1
Ebuild name:

media-plugins/qmmp-plugin-pack-2.3.1

Description

Set of extra plugins for Qmmp

Added to portage

2026-07-03

qpdfview - 0.5_p20260701
Ebuild name:

app-text/qpdfview-0.5_p20260701

Description

Tabbed document viewer

Added to portage

2026-07-03

rar - 7.23
Ebuild name:

app-arch/rar-7.23

Description

RAR compressor/uncompressor

Added to portage

2026-07-03

slack - 4.50.143
Ebuild name:

net-im/slack-4.50.143

Description

Team collaboration tool

Added to portage

2026-07-03

smartdns - 48.2
Ebuild name:

net-dns/smartdns-48.2

Description

A local DNS server returns the fastest access results

Added to portage

2026-07-03

stevedore - 5.9.0
Ebuild name:

dev-python/stevedore-5.9.0

Description

Manage dynamic plugins for Python applications

Added to portage

2026-07-03

subrandr - 1.4.0
Ebuild name:

media-libs/subrandr-1.4.0

Description

Subtitle rendering library for rendering non-ASS subtitles

Added to portage

2026-07-03

ttyrec - 1.2.0.0
Ebuild name:

app-misc/ttyrec-1.2.0.0

Description

ttyrec provides tools to record and replay a terminal session

Added to portage

2026-07-03

typing-extensions - 4.16.0
Ebuild name:

dev-python/typing-extensions-4.16.0

Description

Backported and Experimental Type Hints for Python 3.7+

Added to portage

2026-07-03

unrar - 7.2.7
Ebuild name:

app-arch/unrar-7.2.7

Description

Uncompress rar files

Added to portage

2026-07-03

wcmatch - 10.2.1
Ebuild name:

dev-python/wcmatch-10.2.1

Description

Wildcard/glob file name matcher

Added to portage

2026-07-03

yq-go - 4.53.3
Ebuild name:

app-misc/yq-go-4.53.3

Description

yq is a lightweight and portable command-line YAML, JSON and XML processor

Added to portage

2026-07-03

zsh-completions - 0.36.0
Ebuild name:

app-shells/zsh-completions-0.36.0

Description

Additional completion definitions for Zsh

Added to portage

2026-07-03

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