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:

88381

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-09-15
anydesk - 8.0.4-r1
Ebuild name:

net-misc/anydesk-8.0.4-r1

Description

Feature rich multi-platform remote desktop application

Added to portage

2026-09-15

bgpq4 - 1.16
Ebuild name:

net-misc/bgpq4-1.16

Description

Generate access-lists for various routers, maintained fork of bgpq3

Added to portage

2026-09-15

claude-code - 2.1.270
Ebuild name:

dev-util/claude-code-2.1.270

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-09-15

firefox - 156.0
Ebuild name:

www-client/firefox-156.0

Description

Firefox Web Browser

Added to portage

2026-09-15

firefox-l10n - 156.0
Ebuild name:

www-client/firefox-l10n-156.0

Description

Firefox Web Browser's translation files

Added to portage

2026-09-15

jinx - 2.8
Ebuild name:

app-emacs/jinx-2.8

Description

Enchanted Spell Checker for GNU Emacs

Added to portage

2026-09-15

jitterentropy-rngd - 1.2.8
Ebuild name:

app-crypt/jitterentropy-rngd-1.2.8

Description

Jitter RNG daemon

Added to portage

2026-09-15

joplin-mode - 202401009.2024
Ebuild name:

app-emacs/joplin-mode-202401009.2024

Description

GNU Emacs client for accessing Joplin notes

Added to portage

2026-09-15

jq-mode - 0.5.0_p20220610
Ebuild name:

app-emacs/jq-mode-0.5.0_p20220610

Description

Emacs major mode for editing jq queries

Added to portage

2026-09-15

liburing - 2.15
Ebuild name:

sys-libs/liburing-2.15

Description

Efficient I/O with io_uring

Added to portage

2026-09-15

mariadb-connector-odbc - 3.1.23
Ebuild name:

dev-db/mariadb-connector-odbc-3.1.23

Description

MariaDB Connector/ODBC

Added to portage

2026-09-15

mariadb-connector-odbc - 3.2.9
Ebuild name:

dev-db/mariadb-connector-odbc-3.2.9

Description

MariaDB Connector/ODBC

Added to portage

2026-09-15

mattermost-desktop-bin - 6.2.4_rc1
Ebuild name:

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

Description

Mattermost Desktop application

Added to portage

2026-09-15

mattermost-desktop-bin - 6.3.1_rc1
Ebuild name:

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

Description

Mattermost Desktop application

Added to portage

2026-09-15

nfft - 3.5.3-r1
Ebuild name:

sci-libs/nfft-3.5.3-r1

Description

library for nonequispaced discrete Fourier transformations

Added to portage

2026-09-15

winbox - 4.4
Ebuild name:

app-admin/winbox-4.4

Description

Management Software for MikroTik RouterOS

Added to portage

2026-09-15

2026-09-14
ardour - 9.8.0
Ebuild name:

media-sound/ardour-9.8.0

Description

Digital Audio Workstation

Added to portage

2026-09-14

ast-serialize - 0.11.2
Ebuild name:

dev-python/ast-serialize-0.11.2

Description

Python bindings for mypy AST serialization

Added to portage

2026-09-14

asterisk-g729 - 20.0.3.1.12
Ebuild name:

net-misc/asterisk-g729-20.0.3.1.12

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-09-14

asterisk-g729 - 21.0.3.1.12
Ebuild name:

net-misc/asterisk-g729-21.0.3.1.12

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-09-14

asterisk-g729 - 22.0.3.1.12
Ebuild name:

net-misc/asterisk-g729-22.0.3.1.12

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-09-14

asterisk-g729 - 23.0.3.1.12
Ebuild name:

net-misc/asterisk-g729-23.0.3.1.12

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-09-14

asterisk-opus - 23.0.1.3.0
Ebuild name:

net-misc/asterisk-opus-23.0.1.3.0

Description

OPUS codec and supporting files for asterisk

Added to portage

2026-09-14

atari800 - 7.2.1
Ebuild name:

games-emulation/atari800-7.2.1

Description

Emulator of Atari 8-bit computer systems and 5200 game console

Added to portage

2026-09-14

aws-c-s3 - 1.1.1-r1
Ebuild name:

dev-libs/aws-c-s3-1.1.1-r1

Description

AWS C S3 async library

Added to portage

2026-09-14

bcachefs-tools - 1.39.6
Ebuild name:

sys-fs/bcachefs-tools-1.39.6

Description

Tools for bcachefs

Added to portage

2026-09-14

ceph - 20.2.1-r5
Ebuild name:

sys-cluster/ceph-20.2.1-r5

Description

Ceph distributed filesystem

Added to portage

2026-09-14

ceph - 20.2.4-r1
Ebuild name:

sys-cluster/ceph-20.2.4-r1

Description

Ceph distributed filesystem

Added to portage

2026-09-14

coverage - 7.16.1
Ebuild name:

dev-python/coverage-7.16.1

Description

Code coverage measurement for Python

Added to portage

2026-09-14

dist-kernel - 6.1.188
Ebuild name:

virtual/dist-kernel-6.1.188

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-14

dist-kernel - 6.12.110
Ebuild name:

virtual/dist-kernel-6.12.110

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-14

dist-kernel - 6.18.52
Ebuild name:

virtual/dist-kernel-6.18.52

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-14

dist-kernel - 6.6.157
Ebuild name:

virtual/dist-kernel-6.6.157

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-14

dist-kernel - 7.2.6
Ebuild name:

virtual/dist-kernel-7.2.6

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-14

firefox-bin - 156.0
Ebuild name:

www-client/firefox-bin-156.0

Description

Firefox Web Browser

Added to portage

2026-09-14

gcc - 17.0.0_p20260913
Ebuild name:

sys-devel/gcc-17.0.0_p20260913

Description

The GNU Compiler Collection

Added to portage

2026-09-14

gentoo-kernel - 6.1.188
Ebuild name:

sys-kernel/gentoo-kernel-6.1.188

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel - 6.12.110
Ebuild name:

sys-kernel/gentoo-kernel-6.12.110

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel - 6.18.52
Ebuild name:

sys-kernel/gentoo-kernel-6.18.52

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel - 6.6.157
Ebuild name:

sys-kernel/gentoo-kernel-6.6.157

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel - 7.2.6
Ebuild name:

sys-kernel/gentoo-kernel-7.2.6

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel-bin - 6.1.188
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.188

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel-bin - 6.12.110
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.110

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel-bin - 6.18.52
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.52

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel-bin - 6.6.157
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.157

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel-bin - 7.2.6
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.6

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-14

gentoo-kernel-modprep - 6.1.188
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.188

Description

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

Added to portage

2026-09-14

gentoo-kernel-modprep - 6.12.110
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.110

Description

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

Added to portage

2026-09-14

gentoo-kernel-modprep - 6.18.52
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.52

Description

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

Added to portage

2026-09-14

gentoo-kernel-modprep - 6.6.157
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.157

Description

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

Added to portage

2026-09-14

gentoo-kernel-modprep - 7.2.6
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.6

Description

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

Added to portage

2026-09-14

gentoo-sources - 6.1.188
Ebuild name:

sys-kernel/gentoo-sources-6.1.188

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-14

gentoo-sources - 6.12.110
Ebuild name:

sys-kernel/gentoo-sources-6.12.110

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-14

gentoo-sources - 6.18.52
Ebuild name:

sys-kernel/gentoo-sources-6.18.52

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-14

gentoo-sources - 6.6.157
Ebuild name:

sys-kernel/gentoo-sources-6.6.157

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-14

gentoo-sources - 7.2.6
Ebuild name:

sys-kernel/gentoo-sources-7.2.6

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-14

git-sources - 7.3_rc3
Ebuild name:

sys-kernel/git-sources-7.3_rc3

Description

The very latest -git version of the Linux kernel

Added to portage

2026-09-14

gmmlib - 22.10.2
Ebuild name:

media-libs/gmmlib-22.10.2

Description

Intel Graphics Memory Management Library

Added to portage

2026-09-14

gnome-extra-apps - 48.0-r1
Ebuild name:

gnome-base/gnome-extra-apps-48.0-r1

Description

Sub-meta package for the applications of GNOME

Added to portage

2026-09-14

