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:

90514

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-21
0install - 2.18-r2
Ebuild name:

dev-ml/0install-2.18-r2

Description

Package dependency solver

Added to portage

2026-11-21

ANSITerminal - 0.8.5-r1
Ebuild name:

dev-ml/ANSITerminal-0.8.5-r1

Description

Basic control of ANSI compliant terminals and the windows shell

Added to portage

2026-11-21

alcotest - 1.7.0-r2
Ebuild name:

dev-ml/alcotest-1.7.0-r2

Description

A lightweight and colourful test framework

Added to portage

2026-11-21

alcotest - 1.8.0-r1
Ebuild name:

dev-ml/alcotest-1.8.0-r1

Description

A lightweight and colourful test framework

Added to portage

2026-11-21

alcotest - 1.9.0-r1
Ebuild name:

dev-ml/alcotest-1.9.0-r1

Description

A lightweight and colourful test framework

Added to portage

2026-11-21

alcotest - 1.9.1-r1
Ebuild name:

dev-ml/alcotest-1.9.1-r1

Description

A lightweight and colourful test framework

Added to portage

2026-11-21

angstrom - 0.16.1-r1
Ebuild name:

dev-ml/angstrom-0.16.1-r1

Description

Parser combinators built for speed and memory-efficiency

Added to portage

2026-11-21

async - 0.16.0-r1
Ebuild name:

dev-ml/async-0.16.0-r1

Description

Jane Street Capital's asynchronous execution library

Added to portage

2026-11-21

async - 0.17.0-r1
Ebuild name:

dev-ml/async-0.17.0-r1

Description

Jane Street Capital's asynchronous execution library

Added to portage

2026-11-21

async_kernel - 0.16.0-r1
Ebuild name:

dev-ml/async_kernel-0.16.0-r1

Description

Jane Street Capital's asynchronous execution library (core)

Added to portage

2026-11-21

aws-c-common - 1.0.6
Ebuild name:

dev-libs/aws-c-common-1.0.6

Description

Core c99 package for AWS SDK for C

Added to portage

2026-11-21

aws-c-http - 1.3.1
Ebuild name:

dev-libs/aws-c-http-1.3.1

Description

AWS C Http C99 implementation of the HTTP/1.1 and HTTP/2 specifications

Added to portage

2026-11-21

awscli - 2.42.1
Ebuild name:

app-admin/awscli-2.42.1

Description

Universal Command Line Environment for AWS

Added to portage

2026-11-21

closure-compiler-bin - 20261118
Ebuild name:

dev-lang/closure-compiler-bin-20261118

Description

JavaScript optimizing compiler

Added to portage

2026-11-21

devcontainer - 0.91.0
Ebuild name:

app-containers/devcontainer-0.91.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-11-21

docker-buildx - 0.39.1
Ebuild name:

app-containers/docker-buildx-0.39.1

Description

Docker CLI plugin for extended build capabilities with BuildKit

Added to portage

2026-11-21

dynamips - 0.2.25
Ebuild name:

app-emulation/dynamips-0.2.25

Description

Cisco 7200/3600 Simulator

Added to portage

2026-11-21

elpi - 1.19.6-r2
Ebuild name:

dev-lang/elpi-1.19.6-r2

Description

Embeddable Lambda Prolog Interpreter in OCaml

Added to portage

2026-11-21

elpi - 2.0.7-r1
Ebuild name:

dev-lang/elpi-2.0.7-r1

Description

Embeddable Lambda Prolog Interpreter in OCaml

Added to portage

2026-11-21

geneweb - 7.1.0_beta2-r2
Ebuild name:

app-misc/geneweb-7.1.0_beta2-r2

Description

Genealogy software program with a Web interface

Added to portage

2026-11-21

geneweb - 7.1_beta-r2
Ebuild name:

app-misc/geneweb-7.1_beta-r2

Description

Genealogy software program with a Web interface

Added to portage

2026-11-21

gpgme - 2.3.1
Ebuild name:

app-crypt/gpgme-2.3.1

Description

GnuPG Made Easy is a library for making GnuPG easier to use

Added to portage

