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:

85423

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-05-30
mldonkey - 0.0.4b-r2
Ebuild name:

app-emacs/mldonkey-0.0.4b-r2

Description

An Emacs Lisp interface to the MLDonkey core

Added to portage

2026-05-30

nagios - 4.5.13
Ebuild name:

net-analyzer/nagios-4.5.13

Description

The Nagios metapackage

Added to portage

2026-05-30

nagios-core - 4.5.13
Ebuild name:

net-analyzer/nagios-core-4.5.13

Description

Nagios core - monitoring daemon, web GUI, and documentation

Added to portage

2026-05-30

netavark - 1.17.2
Ebuild name:

app-containers/netavark-1.17.2

Description

A container network stack

Added to portage

2026-05-30

runc - 1.4.2
Ebuild name:

app-containers/runc-1.4.2

Description

runc container cli tools

Added to portage

2026-05-30

slirp4netns - 1.3.4
Ebuild name:

app-containers/slirp4netns-1.3.4

Description

User-mode networking for unprivileged network namespaces

Added to portage

2026-05-30

2026-05-29
adolc - 2.7.2-r2
Ebuild name:

sci-libs/adolc-2.7.2-r2

Description

Automatic differentiation system for C/C++

Added to portage

2026-05-29

awscli - 1.45.17
Ebuild name:

app-admin/awscli-1.45.17

Description

Universal Command Line Environment for AWS

Added to portage

2026-05-29

bird - 2.19.0
Ebuild name:

net-misc/bird-2.19.0

Description

A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6

Added to portage

2026-05-29

bird - 3.3.0
Ebuild name:

net-misc/bird-3.3.0

Description

A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6

Added to portage

2026-05-29

boto3 - 1.43.17
Ebuild name:

dev-python/boto3-1.43.17

Description

The AWS SDK for Python

Added to portage

2026-05-29

botocore - 1.43.17
Ebuild name:

dev-python/botocore-1.43.17

Description

Low-level, data-driven core of boto 3

Added to portage

2026-05-29

braintree - 4.44.0
Ebuild name:

dev-python/braintree-4.44.0

Description

Braintree Python Library

Added to portage

2026-05-29

c-blosc2 - 3.1.2
Ebuild name:

dev-libs/c-blosc2-3.1.2

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-05-29

cargo-nextest - 0.9.137
Ebuild name:

dev-util/cargo-nextest-0.9.137

Description

Next-generation test runner for Rust

Added to portage

2026-05-29

closure-compiler-bin - 20260526
Ebuild name:

dev-lang/closure-compiler-bin-20260526

Description

JavaScript optimizing compiler

Added to portage

2026-05-29

codipack - 3.1.0
Ebuild name:

sys-cluster/codipack-3.1.0

Description

Fast gradient evaluation in C++ based on Expression Templates

Added to portage

2026-05-29

codipack - 9999
Ebuild name:

sys-cluster/codipack-9999

Description

Fast gradient evaluation in C++ based on Expression Templates

Added to portage

2026-05-29

colpack - 1.0.10_p20190621
Ebuild name:

sci-libs/colpack-1.0.10_p20190621

Description

C++ algorithms for specialized vertex coloring problems

Added to portage

2026-05-29

colpack - 9999
Ebuild name:

sci-libs/colpack-9999

Description

C++ algorithms for specialized vertex coloring problems

Added to portage

2026-05-29

commonmark - 0.9.2
Ebuild name:

dev-python/commonmark-0.9.2

Description

Python parser for the CommonMark Markdown spec

Added to portage

2026-05-29

containerd - 2.3.1
Ebuild name:

app-containers/containerd-2.3.1

Description

A daemon to control runC

Added to portage

2026-05-29

crun - 1.28
Ebuild name:

app-containers/crun-1.28

Description

Fast and low-memory footprint OCI Container Runtime fully written in C

Added to portage

2026-05-29

cvs-fast-export - 2.0
Ebuild name:

dev-vcs/cvs-fast-export-2.0

Description

fast-export history from a CVS repository or RCS collection

Added to portage

2026-05-29

docker - 29.5.2
Ebuild name:

app-containers/docker-29.5.2

Description

The core functions you need to create Docker images and run Docker con