gnome-photos - 44.0-r1
Ebuild name:

media-gfx/gnome-photos-44.0-r1

Description

Access, organize and share your photos on GNOME

Added to portage

2026-09-14

hip - 7.2.0-r2
Ebuild name:

dev-util/hip-7.2.0-r2

Description

C++ Heterogeneous-Compute Interface for Portability

Added to portage

2026-09-14

js-comint - 1.2.0
Ebuild name:

app-emacs/js-comint-1.2.0

Description

Run a JavaScript interpreter in an Emacs inferior process window

Added to portage

2026-09-14

js2-mode - 20230408
Ebuild name:

app-emacs/js2-mode-20230408

Description

Improved JavaScript editing mode for GNU Emacs

Added to portage

2026-09-14

js2-mode - 20231224
Ebuild name:

app-emacs/js2-mode-20231224

Description

Improved JavaScript editing mode for GNU Emacs

Added to portage

2026-09-14

julia-mode - 0.4_p20211023
Ebuild name:

app-emacs/julia-mode-0.4_p20211023

Description

Emacs major mode for the Julia programming language

Added to portage

2026-09-14

kineto - 0.4.0_p20260805-r1
Ebuild name:

sci-ml/kineto-0.4.0_p20260805-r1

Description

part of the PyTorch Profiler

Added to portage

2026-09-14

libpcap - 1.11.0
Ebuild name:

net-libs/libpcap-1.11.0

Description

System-independent library for user-level network packet capture

Added to portage

2026-09-14

libva-intel-media-driver - 26.3.3
Ebuild name:

media-libs/libva-intel-media-driver-26.3.3

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2026-09-14

merkuro - 26.04.3-r1
Ebuild name:

app-office/merkuro-26.04.3-r1

Description

Calendar application using Akonadi

Added to portage

2026-09-14

merkuro - 26.08.1-r1
Ebuild name:

app-office/merkuro-26.08.1-r1

Description

Calendar application using Akonadi

Added to portage

2026-09-14

moodle - 4.5.14
Ebuild name:

www-apps/moodle-4.5.14

Description

The Moodle Course Management System

Added to portage

2026-09-14

moodle - 5.0.10
Ebuild name:

www-apps/moodle-5.0.10

Description

The Moodle Course Management System

Added to portage

2026-09-14

moodle - 5.2.3
Ebuild name:

www-apps/moodle-5.2.3

Description

The Moodle Course Management System

Added to portage

2026-09-14

mpg123-base - 1.33.7
Ebuild name:

media-sound/mpg123-base-1.33.7

Description

Realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3

Added to portage

2026-09-14

mpg123-output-plugins - 1.33.7
Ebuild name:

media-plugins/mpg123-output-plugins-1.33.7

Description

Plugins for mpg123, the realtime MPEG 1.0/2.0/2.5 audio

Added to portage

2026-09-14

mrouted - 4.7
Ebuild name:

net-misc/mrouted-4.7

Description

IP multicast routing daemon

Added to portage

2026-09-14

opencv - 4.14.0
Ebuild name:

media-libs/opencv-4.14.0

Description

A collection of algorithms and sample code for various computer vision pro

Added to portage

2026-09-14

openpgp-keys-thomasorgis - 20260913
Ebuild name:

sec-keys/openpgp-keys-thomasorgis-20260913

Description

OpenPGP keys used by Thomas Orgis

Added to portage

2026-09-14

openvox - 8.27.0-r1
Ebuild name:

app-admin/openvox-8.27.0-r1

Description

OpenVox agent and apply tools for Puppet-compatible configuration manag

Added to portage

2026-09-14

pandora_box - 0.24.0
Ebuild name:

sys-apps/pandora_box-0.24.0

Description

Syd's log inspector & profile writer

Added to portage

2026-09-14

pdm - 2.29.1
Ebuild name:

dev-python/pdm-2.29.1

Description

Python package and dependency manager supporting the latest PEP standards

Added to portage

2026-09-14

portalocker - 4.3.2
Ebuild name:

dev-python/portalocker-4.3.2

Description

A library for Python file locking

Added to portage

2026-09-14

puppet - 8.10.0-r2
Ebuild name:

app-admin/puppet-8.10.0-r2

Description

A system automation and configuration management software

Added to portage

2026-09-14

quickjs-ng - 0.16.2
Ebuild name:

dev-libs/quickjs-ng-0.16.2

Description

QuickJS, the Next Generation a mighty JavaScript engine

Added to portage

2026-09-14

samba - 4.24.7
Ebuild name:

net-fs/samba-4.24.7

Description

Samba Suite Version 4

Added to portage

2026-09-14

setuptools-scm - 10.3.0
Ebuild name:

dev-python/setuptools-scm-10.3.0

Description

Manage versions by scm tags via setuptools

Added to portage

2026-09-14

spectre-meltdown-checker - 26.36.0913490
Ebuild name:

app-admin/spectre-meltdown-checker-26.36.0913490

Description

Spectre & Meltdown vulnerability/mitigation checke

Added to portage

2026-09-14

spirv-llvm-translator - 17.0.27
Ebuild name:

dev-util/spirv-llvm-translator-17.0.27

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-09-14

spirv-llvm-translator - 18.1.27
Ebuild name:

dev-util/spirv-llvm-translator-18.1.27

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-09-14

spirv-llvm-translator - 19.1.22
Ebuild name:

dev-util/spirv-llvm-translator-19.1.22

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-09-14

spirv-llvm-translator - 20.1.17
Ebuild name:

dev-util/spirv-llvm-translator-20.1.17

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-09-14

spirv-llvm-translator - 21.1.11
Ebuild name:

dev-util/spirv-llvm-translator-21.1.11

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-09-14

spirv-llvm-translator - 22.1.6
Ebuild name:

dev-util/spirv-llvm-translator-22.1.6

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-09-14

spirv-llvm-translator - 23.1.1
Ebuild name:

dev-util/spirv-llvm-translator-23.1.1

Description

Bi-directional translator between SPIR-V and LLVM IR

Added to portage

2026-09-14

syd - 3.59.0
Ebuild name:

sys-apps/syd-3.59.0

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2026-09-14

syrupy - 6.1.1
Ebuild name:

dev-python/syrupy-6.1.1

Description

The sweeter pytest snapshot plugin

Added to portage

2026-09-14

vanilla-kernel - 6.1.188
Ebuild name:

sys-kernel/vanilla-kernel-6.1.188

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-14

vanilla-kernel - 6.12.110
Ebuild name:

sys-kernel/vanilla-kernel-6.12.110

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-14

vanilla-kernel - 6.18.52
Ebuild name:

sys-kernel/vanilla-kernel-6.18.52

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-14

vanilla-kernel - 6.6.157
Ebuild name:

sys-kernel/vanilla-kernel-6.6.157

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-14

vanilla-kernel - 7.2.6
Ebuild name:

sys-kernel/vanilla-kernel-7.2.6

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-14

vanilla-sources - 6.1.188
Ebuild name:

sys-kernel/vanilla-sources-6.1.188

Description

Full sources for the Linux kernel

Added to portage

2026-09-14

vanilla-sources - 6.12.110
Ebuild name:

sys-kernel/vanilla-sources-6.12.110

Description

Full sources for the Linux kernel

Added to portage

2026-09-14

vanilla-sources - 6.18.52
Ebuild name:

sys-kernel/vanilla-sources-6.18.52

Description

Full sources for the Linux kernel

Added to portage

2026-09-14

vanilla-sources - 6.6.157
Ebuild name:

sys-kernel/vanilla-sources-6.6.157

Description

Full sources for the Linux kernel

Added to portage

2026-09-14

vanilla-sources - 7.2.6
Ebuild name:

sys-kernel/vanilla-sources-7.2.6

Description

Full sources for the Linux kernel

Added to portage

2026-09-14

vcs-versioning - 2.4.0
Ebuild name:

dev-python/vcs-versioning-2.4.0

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-09-14

viking - 1.11-r1
Ebuild name:

sci-geosciences/viking-1.11-r1

Description

GPS data editor and analyzer

Added to portage

2026-09-14

xvfbwrapper - 0.2.32
Ebuild name:

dev-python/xvfbwrapper-0.2.32

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-09-14

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