2026-11-21

hl-todo - 3.9.5
Ebuild name:

app-emacs/hl-todo-3.9.5

Description

Highlight TODO and similar keywords in comments and strings

Added to portage

2026-11-21

howm - 1.5.0
Ebuild name:

app-emacs/howm-1.5.0

Description

Note-taking tool on Emacs

Added to portage

2026-11-21

ht - 2.3
Ebuild name:

app-emacs/ht-2.3

Description

The missing hash table library for Emacs

Added to portage

2026-11-21

htmlize - 1.59
Ebuild name:

app-emacs/htmlize-1.59

Description

HTML-ize font-lock buffers in Emacs

Added to portage

2026-11-21

joplin-desktop - 3.7.24
Ebuild name:

app-office/joplin-desktop-3.7.24

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-11-21

lha - 114i_p20260723
Ebuild name:

app-arch/lha-114i_p20260723

Description

Utility for creating and opening lzh archives

Added to portage

2026-11-21

libksba - 1.9.1
Ebuild name:

dev-libs/libksba-1.9.1

Description

X.509 and CMS (PKCS7) library

Added to portage

2026-11-21

nspr - 4.41
Ebuild name:

dev-libs/nspr-4.41

Description

Netscape Portable Runtime

Added to portage

2026-11-21

nss - 3.134
Ebuild name:

dev-libs/nss-3.134

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-11-21

openjdk - 28_alpha25
Ebuild name:

dev-java/openjdk-28_alpha25

Description

Open source implementation of the Java programming language

Added to portage

2026-11-21

openjdk-jre-bin - 11.0.33.1_p1
Ebuild name:

dev-java/openjdk-jre-bin-11.0.33.1_p1

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-11-21

openjdk-jre-bin - 8.514_p01
Ebuild name:

dev-java/openjdk-jre-bin-8.514_p01

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-11-21

ruffle - 0.8.0
Ebuild name:

app-emulation/ruffle-0.8.0

Description

Flash Player emulator written in Rust

Added to portage

2026-11-21

rust - 1.100.0
Ebuild name:

dev-lang/rust-1.100.0

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-11-21

rust-bin - 1.100.0
Ebuild name:

dev-lang/rust-bin-1.100.0

Description

Added to portage

2026-11-21

rust-common - 1.100.0
Ebuild name:

dev-lang/rust-common-1.100.0

Description

Common files shared between multiple slots of Rust

Added to portage

2026-11-21

shell-maker - 0.98.3
Ebuild name:

app-emacs/shell-maker-0.98.3

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-11-21

simpleini - 4.28
Ebuild name:

dev-cpp/simpleini-4.28

Description

C++ library providing a simple API to read and write INI-style files

Added to portage

2026-11-21

swi-prolog - 11.0.0
Ebuild name:

dev-lang/swi-prolog-11.0.0

Description

Versatile implementation of the Prolog programming language

Added to portage

2026-11-21

timescaledb - 2.32.1
Ebuild name:

dev-db/timescaledb-2.32.1

Description

Open-source time-series SQL database

Added to portage

2026-11-21

tree-sitter-erlang - 0.22.0
Ebuild name:

dev-libs/tree-sitter-erlang-0.22.0

Description

Erlang programming language grammar for Tree-sitter

Added to portage

2026-11-21

vaultwarden - 1.37.5
Ebuild name:

app-admin/vaultwarden-1.37.5

Description

Unofficial Bitwarden compatible password manager

Added to portage

2026-11-21

virtiofsd - 1.14.0
Ebuild name:

app-emulation/virtiofsd-1.14.0

Description

A virtio-fs vhost-user device daemon

Added to portage

2026-11-21

virtiofsd - 1.15.0
Ebuild name:

app-emulation/virtiofsd-1.15.0

Description

Shared file system for virtual machines

Added to portage

2026-11-21

xen - 4.20.4
Ebuild name:

app-emulation/xen-4.20.4

Description

The Xen virtual machine monitor

Added to portage

2026-11-21

xen - 4.22.0
Ebuild name:

app-emulation/xen-4.22.0

Description