Added to portage

2026-05-29

docker-buildx - 0.34.1
Ebuild name:

app-containers/docker-buildx-0.34.1

Description

Docker CLI plugin for extended build capabilities with BuildKit

Added to portage

2026-05-29

docker-cli - 29.5.2
Ebuild name:

app-containers/docker-cli-29.5.2

Description

the command line binary for docker

Added to portage

2026-05-29

docker-compose - 5.1.4
Ebuild name:

app-containers/docker-compose-5.1.4

Description

Multi-container orchestration for Docker

Added to portage

2026-05-29

dulwich - 1.2.5
Ebuild name:

dev-python/dulwich-1.2.5

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-05-29

eigen - 3.4.1
Ebuild name:

dev-cpp/eigen-3.4.1

Description

C++ template library for linear algebra

Added to portage

2026-05-29

eigen - 5.0.1
Ebuild name:

dev-cpp/eigen-5.0.1

Description

C++ template library for linear algebra

Added to portage

2026-05-29

eigen - 5.0.9999
Ebuild name:

dev-cpp/eigen-5.0.9999

Description

C++ template library for linear algebra

Added to portage

2026-05-29

fzf - 0.73.1
Ebuild name:

app-shells/fzf-0.73.1

Description

General-purpose command-line fuzzy finder, written in Golang

Added to portage

2026-05-29

github-cli - 2.93.0
Ebuild name:

dev-util/github-cli-2.93.0

Description

GitHub CLI

Added to portage

2026-05-29

gnome-shell - 49.6-r1
Ebuild name:

gnome-base/gnome-shell-49.6-r1

Description

Provides core UI functions for the GNOME desktop

Added to portage

2026-05-29

google-api-python-client - 2.197.0
Ebuild name:

dev-python/google-api-python-client-2.197.0

Description

Google API Client for Python

Added to portage

2026-05-29

hypothesis - 6.155.0
Ebuild name:

dev-python/hypothesis-6.155.0

Description

A library for property based testing

Added to portage

2026-05-29

icingaweb2-module-director - 1.11.8
Ebuild name:

www-apps/icingaweb2-module-director-1.11.8

Description

Icinga Web 2 plugin for configuration

Added to portage

2026-05-29

idna - 3.17
Ebuild name:

dev-python/idna-3.17

Description

Internationalized Domain Names in Applications (IDNA)

Added to portage

2026-05-29

iputils - 20250605-r4
Ebuild name:

net-misc/iputils-20250605-r4

Description

Network monitoring tools including ping and ping6

Added to portage

2026-05-29

kube-apiserver - 1.36.1
Ebuild name:

sys-cluster/kube-apiserver-1.36.1

Description

Kubernetes API server

Added to portage

2026-05-29

kube-controller-manager - 1.36.1
Ebuild name:

sys-cluster/kube-controller-manager-1.36.1

Description

Kubernetes Controller Manager

Added to portage

2026-05-29

kube-linter - 0.8.3
Ebuild name:

dev-util/kube-linter-0.8.3

Description

kubernetes yaml and helm chart static analysis tool

Added to portage

2026-05-29

kube-proxy - 1.36.1
Ebuild name:

sys-cluster/kube-proxy-1.36.1

Description

Kubernetes Proxy service

Added to portage

2026-05-29

kubeadm - 1.36.1
Ebuild name:

sys-cluster/kubeadm-1.36.1

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2026-05-29

kubectl - 1.36.1
Ebuild name:

sys-cluster/kubectl-1.36.1

Description

CLI to run commands against Kubernetes clusters

Added to portage

2026-05-29

kubelet - 1.36.1
Ebuild name:

sys-cluster/kubelet-1.36.1

Description

Kubernetes Node Agent

Added to portage

2026-05-29

labwc - 0.20.0
Ebuild name:

gui-wm/labwc-0.20.0

Description

Openbox alternative for wayland

Added to portage

2026-05-29

linode-cli - 5.68.0
Ebuild name:

app-admin/linode-cli-5.68.0

Description

Official command-line interface for interacting with the Linode API

Added to portage

2026-05-29

lpsolve - 5.5.2.14
Ebuild name:

sci-mathematics/lpsolve-5.5.2.14

