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:

87272

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-07-30
bedrock-server - 1.26.36.1
Ebuild name:

games-server/bedrock-server-1.26.36.1

Description

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

Added to portage

2026-07-30

cri-o - 1.36.1-r1
Ebuild name:

app-containers/cri-o-1.36.1-r1

Description

OCI-based implementation of Kubernetes Container Runtime Interface

Added to portage

2026-07-30

dist-kernel - 6.1.179
Ebuild name:

virtual/dist-kernel-6.1.179

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-30

dist-kernel - 6.12.99
Ebuild name:

virtual/dist-kernel-6.12.99

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-30

dist-kernel - 6.6.146
Ebuild name:

virtual/dist-kernel-6.6.146

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-30

flatpak-builder - 1.4.10-r2
Ebuild name:

dev-util/flatpak-builder-1.4.10-r2

Description

Tool to build flatpaks from source

Added to portage

2026-07-30

gentoo-kernel - 6.1.179
Ebuild name:

sys-kernel/gentoo-kernel-6.1.179

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-30

gentoo-kernel - 6.12.99
Ebuild name:

sys-kernel/gentoo-kernel-6.12.99

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-30

gentoo-kernel - 6.6.146
Ebuild name:

sys-kernel/gentoo-kernel-6.6.146

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-30

gentoo-kernel-bin - 6.1.179
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.179

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-30

gentoo-kernel-bin - 6.12.99
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.99

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-30

gentoo-kernel-bin - 6.6.146
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.146

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-30

gentoo-kernel-modprep - 6.1.179
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.179

Description

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

Added to portage

2026-07-30

gentoo-kernel-modprep - 6.12.99
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.99

Description

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

Added to portage

2026-07-30

gentoo-kernel-modprep - 6.6.146
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.146

Description

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

Added to portage

2026-07-30

huggingface_hub - 1.3.7-r1
Ebuild name:

sci-ml/huggingface_hub-1.3.7-r1

Description

a client library to interact with the Hugging Face Hub

Added to portage

2026-07-30

maildrop - 4.0.4
Ebuild name:

mail-filter/maildrop-4.0.4

Description

Mail delivery agent/filter

Added to portage

2026-07-30

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

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

mkp224o - 1.7.0
Ebuild name:

app-crypt/mkp224o-1.7.0

Description

Vanity address generator for v3 Tor hidden service addresses

Added to portage

2026-07-30

mysqltuner - 2.9.1
Ebuild name:

dev-db/mysqltuner-2.9.1

Description

Makes recommendations for increased performance and stability for MySQL

Added to portage

2026-07-30

shadow - 4.20.0
Ebuild name:

sys-apps/shadow-4.20.0

Description

Utilities to deal with user accounts

Added to portage

2026-07-30

spectrum2 - 2.2.1_p20260727
Ebuild name:

net-im/spectrum2-2.2.1_p20260727

Description

An open source instant messaging transport

Added to portage

2026-07-30

tumbler - 4.20.2
Ebuild name:

xfce-base/tumbler-4.20.2

Description

A thumbnail service for Thunar

Added to portage

2026-07-30

vanilla-kernel - 6.1.179
Ebuild name:

sys-kernel/vanilla-kernel-6.1.179

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-30

vanilla-kernel - 6.12.99
Ebuild name:

sys-kernel/vanilla-kernel-6.12.99

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-30

vanilla-kernel - 6.6.146
Ebuild name:

sys-kernel/vanilla-kernel-6.6.146

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-30

xfce4-power-manager - 4.20.1
Ebuild name:

xfce-base/xfce4-power-manager-4.20.1

Description

Power manager for the Xfce desktop environment

Added to portage

2026-07-30

xfce4-settings - 4.20.5
Ebuild name:

xfce-base/xfce4-settings-4.20.5

Description

Configuration system for the Xfce desktop environment

Added to portage

2026-07-30

2026-07-29
annotated-doc - 0.0.5
Ebuild name:

dev-python/annotated-doc-0.0.5

Description

Document parameters, variables inline, with Annotated

Added to portage

2026-07-29

awkward - 2.12.0
Ebuild name:

dev-python/awkward-2.12.0

Description

Manipulate JSON-like data with NumPy-like idioms

Added to portage

2026-07-29

awkward-cpp - 55
Ebuild name:

dev-python/awkward-cpp-55

Description

CPU kernels and compiled extensions for Awkward Array

Added to portage

2026-07-29

awscli - 1.45.58
Ebuild name:

app-admin/awscli-1.45.58

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-29

b2 - 5.5.3
Ebuild name:

dev-build/b2-5.5.3

Description

A system for large project software construction, simple to use and powerful

Added to portage

2026-07-29

borgbackup - 1.4.5
Ebuild name:

app-backup/borgbackup-1.4.5

Description

Deduplicating backup program with compression and authenticated encrypt

Added to portage

2026-07-29

boto3 - 1.43.58
Ebuild name:

dev-python/boto3-1.43.58

Description

The AWS SDK for Python

Added to portage

2026-07-29

botocore - 1.43.58
Ebuild name:

dev-python/botocore-1.43.58

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-29

catch - 3.15.3
Ebuild name:

dev-cpp/catch-3.15.3

Description

Modern C++ header-only framework for unit-tests

Added to portage

2026-07-29

cfn-lint - 1.53.3
Ebuild name:

dev-python/cfn-lint-1.53.3

Description

CloudFormation Linter

Added to portage

2026-07-29

clang - 23.1.0_rc2
Ebuild name:

dev-python/clang-23.1.0_rc2

Description

Python bindings for llvm-core/clang

Added to portage

2026-07-29

clang - 23.1.0_rc2
Ebuild name:

llvm-core/clang-23.1.0_rc2

Description

C language family frontend for LLVM

Added to portage

2026-07-29

clang-common - 23.1.0_rc2
Ebuild name:

llvm-core/clang-common-23.1.0_rc2

Description

Common files shared between multiple slots of clang

Added to portage

2026-07-29

compiler-rt - 23.1.0_rc2
Ebuild name:

llvm-runtimes/compiler-rt-23.1.0_rc2

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-07-29

compiler-rt-sanitizers - 23.1.0_rc2
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-23.1.0_rc2

Description

