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:

86355

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-06-28
lxqt-panel - 2.4.1-r1
Ebuild name:

lxqt-base/lxqt-panel-2.4.1-r1

Description

LXQt desktop panel and plugins

Added to portage

2026-06-28

lxqt-panel - 2.4.1-r2
Ebuild name:

lxqt-base/lxqt-panel-2.4.1-r2

Description

LXQt desktop panel and plugins

Added to portage

2026-06-28

obs-studio - 32.1.2
Ebuild name:

media-video/obs-studio-32.1.2

Description

Software for Recording and Streaming Live Video Content

Added to portage

2026-06-28

qtox - 1.18.5
Ebuild name:

net-im/qtox-1.18.5

Description

Instant messaging client using the encrypted p2p Tox protocol

Added to portage

2026-06-28

screengrab - 3.2.0-r1
Ebuild name:

x11-misc/screengrab-3.2.0-r1

Description

Qt GUI Screenshot Utility

Added to portage

2026-06-28

screengrab - 3.2.0-r2
Ebuild name:

x11-misc/screengrab-3.2.0-r2

Description

Qt GUI Screenshot Utility

Added to portage

2026-06-28

xclock - 1.2.0
Ebuild name:

x11-apps/xclock-1.2.0

Description

analog / digital clock for X

Added to portage

2026-06-28

2026-06-27
7zip - 26.02
Ebuild name:

app-arch/7zip-26.02

Description

Free file archiver for extremely high compression

Added to portage

2026-06-27

AusweisApp - 2.5.3
Ebuild name:

sys-auth/AusweisApp-2.5.3

Description

Official authentication app for German ID cards and residence permits

Added to portage

2026-06-27

arcconf - 5.09.00.28391
Ebuild name:

sys-block/arcconf-5.09.00.28391

Description

Microsemi Adaptec RAID Controller Command Line Utility

Added to portage

2026-06-27

ast-serialize - 0.5.0
Ebuild name:

dev-python/ast-serialize-0.5.0

Description

Python bindings for mypy AST serialization

Added to portage

2026-06-27

bedrock-server - 1.26.32.2
Ebuild name:

games-server/bedrock-server-1.26.32.2

Description

The official bedrock (non-java) based server for the sandbox

Added to portage

2026-06-27

buildah - 1.44.0-r1
Ebuild name:

app-containers/buildah-1.44.0-r1

Description

A tool that facilitates building OCI images

Added to portage

2026-06-27

c-blosc2 - 3.1.5
Ebuild name:

dev-libs/c-blosc2-3.1.5

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-06-27

closure-compiler-bin - 20260622
Ebuild name:

dev-lang/closure-compiler-bin-20260622

Description

JavaScript optimizing compiler

Added to portage

2026-06-27

container-libs - 0.68.0
Ebuild name:

app-containers/container-libs-0.68.0

Description

Several utilities from the containers project

Added to portage

2026-06-27

dist-kernel - 6.18.37
Ebuild name:

virtual/dist-kernel-6.18.37

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-06-27

dist-kernel - 7.0.14
Ebuild name:

virtual/dist-kernel-7.0.14

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-06-27

dist-kernel - 7.1.2
Ebuild name:

virtual/dist-kernel-7.1.2

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-06-27

docker-buildx - 0.35.0
Ebuild name:

app-containers/docker-buildx-0.35.0

Description

Docker CLI plugin for extended build capabilities with BuildKit

Added to portage

2026-06-27

editline - 2.0.0
Ebuild name:

dev-libs/editline-2.0.0

Description

line editing library for UNIX call compatible with the FSF readline

Added to portage

2026-06-27

edk2 - 202605
Ebuild name:

sys-firmware/edk2-202605

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-06-27

edk2-bin - 202605
Ebuild name:

sys-firmware/edk2-bin-202605

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-06-27

eisl - 5.67
Ebuild name:

dev-lang/eisl-5.67

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2026-06-27

fastapi - 0.138.1
Ebuild name:

dev-python/fastapi-0.138.1

Description

High performance framework, easy to learn, fast to code, ready for produ

Added to portage

2026-06-27

firefox - 152.0.3
Ebuild name:

www-client/firefox-152.0.3

Description

Firefox Web Browser

Added to portage

2026-06-27

firefox-bin - 152.0.3
Ebuild name:

www-client/firefox-bin-152.0.3

Description

Firefox Web Browser

Added to portage

2026-06-27

firefox-l10n - 152.0.3
Ebuild name:

www-client/firefox-l10n-152.0.3

Description

Firefox Web Browser's translation files

Added to portage

2026-06-27

fuzzylite - 6.0
Ebuild name:

dev-libs/fuzzylite-6.0

Description

A fuzzy logic control library in C++

Added to portage

2026-06-27

gentoo-kernel - 6.18.37
Ebuild name:

sys-kernel/gentoo-kernel-6.18.37

Description

Linux kernel built with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel - 7.0.14
Ebuild name:

sys-kernel/gentoo-kernel-7.0.14

Description

Linux kernel built with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel - 7.1.2
Ebuild name:

sys-kernel/gentoo-kernel-7.1.2

Description

Linux kernel built with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel-bin - 6.18.37
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.37

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel-bin - 7.0.14
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.0.14

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel-bin - 7.1.2
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.2

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel-modprep - 6.18.37
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.37

Description

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

Added to portage

2026-06-27

gentoo-kernel-modprep - 7.0.14
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.0.14

Description

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

Added to portage

2026-06-27

gentoo-kernel-modprep - 7.1.2
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.2

Description

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

Added to portage

2026-06-27

gentoo-sources - 6.18.37
Ebuild name:

sys-kernel/gentoo-sources-6.18.37

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-27

gentoo-sources - 7.0.14
Ebuild name:

sys-kernel/gentoo-sources-7.0.14

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-27

gentoo-sources - 7.1.2
Ebuild name:

sys-kernel/gentoo-sources-7.1.2

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-27

greenlet - 3.5.3
Ebuild name:

dev-python/greenlet-3.5.3

Description

Lightweight in-process concurrent programming

Added to portage

2026-06-27

httplib2 - 0.32.0
Ebuild name:

dev-python/httplib2-0.32.0

Description

A comprehensive HTTP client library

Added to portage

2026-06-27

httpx2 - 2.5.0
Ebuild name:

dev-python/httpx2-2.5.0

Description

The next generation HTTP client (Pydantic fork)

Added to portage

2026-06-27

hypopg - 1.4.3
Ebuild name:

dev-db/hypopg-1.4.3

Description

Hypothetical Indexes for PostgreSQL

Added to portage

2026-06-27

ibus-m17n - 1.4.40
Ebuild name:

app-i18n/ibus-m17n-1.4.40

Description

M17N engine for IBus

Added to portage

2026-06-27

ibus-typing-booster - 2.30.10
Ebuild name:

app-i18n/ibus-typing-booster-2.30.10

Description

Completion input method for IBus

Added to portage

2026-06-27

ipython - 9.15.0
Ebuild name:

dev-python/ipython-9.15.0

Description

Advanced interactive shell for Python

Added to portage

2026-06-27

jinxed - 2.0.4
Ebuild name:

dev-python/jinxed-2.0.4

Description

A pure-Python implementation of a subset of the Python curses library

Added to portage

2026-06-27

joserfc - 1.7.1
Ebuild name:

dev-python/joserfc-1.7.1

Description

A Python library for JOSE RFCs JWS, JWE, JWK, JWA, JWT

Added to portage

2026-06-27

level-zero - 1.32.0
Ebuild name:

dev-libs/level-zero-1.32.0

Description

oneAPI Level Zero headers, loader and validation layer

Added to portage

2026-06-27

libpass - 1.9.3
Ebuild name:

dev-python/libpass-1.9.3

Description

Fork of passlib, a password hashing framework

