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:

83033

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 (35 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-01-31
ansicolor - 0.3.3
Ebuild name:

dev-python/ansicolor-0.3.3

Description

Produce ansi color output and colored highlighting and diffing

Added to portage

2026-01-31

awscli - 1.44.29
Ebuild name:

app-admin/awscli-1.44.29

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-31

bazel-buildtools - 8.5.1
Ebuild name:

dev-build/bazel-buildtools-8.5.1

Description

Tools for working with Google's Bazel BUILD files.

Added to portage

2026-01-31

boto3 - 1.42.39
Ebuild name:

dev-python/boto3-1.42.39

Description

The AWS SDK for Python

Added to portage

2026-01-31

botocore - 1.42.39
Ebuild name:

dev-python/botocore-1.42.39

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-31

cyme - 2.2.11
Ebuild name:

sys-apps/cyme-2.2.11

Description

List system USB buses and devices; a modern cross-platform `lsusb`

Added to portage

2026-01-31

devcontainer - 0.82.0
Ebuild name:

app-containers/devcontainer-0.82.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-01-31

dist-kernel - 6.12.68
Ebuild name:

virtual/dist-kernel-6.12.68

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-01-31

dist-kernel - 6.18.8
Ebuild name:

virtual/dist-kernel-6.18.8

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-01-31

dist-kernel - 6.6.122
Ebuild name:

virtual/dist-kernel-6.6.122

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-01-31

dzaima-bqn - 0.2.2
Ebuild name:

dev-lang/dzaima-bqn-0.2.2

Description

A BQN language implementation written in Java, also know as dbqn

Added to portage

2026-01-31

element - 1.12.9
Ebuild name:

www-apps/element-1.12.9

Description

A glossy Matrix collaboration client for the web

Added to portage

2026-01-31

expat - 2.7.4
Ebuild name:

dev-libs/expat-2.7.4

Description

Stream-oriented XML parser library

Added to portage

2026-01-31

fcitx-qt - 5.1.12-r1
Ebuild name:

app-i18n/fcitx-qt-5.1.12-r1

Description

Qt library and IM module for fcitx5

Added to portage

2026-01-31

freerdp - 3.22.0
Ebuild name:

net-misc/freerdp-3.22.0

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-01-31

gentoo-kernel - 6.12.68
Ebuild name:

sys-kernel/gentoo-kernel-6.12.68

Description

Linux kernel built with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel - 6.18.8
Ebuild name:

sys-kernel/gentoo-kernel-6.18.8

Description

Linux kernel built with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel - 6.6.122
Ebuild name:

sys-kernel/gentoo-kernel-6.6.122

Description

Linux kernel built with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel-bin - 6.12.68
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.68

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel-bin - 6.18.8
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.8

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-01-31

gentoo-kernel-bin - 6.6.122
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.122

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-01-31

gpxsee - 15.10
Ebuild name:

sci-geosciences/gpxsee-15.10

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea fil

Added to portage

2026-01-31

heroic-bin - 2.19.1
Ebuild name:

games-util/heroic-bin-2.19.1

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-01-31

id - 1.6.0
Ebuild name:

dev-python/id-1.6.0

Description

A tool for generating OIDC identities

Added to portage

2026-01-31

jint - 4.5.0
Ebuild name:

dev-lang/jint-4.5.0

Description

Javascript Interpreter for .NET

Added to portage

2026-01-31

keepassxc - 2.7.11-r1
Ebuild name:

app-admin/keepassxc-2.7.11-r1

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2026-01-31

kitty - 0.45.0-r1
Ebuild name:

x11-terms/kitty-0.45.0-r1

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-01-31

kitty-terminfo - 0.45.0-r1
Ebuild name:

x11-terms/kitty-terminfo-0.45.0-r1

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-01-31

libhx - 5.3
Ebuild name:

sys-libs/libhx-5.3

Description

Platform independent library providing basic system functions

Added to portage

2026-01-31

luau - 0.707
Ebuild name:

dev-lang/luau-0.707

Description

Gradually typed embeddable scripting language derived from Lua

Added to portage

2026-01-31

nvidia-drivers - 580.94.17
Ebuild name:

x11-drivers/nvidia-drivers-580.94.17

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-01-31

org-roam - 2.2.2-r3
Ebuild name:

app-emacs/org-roam-2.2.2-r3

Description

Rudimentary Roam replica with Org-mode

Added to portage

2026-01-31

org-roam - 2.3.0
Ebuild name:

app-emacs/org-roam-2.3.0

Description

Rudimentary Roam replica with Org-mode

Added to portage

2026-01-31

org-roam - 2.3.1
Ebuild name:

app-emacs/org-roam-2.3.1

Description

Rudimentary Roam replica with Org-mode

Added to portage

2026-01-31

org-superstar-mode - 1.6.0
Ebuild name:

app-emacs/org-superstar-mode-1.6.0

Description

Prettify headings and plain lists in Org mode (use UTF8 bullets)

Added to portage

2026-01-31

pcsx2 - 2.6.3
Ebuild name:

games-emulation/pcsx2-2.6.3

Description

PlayStation 2 emulator

Added to portage

2026-01-31

pooch - 1.9.0
Ebuild name:

dev-python/pooch-1.9.0

Description

Manage your Python library's sample data files

Added to portage

2026-01-31

pyjwt - 2.11.0
Ebuild name:

dev-python/pyjwt-2.11.0

Description

JSON Web Token implementation in Python

Added to portage

2026-01-31

scad-mode - 98.0
Ebuild name:

app-emacs/scad-mode-98.0

Description

GNU Emacs mode to edit OpenSCAD files

Added to portage

2026-01-31

scanssh - 2.1.3.1_p20260130
Ebuild name:

net-analyzer/scanssh-2.1.3.1_p20260130

Description

network scanner that gathers info on SSH protocols and versi

Added to portage

2026-01-31

thc-ipv6 - 3.8_p20250914
Ebuild name:

net-analyzer/thc-ipv6-3.8_p20250914

Description

Complete tool set to attack the inherent protocol weaknesses of

Added to portage

2026-01-31

tqdm - 4.67.2
Ebuild name:

dev-python/tqdm-4.67.2

Description

Add a progress meter to your loops in a second

Added to portage

2026-01-31

tuareg-mode - 3.0.1_p20250911
Ebuild name:

app-emacs/tuareg-mode-3.0.1_p20250911

Description

An Objective Caml/Camllight mode for Emacs

Added to portage

2026-01-31

vanilla-kernel - 6.12.68
Ebuild name:

sys-kernel/vanilla-kernel-6.12.68

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-01-31

vanilla-kernel - 6.18.8
Ebuild name:

sys-kernel/vanilla-kernel-6.18.8

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-01-31

vanilla-kernel - 6.6.122
Ebuild name:

sys-kernel/vanilla-kernel-6.6.122

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-01-31

vivaldi - 7.8.3925.56
Ebuild name:

www-client/vivaldi-7.8.3925.56

Description

A browser for our friends

Added to portage

2026-01-31

vivaldi-snapshot - 7.8.3925.53
Ebuild name:

www-client/vivaldi-snapshot-7.8.3925.53

Description

A browser for our friends

Added to portage

2026-01-31

wxmaxima - 26.01.0
Ebuild name:

sci-mathematics/wxmaxima-26.01.0

Description

Graphical frontend to Maxima, using the wxWidgets toolkit

Added to portage

2026-01-31

ytmusicapi - 1.11.5
Ebuild name:

dev-python/ytmusicapi-1.11.5

Description

Unofficial API for YouTube Music

Added to portage

2026-01-31

2026-01-30
alembic - 1.18.3
Ebuild name:

dev-python/alembic-1.18.3

Description

Database migrations tool, written by the author of SQLAlchemy

Added to portage

2026-01-30

autopage - 0.6.0
Ebuild name:

dev-python/autopage-0.6.0

Description

A library to provide automatic paging for console output

Added to portage

2026-01-30

aws-sam-translator - 1.107.0
Ebuild name:

dev-python/aws-sam-translator-1.107.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2026-01-30

awscli - 1.44.28
Ebuild name:

app-admin/awscli-1.44.28

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-30

bibtexparser - 1.4.4
Ebuild name:

dev-python/bibtexparser-1.4.4

Description

A BibTeX parser written in Python

Added to portage

2026-01-30

boto3 - 1.42.38
Ebuild name:

dev-python/boto3-1.42.38

Description

The AWS SDK for Python

Added to portage

2026-01-30

botocore - 1.42.38
Ebuild name:

dev-python/botocore-1.42.38

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-30

c-blosc2 - 2.23.0
Ebuild name:

dev-libs/c-blosc2-2.23.0

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-01-30

claude-code - 2.1.23
Ebuild name:

dev-util/claude-code-2.1.23

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-01-30

cloudflared - 2026.1.2
Ebuild name:

net-vpn/cloudflared-2026.1.2

Description

A command-line client and tunneling daemon for Cloudflare Tunnel

Added to portage

2026-01-30

courier - 1.6.0
Ebuild name:

mail-mta/courier-1.6.0

Description

An MTA designed specifically for maildirs

Added to portage

2026-01-30

courier-authlib - 0.72.7
Ebuild name:

net-libs/courier-authlib-0.72.7

Description

Courier authentication library

Added to portage

2026-01-30

courier-unicode - 2.5.0
Ebuild name:

net-libs/courier-unicode-2.5.0

Description

Unicode library used by the courier mail server

Added to portage

2026-01-30

cssselect - 1.4.0
Ebuild name:

dev-python/cssselect-1.4.0

Description

Parse CSS3 Selectors and translate them to XPath 1.0

Added to portage

2026-01-30

deno-bin - 2.6.7
Ebuild name:

dev-lang/deno-bin-2.6.7

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-01-30

dracut-crypt-ssh - 1.0.8-r2
Ebuild name:

sys-kernel/dracut-crypt-ssh-1.0.8-r2

Description

Early unlocking of encrypted systems via ssh for dracut

Added to portage

2026-01-30

gimp - 3.0.8-r1
Ebuild name:

media-gfx/gimp-3.0.8-r1

Description

GNU Image Manipulation Program

Added to portage

2026-01-30

hackrf-tools - 2026.01.3
Ebuild name:

net-wireless/hackrf-tools-2026.01.3

Description

tools for communicating with HackRF SDR platform

Added to portage

2026-01-30

kea - 3.0.2-r2
Ebuild name:

net-misc/kea-3.0.2-r2

Description

High-performance production grade DHCPv4 & DHCPv6 server

Added to portage

2026-01-30

libhackrf - 2026.01.3
Ebuild name:

net-libs/libhackrf-2026.01.3

Description

library for communicating with HackRF SDR platform

Added to portage

2026-01-30

nanobind - 2.11.0
Ebuild name:

dev-python/nanobind-2.11.0

Description

Tiny and efficient C++/Python bindings

Added to portage

2026-01-30

nbconvert - 7.17.0
Ebuild name:

dev-python/nbconvert-7.17.0

Description

Converting Jupyter Notebooks

Added to portage

2026-01-30

nvidia-drivers - 580.95.05
Ebuild name:

x11-drivers/nvidia-drivers-580.95.05

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-01-30

nvidia-vaapi-driver - 0.0.15
Ebuild name:

media-libs/nvidia-vaapi-driver-0.0.15

Description

A VA-API implemention using NVIDIA's NVDEC

Added to portage

2026-01-30

openjdk-bin - 25.0.2_p10
Ebuild name:

dev-java/openjdk-bin-25.0.2_p10

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-01-30

org-roam - 9999
Ebuild name:

app-emacs/org-roam-9999

Description

Rudimentary Roam replica with Org-mode

Added to portage

2026-01-30

orjson - 3.11.6
Ebuild name:

dev-python/orjson-3.11.6

Description

Fast, correct Python JSON library supporting dataclasses, datetimes, and n

Added to portage

2026-01-30

pdm-backend - 2.4.7
Ebuild name:

dev-python/pdm-backend-2.4.7

Description

A PEP 517 backend for PDM that supports PEP 621 metadata

Added to portage

2026-01-30

pikepdf - 10.3.0
Ebuild name:

dev-python/pikepdf-10.3.0

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-01-30

postfix - 3.12_pre20260127
Ebuild name:

mail-mta/postfix-3.12_pre20260127

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-01-30

prometheus-podman-exporter - 1.20.0
Ebuild name:

app-metrics/prometheus-podman-exporter-1.20.0

Description

Exporter for podman giving containers, pods, images,

Added to portage

2026-01-30

protobuf - 6.33.5
Ebuild name:

dev-python/protobuf-6.33.5

Description

Google's Protocol Buffers - Python bindings

Added to portage

2026-01-30

python-dbusmock - 0.38.1
Ebuild name:

dev-python/python-dbusmock-0.38.1

Description

Easily create mock objects on D-Bus for software testing

Added to portage

2026-01-30

pytokens - 0.4.1
Ebuild name:

dev-python/pytokens-0.4.1

Description

A fast, spec compliant Python 3.13+ tokenizer that runs on older Pythons

Added to portage

2026-01-30

sphinxcontrib-trio - 1.2.0
Ebuild name:

dev-python/sphinxcontrib-trio-1.2.0

Description

Make Sphinx better at documenting Python functions and methods

Added to portage

2026-01-30

spidermonkey - 140.7.0
Ebuild name:

dev-lang/spidermonkey-140.7.0

Description

Mozilla's JavaScript engine written in C and C++

Added to portage

2026-01-30

sqlglot - 28.7.0
Ebuild name:

dev-python/sqlglot-28.7.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-01-30

steve - 1.5.0
Ebuild name:

dev-build/steve-1.5.0

Description

A load-balancing jobserver for Gentoo

Added to portage

2026-01-30

talk-desktop-bin - 2.0.5
Ebuild name:

net-im/talk-desktop-bin-2.0.5

Description

Nextcloud Talk Desktop client

Added to portage

2026-01-30

thriftpy2 - 0.6.0_beta1
Ebuild name:

dev-python/thriftpy2-0.6.0_beta1

Description

Pure python approach of Apache Thrift

Added to portage

2026-01-30

tifffile - 2026.1.28
Ebuild name:

dev-python/tifffile-2026.1.28

Description

Read and write TIFF files

Added to portage

2026-01-30

toml-fmt-common - 1.2.0
Ebuild name:

dev-python/toml-fmt-common-1.2.0

Description

Common logic to the TOML formatter

Added to portage

2026-01-30

ttl - 0.15.3
Ebuild name:

net-analyzer/ttl-0.15.3

Description

Modern traceroute/mtr-style TUI with hop stats and optional ASN/geo enrichm

Added to portage

2026-01-30

types-psutil - 7.2.2.20260130
Ebuild name:

dev-python/types-psutil-7.2.2.20260130

Description

Typing stubs for psutil

Added to portage

2026-01-30

uv - 0.9.28
Ebuild name:

dev-python/uv-0.9.28

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-01-30

uv-build - 0.9.28
Ebuild name:

dev-python/uv-build-0.9.28

Description

PEP517 uv build backend

Added to portage

2026-01-30

wcwidth - 0.5.2
Ebuild name:

dev-python/wcwidth-0.5.2

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-01-30

yt-dlp - 2026.01.29
Ebuild name:

net-misc/yt-dlp-2026.01.29

Description

youtube-dl fork with additional features and fixes

Added to portage

2026-01-30

yt-dlp-ejs - 0.4.0
Ebuild name:

dev-python/yt-dlp-ejs-0.4.0

Description

External JavaScript for yt-dlp supporting many runtimes

Added to portage

2026-01-30

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