The Xen virtual machine monitor

Added to portage

2026-11-21

xen-tools - 4.20.4
Ebuild name:

app-emulation/xen-tools-4.20.4

Description

Xen tools including QEMU and xl

Added to portage

2026-11-21

xen-tools - 4.22.0
Ebuild name:

app-emulation/xen-tools-4.22.0

Description

Xen tools including QEMU and xl

Added to portage

2026-11-21

2026-11-20
aws-sam-translator - 1.118.0
Ebuild name:

dev-python/aws-sam-translator-1.118.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2026-11-20

cachebox - 6.2.11
Ebuild name:

dev-python/cachebox-6.2.11

Description

The fastest memoizing and caching Python library written in Rust

Added to portage

2026-11-20

cfn-lint - 1.61.0
Ebuild name:

dev-python/cfn-lint-1.61.0

Description

CloudFormation Linter

Added to portage

2026-11-20

configargparse - 1.10.2
Ebuild name:

dev-python/configargparse-1.10.2

Description

Drop-in replacement for argparse supporting config files and env v

Added to portage

2026-11-20

dist-kernel - 6.1.192_p2
Ebuild name:

virtual/dist-kernel-6.1.192_p2

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-11-20

dist-kernel - 6.12.118_p1
Ebuild name:

virtual/dist-kernel-6.12.118_p1

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-11-20

dist-kernel - 6.18.64_p1
Ebuild name:

virtual/dist-kernel-6.18.64_p1

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-11-20

dist-kernel - 6.6.162_p2
Ebuild name:

virtual/dist-kernel-6.6.162_p2

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-11-20

dist-kernel - 7.3.5_p1
Ebuild name:

virtual/dist-kernel-7.3.5_p1

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-11-20

exceptiongroup - 1.3.2
Ebuild name:

dev-python/exceptiongroup-1.3.2

Description

Backport of PEP 654 (exception groups)

Added to portage

2026-11-20

gentoo-kernel - 6.1.192_p2
Ebuild name:

sys-kernel/gentoo-kernel-6.1.192_p2

Description

Linux kernel built with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel - 6.12.118_p1
Ebuild name:

sys-kernel/gentoo-kernel-6.12.118_p1

Description

Linux kernel built with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel - 6.18.64_p1
Ebuild name:

sys-kernel/gentoo-kernel-6.18.64_p1

Description

Linux kernel built with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel - 6.6.162_p2
Ebuild name:

sys-kernel/gentoo-kernel-6.6.162_p2

Description

Linux kernel built with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel - 7.3.5_p1
Ebuild name:

sys-kernel/gentoo-kernel-7.3.5_p1

Description

Linux kernel built with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel-bin - 6.1.192_p2
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.192_p2

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel-bin - 6.12.118_p1
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.118_p1

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel-bin - 6.18.64_p1
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.64_p1

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel-bin - 6.6.162_p2
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.162_p2

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel-bin - 7.3.5_p1
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.3.5_p1

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-11-20

gentoo-kernel-modprep - 6.1.192_p2
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.192_p2

Description

Minimal subset of gentoo-kernel-bin for building module

Added to portage

2026-11-20

gentoo-kernel-modprep - 6.12.118_p1
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.118_p1

Description

Minimal subset of gentoo-kernel-bin for building modul

Added to portage

2026-11-20

gentoo-kernel-modprep - 6.18.64_p1
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.64_p1

Description

Minimal subset of gentoo-kernel-bin for building module

Added to portage

2026-11-20

gentoo-kernel-modprep - 6.6.162_p2
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.162_p2

Description

Minimal subset of gentoo-kernel-bin for building module

Added to portage

2026-11-20

gentoo-kernel-modprep - 7.3.5_p1
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.3.5_p1

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-11-20

gentoo-sources - 6.1.192-r2
Ebuild name:

sys-kernel/gentoo-sources-6.1.192-r2

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-11-20

gentoo-sources - 6.12.118-r1
Ebuild name:

sys-kernel/gentoo-sources-6.12.118-r1

Description

Full sources including the Gentoo patchset for the . kernel t

Added to portage

2026-11-20