Added to portage

2026-06-27

libsquish - 1.15.1.4
Ebuild name:

media-libs/libsquish-1.15.1.4

Description

Library for compressing images with the DXT/S3TC standard

Added to portage

2026-06-27

man-pages-ja - 20260615
Ebuild name:

app-i18n/man-pages-ja-20260615

Description

Collection of manual pages translated into Japanese

Added to portage

2026-06-27

mgorny-dev-scripts - 82
Ebuild name:

app-portage/mgorny-dev-scripts-82

Description

Handy scripts for ebuild development and more

Added to portage

2026-06-27

minecraft-server - 26.2
Ebuild name:

games-server/minecraft-server-26.2

Description

The official server for the sandbox video game

Added to portage

2026-06-27

mlt - 7.40.0
Ebuild name:

media-libs/mlt-7.40.0

Description

Open source multimedia framework for television broadcasting

Added to portage

2026-06-27

modus-themes - 5.3.0
Ebuild name:

app-emacs/modus-themes-5.3.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-06-27

mysqltuner - 2.8.45
Ebuild name:

dev-db/mysqltuner-2.8.45

Description

Makes recommendations for increased performance and stability for MySQL

Added to portage

2026-06-27

nerdctl - 2.3.3
Ebuild name:

app-containers/nerdctl-2.3.3

Description

Docker-compatible CLI for containerd, with support for Compose

Added to portage

2026-06-27

nest-asyncio2 - 1.7.2
Ebuild name:

dev-python/nest-asyncio2-1.7.2

Description

Patch asyncio to allow nested event loops

Added to portage

2026-06-27

netavark - 2.0.0
Ebuild name:

app-containers/netavark-2.0.0

Description

A container network stack

Added to portage

2026-06-27

pg_qualstats - 2.1.4
Ebuild name:

dev-db/pg_qualstats-2.1.4

Description

Statistics about predicates for helping finding what indices are missing

Added to portage

2026-06-27

pg_stat_kcache - 2.3.2
Ebuild name:

dev-db/pg_stat_kcache-2.3.2

Description

Statistics about physical disk access and CPU consumption done by backe

Added to portage

2026-06-27

phpsysinfo - 3.4.6
Ebuild name:

www-apps/phpsysinfo-3.4.6

Description

A customizable PHP script that displays information about your system nic

Added to portage

2026-06-27

podman - 6.0.0
Ebuild name:

app-containers/podman-6.0.0

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-06-27

podman-tui - 1.11.2
Ebuild name:

app-containers/podman-tui-1.11.2

Description

Terminal UI frontend for Podman

Added to portage

2026-06-27

powa-archivist - 5.1.2
Ebuild name:

dev-db/powa-archivist-5.1.2

Description

PostgreSQL Workload Analyzer Archivist

Added to portage

2026-06-27

racket-mode - 1_p20260303
Ebuild name:

app-emacs/racket-mode-1_p20260303

Description

Emacs modes for Racket edit, REPL, check-syntax, debug, profile,

Added to portage

2026-06-27

rclone - 1.74.3
Ebuild name:

net-misc/rclone-1.74.3

Description

A program to sync files to and from various cloud storage providers

Added to portage

2026-06-27

reason - 3.18.0
Ebuild name:

dev-ml/reason-3.18.0

Description

Simple, fast & type safe language that leverages JavaScript and OCaml

Added to portage

2026-06-27

rebulk - 4.1.0
Ebuild name:

dev-python/rebulk-4.1.0

Description

Python library that performs advanced searches in strings

Added to portage

2026-06-27

rsyslog - 8.2606.0
Ebuild name:

app-admin/rsyslog-8.2606.0

Description

An enhanced multi-threaded syslogd with database support and more

Added to portage

2026-06-27

skopeo - 1.23.0-r1
Ebuild name:

app-containers/skopeo-1.23.0-r1

Description

Work with remote container images registries

Added to portage

2026-06-27

sonarr-bin - 4.0.19.2979
Ebuild name:

www-apps/sonarr-bin-4.0.19.2979

Description

Sonarr is a Smart PVR for newsgroup and bittorrent users

Added to portage

2026-06-27

sqlglot - 30.12.0
Ebuild name:

dev-python/sqlglot-30.12.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-06-27

syrupy - 5.3.4
Ebuild name:

dev-python/syrupy-5.3.4

Description

The sweeter pytest snapshot plugin

Added to portage

2026-06-27

tables - 3.11.1-r1
Ebuild name:

dev-python/tables-3.11.1-r1

Description

Hierarchical datasets for Python

Added to portage

2026-06-27

tor - 0.4.9.11
Ebuild name:

net-vpn/tor-0.4.9.11

Description

Anonymizing overlay network for TCP

Added to portage

2026-06-27

translate-toolkit - 3.19.13
Ebuild name:

dev-python/translate-toolkit-3.19.13

Description

Toolkit to convert between many translation formats

Added to portage

2026-06-27

tree-sitter-clojure - 0.0.13
Ebuild name:

dev-libs/tree-sitter-clojure-0.0.13

Description

Clojure programming language grammar for Tree-sitter

Added to portage

2026-06-27

tree-sitter-erlang - 0.19
Ebuild name:

dev-libs/tree-sitter-erlang-0.19

Description

Erlang programming language grammar for Tree-sitter

Added to portage

2026-06-27

tree-sitter-powershell - 0.26.5
Ebuild name:

dev-libs/tree-sitter-powershell-0.26.5

Description

PowerShell programming language grammar for Tree-sitter

Added to portage

2026-06-27

tree-sitter-racket - 0.24.7_p1
Ebuild name:

dev-libs/tree-sitter-racket-0.24.7_p1

Description

Racket programming language grammar for Tree-sitter

Added to portage

2026-06-27

tree-sitter-unison - 2.1.3
Ebuild name:

dev-libs/tree-sitter-unison-2.1.3

Description

Unison programming language grammar for Tree-sitter

Added to portage

2026-06-27

typer - 0.26.8
Ebuild name:

dev-python/typer-0.26.8

Description

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

Added to portage

2026-06-27

unison-ts-mode - 0.3.0
Ebuild name:

app-emacs/unison-ts-mode-0.3.0

Description

GNU Emacs major mode for the Unison language that uses Tree-sitter

Added to portage

2026-06-27

uv - 0.11.25
Ebuild name:

dev-python/uv-0.11.25

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-06-27

uv-build - 0.11.25
Ebuild name:

dev-python/uv-build-0.11.25

Description

PEP517 uv build backend

Added to portage

2026-06-27

vanilla-kernel - 6.18.37
Ebuild name:

sys-kernel/vanilla-kernel-6.18.37

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-06-27

vanilla-kernel - 7.0.14
Ebuild name:

sys-kernel/vanilla-kernel-7.0.14

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-06-27

vanilla-kernel - 7.1.2
Ebuild name:

sys-kernel/vanilla-kernel-7.1.2

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-06-27

vanilla-sources - 6.18.37
Ebuild name:

sys-kernel/vanilla-sources-6.18.37

Description

Full sources for the Linux kernel

Added to portage

2026-06-27

vanilla-sources - 7.0.14
Ebuild name:

sys-kernel/vanilla-sources-7.0.14

Description

Full sources for the Linux kernel

Added to portage

2026-06-27

vanilla-sources - 7.1.2
Ebuild name:

sys-kernel/vanilla-sources-7.1.2

Description

Full sources for the Linux kernel

Added to portage

2026-06-27

vcmi - 1.7.4
Ebuild name:

games-strategy/vcmi-1.7.4

Description

Open-source engine for Heroes of Might and Magic III

Added to portage

2026-06-27

vcsgraph - 0.3.2
Ebuild name:

dev-python/vcsgraph-0.3.2

Description

Graph algorithms for version control systems

Added to portage

2026-06-27

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