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:

84085

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-03-30
fcft - 3.3.3
Ebuild name:

media-libs/fcft-3.3.3

Description

Simple library for font loading and glyph rasterization

Added to portage

2026-03-30

grub - 2.14-r4
Ebuild name:

sys-boot/grub-2.14-r4

Description

GNU GRUB boot loader

Added to portage

2026-03-30

inxi - 3.3.40.1
Ebuild name:

sys-apps/inxi-3.3.40.1

Description

The CLI inxi collects and prints hardware and system information

Added to portage

2026-03-30

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-03-30

2026-03-28
HTTP-Daemon-SSL - 1.05.01
Ebuild name:

dev-perl/HTTP-Daemon-SSL-1.05.01

Description

A simple http server class with SSL support

Added to portage

2026-03-28

aiohttp - 3.13.4
Ebuild name:

dev-python/aiohttp-3.13.4

Description

HTTP client/server for asyncio

Added to portage

2026-03-28

autoconf - 2.73-r1
Ebuild name:

dev-build/autoconf-2.73-r1

Description

Used to create autoconfiguration files

Added to portage

2026-03-28

bedrock-server - 1.26.11.1
Ebuild name:

games-server/bedrock-server-1.26.11.1

Description

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

Added to portage

2026-03-28

cares-tools - 0.3
Ebuild name:

net-dns/cares-tools-0.3

Description

c-ares tools host, nslookup

Added to portage

2026-03-28

clamtk - 6.18-r2
Ebuild name:

app-antivirus/clamtk-6.18-r2

Description

A graphical front-end for ClamAV

Added to portage

2026-03-28

dist-kernel - 6.12.79
Ebuild name:

virtual/dist-kernel-6.12.79

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-03-28

dunst - 1.13.2
Ebuild name:

x11-misc/dunst-1.13.2

Description

Lightweight replacement for common notification daemons

Added to portage

2026-03-28

fastfetch - 2.61.0
Ebuild name:

app-misc/fastfetch-2.61.0

Description

Fast neofetch-like system information tool

Added to portage

2026-03-28

faudio - 26.03
Ebuild name:

app-emulation/faudio-26.03

Description

Accuracy-focused XAudio reimplementation for open platforms

Added to portage

2026-03-28

flux - 2.8.3-r1
Ebuild name:

sys-cluster/flux-2.8.3-r1

Description

Flux is a tool for keeping Kubernetes clusters in sync

Added to portage

2026-03-28

fuse - 1.6.0-r5
Ebuild name:

app-emulation/fuse-1.6.0-r5

Description

Free Unix Spectrum Emulator by Philip Kendall

Added to portage

2026-03-28

fuse - 1.7.0
Ebuild name:

app-emulation/fuse-1.7.0

Description

Free Unix Spectrum Emulator by Philip Kendall

Added to portage

2026-03-28

fuse-utils - 1.4.3-r3
Ebuild name:

app-emulation/fuse-utils-1.4.3-r3

Description

Utils for the Free Unix Spectrum Emulator by Philip Kendall

Added to portage

2026-03-28

fuse-utils - 1.4.4
Ebuild name:

app-emulation/fuse-utils-1.4.4

Description

Utils for the Free Unix Spectrum Emulator by Philip Kendall

Added to portage

2026-03-28

gcc - 15.2.1_p20260328
Ebuild name:

sys-devel/gcc-15.2.1_p20260328

Description

The GNU Compiler Collection

Added to portage

2026-03-28

gegl - 0.4.70
Ebuild name:

media-libs/gegl-0.4.70

Description

A graph based image processing framework

Added to portage

2026-03-28

gentoo-kernel - 6.12.79
Ebuild name:

sys-kernel/gentoo-kernel-6.12.79

Description

Linux kernel built with Gentoo patches

Added to portage

2026-03-28

gentoo-kernel-bin - 6.12.79
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.79

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-03-28

gimp - 2.10.38-r5
Ebuild name:

media-gfx/gimp-2.10.38-r5

Description

GNU Image Manipulation Program

Added to portage

2026-03-28

gimp - 3.0.8-r2
Ebuild name:

media-gfx/gimp-3.0.8-r2

Description

GNU Image Manipulation Program

Added to portage

2026-03-28

gimp - 3.2.2
Ebuild name:

media-gfx/gimp-3.2.2

Description

GNU Image Manipulation Program

Added to portage

2026-03-28

hypothesis - 6.151.10
Ebuild name:

dev-python/hypothesis-6.151.10

Description

A library for property based testing

Added to portage

2026-03-28

imagemagick - 6.9.13.43
Ebuild name:

media-gfx/imagemagick-6.9.13.43

Description

A collection of tools and libraries for many image formats

Added to portage

2026-03-28

imagemagick - 7.1.2.18
Ebuild name:

media-gfx/imagemagick-7.1.2.18

Description

A collection of tools and libraries for many image formats

Added to portage

2026-03-28

intel-compute-runtime - 26.09.37435.10
Ebuild name:

dev-libs/intel-compute-runtime-26.09.37435.10

Description

Intel Graphics Compute Runtime for oneAPI Level Zero

Added to portage

2026-03-28

intel-graphics-compiler - 2.31.2
Ebuild name:

dev-util/intel-graphics-compiler-2.31.2

Description

LLVM-based OpenCL compiler for OpenCL targetting Intel Gen

Added to portage

2026-03-28

intel-metrics-discovery - 1.14.185
Ebuild name:

dev-libs/intel-metrics-discovery-1.14.185

Description

A user mode library that provides access to GPU performan

Added to portage

2026-03-28

intel-metrics-library - 1.0.209.1
Ebuild name:

dev-libs/intel-metrics-library-1.0.209.1

Description

User mode driver helper library that provides access to GP

Added to portage

2026-03-28

jsoncons - 1.6.0
Ebuild name:

dev-cpp/jsoncons-1.6.0

Description

C++ header-only library for JSON and JSON-like data formats

Added to portage

2026-03-28

kubelogin - 1.35.2-r1
Ebuild name:

sys-cluster/kubelogin-1.35.2-r1

Description

kubectl plugin for Kubernetes OpenID Connect authentication

Added to portage

2026-03-28

kubelogin - 1.36.0-r1
Ebuild name:

sys-cluster/kubelogin-1.36.0-r1

Description

kubectl plugin for Kubernetes OpenID Connect authentication

Added to portage

2026-03-28

kubeseal - 0.36.1-r1
Ebuild name:

sys-cluster/kubeseal-0.36.1-r1

Description

Client-side utility for one-way encrypted secrets in kubernetes

Added to portage

2026-03-28

kwin - 6.6.3-r1
Ebuild name:

kde-plasma/kwin-6.6.3-r1

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2026-03-28

libkscreen - 6.5.5-r2
Ebuild name:

kde-plasma/libkscreen-6.5.5-r2

Description

Plasma screen management library

Added to portage

2026-03-28

libspectrum - 1.5.0-r1
Ebuild name:

app-emulation/libspectrum-1.5.0-r1

Description

Spectrum emulation library

Added to portage

2026-03-28

libspectrum - 1.6.0
Ebuild name:

app-emulation/libspectrum-1.6.0

Description

Spectrum emulation library

Added to portage

2026-03-28

libupnp - 1.18.4
Ebuild name:

net-libs/libupnp-1.18.4

Description

An Portable Open Source UPnP Development Kit

Added to portage

2026-03-28

luasystem - 0.7.0
Ebuild name:

dev-lua/luasystem-0.7.0

Description

Platform independent system calls for Lua

Added to portage

2026-03-28

mattermost-desktop-bin - 6.1.1_rc1
Ebuild name:

net-im/mattermost-desktop-bin-6.1.1_rc1

Description

Mattermost Desktop application

Added to portage

2026-03-28

minecraft-server - 26.1
Ebuild name:

games-server/minecraft-server-26.1

Description

The official server for the sandbox video game

Added to portage

2026-03-28

miniflux - 2.2.14-r1
Ebuild name:

www-apps/miniflux-2.2.14-r1

Description

Minimalist and opinionated feed reader

Added to portage

2026-03-28

miniflux - 2.2.17-r1
Ebuild name:

www-apps/miniflux-2.2.17-r1

Description

Minimalist and opinionated feed reader

Added to portage

2026-03-28

mit-krb5 - 1.22.1
Ebuild name:

app-crypt/mit-krb5-1.22.1

Description

MIT Kerberos V

Added to portage

2026-03-28