Description

Mixed Integer Linear Programming (MILP) solver

Added to portage

2026-05-29

maven-bin - 3.9.16
Ebuild name:

dev-java/maven-bin-3.9.16

Description

Project Management and Comprehension Tool for Java

Added to portage

2026-05-29

medipack - 1.4.0
Ebuild name:

sys-cluster/medipack-1.4.0

Description

Message Differentiation Package

Added to portage

2026-05-29

medipack - 9999
Ebuild name:

sys-cluster/medipack-9999

Description

Message Differentiation Package

Added to portage

2026-05-29

mmm-mode - 0.5.11
Ebuild name:

app-emacs/mmm-mode-0.5.11

Description

Enables the user to edit different parts of a file in different major mod

Added to portage

2026-05-29

moccur-edit - 2.16
Ebuild name:

app-emacs/moccur-edit-2.16

Description

An improved interface to color-moccur for editing

Added to portage

2026-05-29

mocker - 0.5.0
Ebuild name:

app-emacs/mocker-0.5.0

Description

Simple mocking framework for Emacs

Added to portage

2026-05-29

modus-themes - 5.1.0
Ebuild name:

app-emacs/modus-themes-5.1.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-05-29

modus-themes - 5.2.0
Ebuild name:

app-emacs/modus-themes-5.2.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-05-29

modus-themes - 9999
Ebuild name:

app-emacs/modus-themes-9999

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-05-29

mpg123-el - 1.65
Ebuild name:

app-emacs/mpg123-el-1.65

Description

Emacs front-end to mpg123 audio player and OggVorbis audio player

Added to portage

2026-05-29

mu-cite - 8.1_p202011031127
Ebuild name:

app-emacs/mu-cite-8.1_p202011031127

Description

Message citation utilities for emacsen

Added to portage

2026-05-29

mutter - 49.5-r1
Ebuild name:

x11-wm/mutter-49.5-r1

Description

GNOME compositing window manager based on Clutter

Added to portage

2026-05-29

nextcloud-notify_push - 1.3.3
Ebuild name:

www-apps/nextcloud-notify_push-1.3.3

Description

Push daemon for Nextcloud clients

Added to portage

2026-05-29

nuitka - 4.1.2
Ebuild name:

dev-python/nuitka-4.1.2

Description

Python to native compiler

Added to portage

2026-05-29

openpgp-keys-libtasn1 - 20260210-r1
Ebuild name:

sec-keys/openpgp-keys-libtasn1-20260210-r1

Description

OpenPGP keys used by GNU Libtasn1

Added to portage

2026-05-29

openstacksdk - 4.14.0
Ebuild name:

dev-python/openstacksdk-4.14.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-05-29

oslo-utils - 10.1.0
Ebuild name:

dev-python/oslo-utils-10.1.0

Description

Oslo Utility library

Added to portage

2026-05-29

pecl-dio - 0.3.0
Ebuild name:

dev-php/pecl-dio-0.3.0

Description

Direct I/O functions for PHP

Added to portage

2026-05-29

platformdirs - 4.10.0
Ebuild name:

dev-python/platformdirs-4.10.0

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-05-29

pocketfft - 2026.04.10
Ebuild name:

dev-libs/pocketfft-2026.04.10

Description

PocketFFT for C++

Added to portage

2026-05-29

pocketfft - 9999
Ebuild name:

dev-libs/pocketfft-9999

Description

PocketFFT for C++

Added to portage

2026-05-29

pound - 4.23
Ebuild name:

www-servers/pound-4.23

Description

A http/https reverse-proxy and load-balancer

Added to portage

2026-05-29

pyproject-api - 1.10.1
Ebuild name:

dev-python/pyproject-api-1.10.1

Description

API to interact with the python pyproject.toml based projects

Added to portage

2026-05-29

python-discovery - 1.4.0
Ebuild name:

dev-python/python-discovery-1.4.0

Description

Python interpreter discovery

Added to portage

2026-05-29

racket - 9.2
Ebuild name:

dev-scheme/racket-9.2

Description

General purpose, multi-paradigm Lisp-Scheme programming language

Added to portage

2026-05-29

redis - 8.0.0
Ebuild name:

dev-python/redis-8.0.0