gentoo-sources - 6.18.64-r1
Ebuild name:

sys-kernel/gentoo-sources-6.18.64-r1

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-11-20

gentoo-sources - 6.6.162-r2
Ebuild name:

sys-kernel/gentoo-sources-6.6.162-r2

Description

Full sources including the Gentoo patchset for the . kernel tr

Added to portage

2026-11-20

gentoo-sources - 7.3.5-r1
Ebuild name:

sys-kernel/gentoo-sources-7.3.5-r1

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-11-20

git-delta - 0.21.2
Ebuild name:

dev-util/git-delta-0.21.2

Description

Syntax-highlighting pager for git

Added to portage

2026-11-20

guessit - 4.5.4
Ebuild name:

dev-python/guessit-4.5.4

Description

Python library for guessing information from video filenames

Added to portage

2026-11-20

hugin - 2026.0.0
Ebuild name:

media-gfx/hugin-2026.0.0

Description

GUI for the creation & processing of panoramic images

Added to portage

2026-11-20

hypothesis - 6.170.16
Ebuild name:

dev-python/hypothesis-6.170.16

Description

A library for property based testing

Added to portage

2026-11-20

jsonpatch - 1.48
Ebuild name:

dev-python/jsonpatch-1.48

Description

Apply JSON-Patches like http

Added to portage

2026-11-20

keystoneauth1 - 5.19.0
Ebuild name:

dev-python/keystoneauth1-5.19.0

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-11-20

lexbor - 3.0.1
Ebuild name:

dev-libs/lexbor-3.0.1

Description

Modular web engine (HTML/CSS parser, renderer, ...)

Added to portage

2026-11-20

librt - 0.17.0
Ebuild name:

dev-python/librt-0.17.0

Description

Mypyc runtime library

Added to portage

2026-11-20

mesa - 26.3.1
Ebuild name:

media-libs/mesa-26.3.1

Description

OpenGL-like graphic library for Linux

Added to portage

2026-11-20

mesa_clc - 26.3.1
Ebuild name:

dev-util/mesa_clc-26.3.1

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-11-20

nautilus - 49.6-r2
Ebuild name:

gnome-base/nautilus-49.6-r2

Description

Default file manager for the GNOME desktop

Added to portage

2026-11-20

pydantic - 2.14.4
Ebuild name:

dev-python/pydantic-2.14.4

Description

Data parsing and validation using Python type hints

Added to portage

2026-11-20

pylast - 7.3.0
Ebuild name:

dev-python/pylast-7.3.0

Description

Python interface to last.fm and other api-compatible websites

Added to portage

2026-11-20

pymongo - 4.20.1
Ebuild name:

dev-python/pymongo-4.20.1

Description

Python driver for MongoDB

Added to portage

2026-11-20

pyotp - 2.12.1
Ebuild name:

dev-python/pyotp-2.12.1

Description

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

Added to portage

2026-11-20

pytest-env - 1.8.7
Ebuild name:

dev-python/pytest-env-1.8.7

Description

pytest plugin that allows you to add environment variables

Added to portage

2026-11-20

python-manilaclient - 6.4.0
Ebuild name:

dev-python/python-manilaclient-6.4.0

Description

Python bindings to the OpenStack Manila API

Added to portage

2026-11-20

quantities - 0.17.0
Ebuild name:

dev-python/quantities-0.17.0

Description

Support for physical quantities with units, based on numpy

Added to portage

2026-11-20

stripe - 17.1.0
Ebuild name:

dev-python/stripe-17.1.0

Description

Stripe Python bindings

Added to portage

2026-11-20

trakit - 0.5.0
Ebuild name:

dev-python/trakit-0.5.0

Description

Guess additional information from titles in media tracks

Added to portage

2026-11-20

typeguard - 4.6.1
Ebuild name:

dev-python/typeguard-4.6.1

Description

Run-time type checker for Python

Added to portage

2026-11-20

xlsxwriter - 3.3.2
Ebuild name:

dev-python/xlsxwriter-3.3.2

Description

Python module for creating Excel XLSX files

Added to portage

2026-11-20

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