mit-krb5 - 1.22.2
Ebuild name:

app-crypt/mit-krb5-1.22.2

Description

MIT Kerberos V

Added to portage

2026-03-28

mit-krb5-appl - 1.0.3-r4
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r4

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-03-28

mit-krb5-appl - 1.0.3-r5
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r5

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-03-28

mixxx - 2.5.6
Ebuild name:

media-sound/mixxx-2.5.6

Description

Advanced Digital DJ tool based on Qt

Added to portage

2026-03-28

motif - 2.5.1
Ebuild name:

x11-libs/motif-2.5.1

Description

The Motif user interface component toolkit

Added to portage

2026-03-28

mpv - 0.41.0-r1
Ebuild name:

media-video/mpv-0.41.0-r1

Description

Media player for the command line

Added to portage

2026-03-28

numpy - 2.4.4
Ebuild name:

dev-python/numpy-2.4.4

Description

Fast array and numerical python library

Added to portage

2026-03-28

open-supaplex - 7.2
Ebuild name:

games-arcade/open-supaplex-7.2

Description

OSS reimplementation of Supaplex in C and SDL

Added to portage

2026-03-28

opencl-clang - 16.0.9
Ebuild name:

dev-libs/opencl-clang-16.0.9

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-03-28

opencl-clang - 17.0.4
Ebuild name:

dev-libs/opencl-clang-17.0.4

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-03-28

opencl-clang - 18.1.4
Ebuild name:

dev-libs/opencl-clang-18.1.4

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-03-28

opencl-clang - 19.1.3
Ebuild name:

dev-libs/opencl-clang-19.1.3

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-03-28

opencl-clang - 20.1.3
Ebuild name:

dev-libs/opencl-clang-20.1.3

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-03-28

opencl-clang - 21.1.3
Ebuild name:

dev-libs/opencl-clang-21.1.3

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-03-28

opencl-clang - 22.1.0
Ebuild name:

dev-libs/opencl-clang-22.1.0

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2026-03-28

openjdk-bin - 27_alpha15
Ebuild name:

dev-java/openjdk-bin-27_alpha15

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-03-28

openpgp-keys-imagemagick - 20260329
Ebuild name:

sec-keys/openpgp-keys-imagemagick-20260329

Description

OpenPGP key used to sign ImageMagick releases

Added to portage

2026-03-28

openrct2 - 0.4.32
Ebuild name:

games-simulation/openrct2-0.4.32

Description

An open source re-implementation of Chris Sawyer's RollerCoaster T

Added to portage

2026-03-28

pandora_box - 0.20.1
Ebuild name:

sys-apps/pandora_box-0.20.1

Description

Syd's log inspector & profile writer

Added to portage

2026-03-28

phpsysinfo - 3.4.5
Ebuild name:

www-apps/phpsysinfo-3.4.5

Description

A customizable PHP script that displays information about your system nic

Added to portage

2026-03-28

poetry - 2.3.3
Ebuild name:

dev-python/poetry-2.3.3

Description

A frontend for poetry - a python dependency management and packaging tool

Added to portage

2026-03-28

poetry-core - 2.3.2
Ebuild name:

dev-python/poetry-core-2.3.2

Description

Poetry PEP 517 Build Backend

Added to portage

2026-03-28

pygit2 - 1.19.2
Ebuild name:

dev-python/pygit2-1.19.2

Description

Python bindings for libgit2

Added to portage

2026-03-28

pymdown-extensions - 10.21.2
Ebuild name:

dev-python/pymdown-extensions-10.21.2

Description

Extensions for Python Markdown

Added to portage

2026-03-28

python-json-logger - 4.1.0
Ebuild name:

dev-python/python-json-logger-4.1.0

Description

Standard python logging to output log data as json objects

Added to portage

2026-03-28

regex - 2026.3.32
Ebuild name:

dev-python/regex-2026.3.32

Description

Alternative regular expression module to replace re

Added to portage

2026-03-28

scummvm - 2026.2.0
Ebuild name:

games-engines/scummvm-2026.2.0

Description

Reimplementation of the SCUMM game engine used in Lucasarts adventur

Added to portage

2026-03-28

spirv-llvm-translator - 16.0.22
Ebuild name:

dev-util/spirv-llvm-translator-16.0.22

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-03-28