Compiler runtime libraries for clang (sanitizers &

Added to portage

2026-07-29

cproto - 4.8a
Ebuild name:

dev-util/cproto-4.8a

Description

Generate C function prototypes from C source code

Added to portage

2026-07-29

duckdb - 1.5.5
Ebuild name:

dev-db/duckdb-1.5.5

Description

high-performance analytical database system

Added to portage

2026-07-29

exim - 4.99.5
Ebuild name:

mail-mta/exim-4.99.5

Description

A highly configurable, drop-in replacement for sendmail

Added to portage

2026-07-29

fastapi - 0.140.13
Ebuild name:

dev-python/fastapi-0.140.13

Description

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

Added to portage

2026-07-29

firefox - 153.0.1
Ebuild name:

www-client/firefox-153.0.1

Description

Firefox Web Browser

Added to portage

2026-07-29

firefox-bin - 153.0.1
Ebuild name:

www-client/firefox-bin-153.0.1

Description

Firefox Web Browser

Added to portage

2026-07-29

firefox-l10n - 153.0.1
Ebuild name:

www-client/firefox-l10n-153.0.1

Description

Firefox Web Browser's translation files

Added to portage

2026-07-29

flang - 23.1.0_rc2
Ebuild name:

llvm-core/flang-23.1.0_rc2

Description

LLVM's Fortran frontend

Added to portage

2026-07-29

flang-rt - 23.1.0_rc2
Ebuild name:

llvm-runtimes/flang-rt-23.1.0_rc2

Description

LLVM's Fortran runtime

Added to portage

2026-07-29

fsspec - 2026.7.0
Ebuild name:

dev-python/fsspec-2026.7.0

Description

A specification that python filesystems should adhere to

Added to portage

2026-07-29

gentoo-sources - 6.1.179
Ebuild name:

sys-kernel/gentoo-sources-6.1.179

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-29

gentoo-sources - 6.12.99
Ebuild name:

sys-kernel/gentoo-sources-6.12.99

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-29

gentoo-sources - 6.6.146
Ebuild name:

sys-kernel/gentoo-sources-6.6.146

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-29

ggml - 0.17.0-r1
Ebuild name:

sci-ml/ggml-0.17.0-r1

Description

Tensor library for machine learning

Added to portage

2026-07-29

gnuradio - 3.11_pre20260615-r1
Ebuild name:

net-wireless/gnuradio-3.11_pre20260615-r1

Description

Toolkit that provides signal processing blocks to impleme

Added to portage

2026-07-29

graphviz - 15.1.0
Ebuild name:

media-gfx/graphviz-15.1.0

Description

Open Source Graph Visualization Software

Added to portage

2026-07-29

hypothesis - 6.163.0
Ebuild name:

dev-python/hypothesis-6.163.0

Description

A library for property based testing

Added to portage

2026-07-29

jansson - 2.15.1
Ebuild name:

dev-libs/jansson-2.15.1

Description

C library for encoding, decoding and manipulating JSON data

Added to portage

2026-07-29

kirigami-app-components - 1.0.2
Ebuild name:

dev-libs/kirigami-app-components-1.0.2

Description

Kirigami addons and modules necessary to do a full featured

Added to portage

2026-07-29

knot-resolver - 5.7.7-r1
Ebuild name:

net-dns/knot-resolver-5.7.7-r1

Description

A scaleable caching DNS resolver

Added to portage

2026-07-29

knot-resolver - 6.4.1-r1
Ebuild name:

net-dns/knot-resolver-6.4.1-r1

Description

Scaleable caching DNS resolver

Added to portage

2026-07-29

libarchive - 3.8.9
Ebuild name:

app-arch/libarchive-3.8.9

Description

Multi-format archive and compression library

Added to portage

2026-07-29

libclc - 23.1.0_rc2
Ebuild name:

llvm-runtimes/libclc-23.1.0_rc2

Description

OpenCL C library

Added to portage

2026-07-29

libcxx - 23.1.0_rc2
Ebuild name:

llvm-runtimes/libcxx-23.1.0_rc2

Description

New implementation of the C++ standard library, targeting C++11

Added to portage

2026-07-29

libcxxabi - 23.1.0_rc2
Ebuild name:

llvm-runtimes/libcxxabi-23.1.0_rc2

Description

Low level support for a standard C++ library

Added to portage

2026-07-29

libgcc - 23.1.0_rc2
Ebuild name:

llvm-runtimes/libgcc-23.1.0_rc2

Description

Compiler runtime library for clang, compatible with libgcc_s

Added to portage

2026-07-29

libheif - 1.23.1
Ebuild name:

media-libs/libheif-1.23.1

Description

ISO/IEC 23008-12 HEIF file format decoder and encoder

Added to portage

2026-07-29

libunwind - 23.1.0_rc2
Ebuild name:

llvm-runtimes/libunwind-23.1.0_rc2

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-07-29

lit - 23.1.0_rc2
Ebuild name:

dev-python/lit-23.1.0_rc2

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-07-29

lld - 23.1.0_rc2
Ebuild name:

llvm-core/lld-23.1.0_rc2

Description

The LLVM linker (link editor)

Added to portage

2026-07-29

lldb - 23.1.0_rc2
Ebuild name:

llvm-core/lldb-23.1.0_rc2

Description

The LLVM debugger

Added to portage

2026-07-29

llvm - 23.1.0_rc2
Ebuild name:

dev-ml/llvm-23.1.0_rc2

Description

OCaml bindings for LLVM

Added to portage

2026-07-29

llvm - 23.1.0_rc2
Ebuild name:

llvm-core/llvm-23.1.0_rc2

Description

Low Level Virtual Machine

Added to portage

2026-07-29

llvm-common - 23.1.0_rc2
Ebuild name:

llvm-core/llvm-common-23.1.0_rc2

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-07-29

meson-mode - 0.4
Ebuild name:

app-emacs/meson-mode-0.4

Description

A GNU Emacs major mode for Meson build-system files

Added to portage

2026-07-29

mlir - 23.1.0_rc2
Ebuild name:

llvm-core/mlir-23.1.0_rc2

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-07-29

ollama - 0.32.4-r1
Ebuild name:

sci-ml/ollama-0.32.4-r1

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models

Added to portage

2026-07-29

openmp - 23.1.0_rc2
Ebuild name:

llvm-runtimes/openmp-23.1.0_rc2

Description

OpenMP runtime libraries for LLVM/clang compiler

Added to portage

2026-07-29

openmp-amdgcn-amd-amdhsa - 23.1.0_rc2
Ebuild name:

llvm-runtimes/openmp-amdgcn-amd-amdhsa-23.1.0_rc2

Description

OpenMP target library for amdgcn devices

Added to portage

2026-07-29

openmp-nvptx64-nvidia-cuda - 23.1.0_rc2
Ebuild name:

llvm-runtimes/openmp-nvptx64-nvidia-cuda-23.1.0_rc2

Description

OpenMP target library for nvptx64 devices

Added to portage

2026-07-29

openmp-spirv64-intel - 23.1.0_rc2
Ebuild name:

llvm-runtimes/openmp-spirv64-intel-23.1.0_rc2

Description

OpenMP target library for spirv64 Intel devices

Added to portage

2026-07-29

openpgp-keys-unrealircd - 20241118
Ebuild name:

sec-keys/openpgp-keys-unrealircd-20241118

Description

OpenPGP keys used to sign UnrealIRCd releases

Added to portage

2026-07-29

pbs-installer - 2026.7.28
Ebuild name:

dev-python/pbs-installer-2026.7.28

Description

Installer for Python Build Standalone

Added to portage

2026-07-29

polly - 23.1.0_rc2
Ebuild name:

llvm-core/polly-23.1.0_rc2

Description

Polyhedral optimizations for LLVM

Added to portage

2026-07-29

pypi-attestations - 0.0.30
Ebuild name:

dev-python/pypi-attestations-0.0.30

Description

Convert between Sigstore Bundles and PEP-740 Attestation object

Added to portage

2026-07-29

pyshp - 3.1.6
Ebuild name:

sci-libs/pyshp-3.1.6

Description

Pure Python read/write support for ESRI Shapefile format

Added to portage

2026-07-29

pyzotero - 1.13.3
Ebuild name:

dev-python/pyzotero-1.13.3

Description

A Python client for the Zotero API

Added to portage

2026-07-29

sigstore - 4.5.0
Ebuild name:

dev-python/sigstore-4.5.0

Description

A tool for signing Python package distributions

Added to portage

2026-07-29

stalwart-cli - 1.0.12
Ebuild name:

net-mail/stalwart-cli-1.0.12

Description

Stalwart Mail Server command line utility

Added to portage

2026-07-29

stalwart-mail - 0.16.15
Ebuild name:

net-mail/stalwart-mail-0.16.15

Description

Stalwart Mail Server

Added to portage

2026-07-29

thunderbird - 153.0.1
Ebuild name:

mail-client/thunderbird-153.0.1

Description

Thunderbird Mail Client

Added to portage

2026-07-29

thunderbird-bin - 153.0.1
Ebuild name:

mail-client/thunderbird-bin-153.0.1

Description

Thunderbird Mail Client

Added to portage

2026-07-29

thunderbird-l10n - 153.0.1
Ebuild name:

mail-client/thunderbird-l10n-153.0.1

Description

Thunderbird mail client's translation files

Added to portage

2026-07-29

unicode-segmentation-rs - 0.3.1
Ebuild name:

dev-python/unicode-segmentation-rs-0.3.1

Description

Unicode segmentation and width for Python using Rust

Added to portage

2026-07-29

unrealircd - 6.2.6
Ebuild name:

net-irc/unrealircd-6.2.6

Description

An advanced Internet Relay Chat daemon

Added to portage

2026-07-29

uv - 0.11.33
Ebuild name:

dev-python/uv-0.11.33

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-07-29

uv - 0.12.0
Ebuild name:

dev-python/uv-0.12.0

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-07-29

uv-build - 0.11.33
Ebuild name:

dev-python/uv-build-0.11.33

Description

PEP517 uv build backend

Added to portage

2026-07-29

uv-build - 0.12.0
Ebuild name:

dev-python/uv-build-0.12.0

Description

PEP517 uv build backend

Added to portage

2026-07-29

vanilla-sources - 6.1.179
Ebuild name:

sys-kernel/vanilla-sources-6.1.179

Description

Full sources for the Linux kernel

Added to portage

2026-07-29

vanilla-sources - 6.12.99
Ebuild name:

sys-kernel/vanilla-sources-6.12.99

Description

Full sources for the Linux kernel

Added to portage

2026-07-29

vanilla-sources - 6.6.146
Ebuild name:

sys-kernel/vanilla-sources-6.6.146

Description

Full sources for the Linux kernel

Added to portage

2026-07-29

vcs-versioning - 2.2.3
Ebuild name:

dev-python/vcs-versioning-2.2.3

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-07-29

vopono - 0.10.19
Ebuild name:

net-vpn/vopono-0.10.19

Description

Launch applications via VPN tunnels using temporary network namespaces

Added to portage

2026-07-29

xfce4-panel - 4.20.8
Ebuild name:

xfce-base/xfce4-panel-4.20.8

Description

Panel for the Xfce desktop environment

Added to portage

2026-07-29

yara - 4.5.8
Ebuild name:

app-forensics/yara-4.5.8

Description

A malware identification and classification tool

Added to portage

2026-07-29

zeal - 0.9.1
Ebuild name:

app-text/zeal-0.9.1

Description

Offline documentation browser inspired by Dash

Added to portage

2026-07-29

zen-sources - 7.1.5
Ebuild name:

sys-kernel/zen-sources-7.1.5

Description

The Zen Kernel Live Sources

Added to portage

2026-07-29

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