Description

Python client for Redis key-value store

Added to portage

2026-05-29

rich-click - 1.9.8
Ebuild name:

dev-python/rich-click-1.9.8

Description

Format click help output nicely with rich

Added to portage

2026-05-29

rpds-py - 2026.5.1
Ebuild name:

dev-python/rpds-py-2026.5.1

Description

Python bindings to Rust's persistent data structures (rpds)

Added to portage

2026-05-29

ruff - 0.15.15
Ebuild name:

dev-util/ruff-0.15.15

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-05-29

s3transfer - 0.18.0
Ebuild name:

dev-python/s3transfer-0.18.0

Description

An Amazon S3 Transfer Manager

Added to portage

2026-05-29

scad-mode - 99.0
Ebuild name:

app-emacs/scad-mode-99.0

Description

GNU Emacs mode to edit OpenSCAD files

Added to portage

2026-05-29

seedfiles - 1.5
Ebuild name:

sys-apps/seedfiles-1.5

Description

Portable drop-in reimplementation of systemd-tmpfiles

Added to portage

2026-05-29

sendmail - 8.19.0.1
Ebuild name:

mail-mta/sendmail-8.19.0.1

Description

Widely-used Mail Transport Agent (MTA)

Added to portage

2026-05-29

ser-player - 1.8.0
Ebuild name:

sci-astronomy/ser-player-1.8.0

Description

Video player for SER files used for solar, lunar and planetary astro

Added to portage

2026-05-29

ser-player - 9999
Ebuild name:

sci-astronomy/ser-player-9999

Description

Video player for SER files used for solar, lunar and planetary astron

Added to portage

2026-05-29

shim - 16.1_p8
Ebuild name:

sys-boot/shim-16.1_p8

Description

Fedora's signed UEFI shim

Added to portage

2026-05-29

signal-desktop-bin - 8.12.0
Ebuild name:

net-im/signal-desktop-bin-8.12.0

Description

Allows you to send and receive messages of Signal Messenger on you

Added to portage

2026-05-29

sphinx-autodoc-typehints - 3.10.3
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.10.3

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-05-29

starlette - 1.2.0
Ebuild name:

dev-python/starlette-1.2.0

Description

The little ASGI framework that shines

Added to portage

2026-05-29

stripe-mock - 0.201.0
Ebuild name:

dev-util/stripe-mock-0.201.0

Description

Mock HTTP server that responds like the real Stripe API

Added to portage

2026-05-29

tailscale - 1.98.4
Ebuild name:

net-vpn/tailscale-1.98.4

Description

Tailscale vpn client

Added to portage

2026-05-29

terraform - 1.15.5
Ebuild name:

app-admin/terraform-1.15.5

Description

A tool for building, changing, and combining infrastructure safely

Added to portage

2026-05-29

toml-fmt-common - 1.3.3
Ebuild name:

dev-python/toml-fmt-common-1.3.3

Description

Common logic to the TOML formatter

Added to portage

2026-05-29

tox - 4.55.0
Ebuild name:

dev-python/tox-4.55.0

Description

virtualenv-based automation of test activities

Added to portage

2026-05-29

typer - 0.26.3
Ebuild name:

dev-python/typer-0.26.3

Description

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

Added to portage

2026-05-29

uv - 0.11.17
Ebuild name:

dev-python/uv-0.11.17

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-05-29

uv-build - 0.11.17
Ebuild name:

dev-python/uv-build-0.11.17

Description

PEP517 uv build backend

Added to portage

2026-05-29

virtualenv - 21.4.1
Ebuild name:

dev-python/virtualenv-21.4.1

Description

Virtual Python Environment builder

Added to portage

2026-05-29

wlroots - 0.20.1
Ebuild name:

gui-libs/wlroots-0.20.1

Description

Pluggable, composable, unopinionated modules for building a Wayland composi

Added to portage

2026-05-29

xapers - 0.9.3-r1
Ebuild name:

app-text/xapers-0.9.3-r1

Description

Personal document indexing system

Added to portage

2026-05-29

xrootd - 5.9.5
Ebuild name:

net-libs/xrootd-5.9.5

Description

Extended ROOT remote file server

Added to portage

2026-05-29

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