spirv-llvm-translator - 17.0.21
Ebuild name:

dev-util/spirv-llvm-translator-17.0.21

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-03-28

spirv-llvm-translator - 18.1.21
Ebuild name:

dev-util/spirv-llvm-translator-18.1.21

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-03-28

spirv-llvm-translator - 19.1.16
Ebuild name:

dev-util/spirv-llvm-translator-19.1.16

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-03-28

spirv-llvm-translator - 20.1.11
Ebuild name:

dev-util/spirv-llvm-translator-20.1.11

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-03-28

spirv-llvm-translator - 21.1.5
Ebuild name:

dev-util/spirv-llvm-translator-21.1.5

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-03-28

spirv-llvm-translator - 22.1.0
Ebuild name:

dev-util/spirv-llvm-translator-22.1.0

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-03-28

stone-soup - 0.25.1-r104
Ebuild name:

games-roguelike/stone-soup-0.25.1-r104

Description

Role-playing roguelike game of exploration and treasure-hunt

Added to portage

2026-03-28

stone-soup - 0.26.1-r3
Ebuild name:

games-roguelike/stone-soup-0.26.1-r3

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

stone-soup - 0.27.1-r2
Ebuild name:

games-roguelike/stone-soup-0.27.1-r2

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

stone-soup - 0.28.0-r2
Ebuild name:

games-roguelike/stone-soup-0.28.0-r2

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

stone-soup - 0.29.1-r1
Ebuild name:

games-roguelike/stone-soup-0.29.1-r1

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

stone-soup - 0.30.1-r1
Ebuild name:

games-roguelike/stone-soup-0.30.1-r1

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

stone-soup - 0.31.0-r1
Ebuild name:

games-roguelike/stone-soup-0.31.0-r1

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

stone-soup - 0.32.1-r1
Ebuild name:

games-roguelike/stone-soup-0.32.1-r1

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

stone-soup - 0.33.1-r1
Ebuild name:

games-roguelike/stone-soup-0.33.1-r1

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

stone-soup - 0.34.0-r1
Ebuild name:

games-roguelike/stone-soup-0.34.0-r1

Description

Role-playing roguelike game of exploration and treasure-huntin

Added to portage

2026-03-28

syd - 3.51.1
Ebuild name:

sys-apps/syd-3.51.1

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2026-03-28

texstudio - 4.9.3
Ebuild name:

app-office/texstudio-4.9.3

Description

Free cross-platform LaTeX editor (fork from texmakerX)

Added to portage

2026-03-28

thunar - 4.20.8
Ebuild name:

xfce-base/thunar-4.20.8

Description

File manager for the Xfce desktop environment

Added to portage

2026-03-28

thunar - 4.21.5
Ebuild name:

xfce-base/thunar-4.21.5

Description

File manager for the Xfce desktop environment

Added to portage

2026-03-28

transformers - 5.1.0
Ebuild name:

sci-ml/transformers-5.1.0

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-03-28

transformers - 5.2.0
Ebuild name:

sci-ml/transformers-5.2.0

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-03-28

tuned - 2.27.0-r1
Ebuild name:

sys-apps/tuned-2.27.0-r1

Description

Daemon for monitoring and adaptive tuning of system devices

Added to portage

2026-03-28

unrar - 7.2.5
Ebuild name:

app-arch/unrar-7.2.5

Description

Uncompress rar files

Added to portage

2026-03-28

vanilla-kernel - 6.12.79
Ebuild name:

sys-kernel/vanilla-kernel-6.12.79

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-03-28

virtctl - 1.8.0-r1
Ebuild name:

sys-cluster/virtctl-1.8.0-r1

Description

Control virtual machine related operations on your kubernetes cluster

Added to portage

2026-03-28

xfce4-appfinder - 4.21.1
Ebuild name:

xfce-base/xfce4-appfinder-4.21.1

Description

A tool to find and launch installed applications for the Xfce desk

Added to portage

2026-03-28

xmrig - 6.26.0
Ebuild name:

net-misc/xmrig-6.26.0

Description

RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner

Added to portage

2026-03-28

zxcvbn-c - 2.6
Ebuild name:

dev-libs/zxcvbn-c-2.6

Description

C/C++ version of the zxcvbn password strength estimator

Added to portage

2026-03-28

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