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:

82682

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-01
arti - 1.8.0
Ebuild name:

net-p2p/arti-1.8.0

Description

Implementation of Tor in Rust

Added to portage

2026-01-01

fonttosfnt - 1.2.5
Ebuild name:

x11-apps/fonttosfnt-1.2.5

Description

X.Org fonttosfnt application

Added to portage

2026-01-01

gnatformat - 26.0.0
Ebuild name:

dev-ada/gnatformat-26.0.0

Description

Opinionated code formatter for the Ada language

Added to portage

2026-01-01

libsdl2 - 2.32.62
Ebuild name:

media-libs/libsdl2-2.32.62

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libsdl3 - 3.2.30
Ebuild name:

media-libs/libsdl3-3.2.30

Description

Simple Direct Media Layer

Added to portage

2026-01-01

libsdl3 - 3.4.0
Ebuild name:

media-libs/libsdl3-3.4.0

Description

Simple Direct Media Layer

Added to portage

2026-01-01

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

media-libs/libva-intel-media-driver-25.4.6

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2026-01-01

lidarr-bin - 3.1.1.4900
Ebuild name:

www-apps/lidarr-bin-3.1.1.4900

Description

Looks and smells like Sonarr but made for music

Added to portage

2026-01-01

package-build - 4.0.0
Ebuild name:

app-emacs/package-build-4.0.0

Description

Tools for assembling a package archive

Added to portage

2026-01-01

pymdown-extensions - 10.20
Ebuild name:

dev-python/pymdown-extensions-10.20

Description

Extensions for Python Markdown

Added to portage

2026-01-01

python-gnupg - 0.5.6
Ebuild name:

dev-python/python-gnupg-0.5.6

Description

A Python wrapper for GnuPG

Added to portage

2026-01-01

radarr-bin - 6.1.0.10316
Ebuild name:

www-apps/radarr-bin-6.1.0.10316

Description

A fork of Sonarr to work with movies a la Couchpotato

Added to portage

2026-01-01

rgb - 1.1.1
Ebuild name:

x11-apps/rgb-1.1.1

Description

uncompile an rgb color-name database

Added to portage

2026-01-01

ruamel-yaml - 0.19.0
Ebuild name:

dev-python/ruamel-yaml-0.19.0

Description

YAML parser/emitter that supports roundtrip comment preservation

Added to portage

2026-01-01

socket-burst-dampener - 1.3.4
Ebuild name:

net-misc/socket-burst-dampener-1.3.4

Description

A daemon that spawns one command per connection, and dampens c

Added to portage

2026-01-01

sphinx - 9.1.0
Ebuild name:

dev-python/sphinx-9.1.0

Description

Python documentation generator

Added to portage

2026-01-01

tlfloat - 1.17.1_p20250711
Ebuild name:

dev-cpp/tlfloat-1.17.1_p20250711

Description

C++ template library for floating point operations

Added to portage

2026-01-01

ty - 0.0.7
Ebuild name:

dev-util/ty-0.0.7

Description

An extremely fast Python type checker and language server, written in Rust

Added to portage

2026-01-01

xauth - 1.1.5
Ebuild name:

x11-apps/xauth-1.1.5

Description

X authority file utility

Added to portage

2026-01-01

2025-12-31
action_text-trix - 2.1.16
Ebuild name:

dev-ruby/action_text-trix-2.1.16

Description

A rich text editor for everyday writing

Added to portage

2025-12-31

amq-protocol - 2.4.0
Ebuild name:

dev-ruby/amq-protocol-2.4.0

Description

An AMQP 0.9.1 serialization library for Ruby

Added to portage

2025-12-31

aws-partitions - 1.1200.0
Ebuild name:

dev-ruby/aws-partitions-1.1200.0

Description

Provides interfaces to enumerate AWS partitions, regions, and serv

Added to portage

2025-12-31

awscli - 1.44.9
Ebuild name:

app-admin/awscli-1.44.9

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-31

botan - 3.10.0
Ebuild name:

dev-libs/botan-3.10.0

Description

C++ crypto library

Added to portage

2025-12-31

boto3 - 1.42.19
Ebuild name:

dev-python/boto3-1.42.19

Description

The AWS SDK for Python

Added to portage

2025-12-31

botocore - 1.42.19
Ebuild name:

dev-python/botocore-1.42.19

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-31

cbor2 - 5.8.0
Ebuild name:

dev-python/cbor2-5.8.0

Description

Pure Python CBOR (de)serializer with extensive tag support

Added to portage

2025-12-31

color - 2.1.2
Ebuild name:

dev-ruby/color-2.1.2

Description

Colour management with Ruby

Added to portage

2025-12-31

dnscrypt-proxy - 2.1.15
Ebuild name:

net-dns/dnscrypt-proxy-2.1.15

Description

Flexible DNS proxy, with support for encrypted DNS protocols

Added to portage

2025-12-31

duplicity - 3.0.7
Ebuild name:

app-backup/duplicity-3.0.7

Description

Secure backup system using gnupg to encrypt data

Added to portage

2025-12-31

ebuild-mode - 1.80
Ebuild name:

app-xemacs/ebuild-mode-1.80

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2025-12-31

ergo - 2.17.0
Ebuild name:

net-irc/ergo-2.17.0

Description

A modern IRC server written in Go

Added to portage

2025-12-31

fish - 4.3.0
Ebuild name:

app-shells/fish-4.3.0

Description

Friendly Interactive SHell

Added to portage

2025-12-31

freepg - 2.5.16
Ebuild name:

app-crypt/freepg-2.5.16

Description

Cross-distro GnuPG fork focused on OpenPGP compliance

Added to portage

2025-12-31

gentoo-sources - 6.18.2-r1
Ebuild name:

sys-kernel/gentoo-sources-6.18.2-r1

Description

Full sources including the Gentoo patchset for the . kernel tre

Added to portage

2025-12-31

gnupg - 2.5.16-r1
Ebuild name:

app-crypt/gnupg-2.5.16-r1

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2025-12-31

gpxsee - 15.7
Ebuild name:

sci-geosciences/gpxsee-15.7

Description

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

Added to portage

2025-12-31

grub - 2.12-r10
Ebuild name:

sys-boot/grub-2.12-r10

Description

GNU GRUB boot loader

Added to portage

2025-12-31

kryoflux-dtc - 3.50_p4
Ebuild name:

app-misc/kryoflux-dtc-3.50_p4

Description

KryoFlux Host Software

Added to portage

2025-12-31

libcamera - 0.6.0-r1
Ebuild name:

media-libs/libcamera-0.6.0-r1

Description

Complex camera support library

Added to portage

2025-12-31

libgpg-error - 1.58
Ebuild name:

dev-libs/libgpg-error-1.58

Description

Contains error handling functions used by GnuPG software

Added to portage

2025-12-31

librtas - 2.0.6
Ebuild name:

sys-libs/librtas-2.0.6

Description

A set of libraries for userspace access to RTAS on the PowerPC platform(s)

Added to portage

2025-12-31

linux-headers - 6.18
Ebuild name:

sys-kernel/linux-headers-6.18

Description

Added to portage

2025-12-31

mbuffer - 20251025
Ebuild name:

sys-block/mbuffer-20251025

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2025-12-31

memory-allocator - 0.2.0
Ebuild name:

dev-python/memory-allocator-0.2.0

Description

An extension class for memory allocation in cython

Added to portage

2025-12-31

mkmf-lite - 0.7.5
Ebuild name:

dev-ruby/mkmf-lite-0.7.5

Description

light version of the the mkmf library designed for use as a library

Added to portage

2025-12-31

nawk - 20251225
Ebuild name:

sys-apps/nawk-20251225

Description

Brian Kernighan's pattern scanning and processing language

Added to portage

2025-12-31

net-http-persistent - 4.0.8
Ebuild name:

dev-ruby/net-http-persistent-4.0.8

Description

Manages persistent connections using Net plus a speed fix for Ru

Added to portage

2025-12-31

package-lint - 0.26
Ebuild name:

app-emacs/package-lint-0.26

Description

Linting library for Emacs Lisp package metadata

Added to portage

2025-12-31

pandoc-mode - 2.35
Ebuild name:

app-emacs/pandoc-mode-2.35

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2025-12-31

pandoc-mode - 2.90.2
Ebuild name:

app-emacs/pandoc-mode-2.90.2

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2025-12-31

paredit - 26-r1
Ebuild name:

app-emacs/paredit-26-r1

Description

Minor mode for performing structured editing of S-expressions

Added to portage

2025-12-31

pg - 1.6.3
Ebuild name:

dev-ruby/pg-1.6.3

Description

Ruby extension library providing an API to PostgreSQL

Added to portage

2025-12-31

picard - 3.0_pre20251230
Ebuild name:

media-sound/picard-3.0_pre20251230

Description

Cross-platform music tagger

Added to portage

2025-12-31

pipewire - 1.4.9-r2
Ebuild name:

media-video/pipewire-1.4.9-r2

Description

Multimedia processing graphs

Added to portage

2025-12-31

piwigo - 16.2.0
Ebuild name:

www-apps/piwigo-16.2.0

Description

a photo gallery software for the web

Added to portage

2025-12-31

process_executer - 4.0.1
Ebuild name:

dev-ruby/process_executer-4.0.1

Description

An API for executing commands in a subprocess

Added to portage

2025-12-31

pytest-reserial - 0.6.1
Ebuild name:

dev-python/pytest-reserial-0.6.1

Description

Pytest plugin for recording and replaying serial port traffic duri

Added to portage

2025-12-31

pythia - 8.3.16-r1
Ebuild name:

sci-physics/pythia-8.3.16-r1

Description

Lund Monte Carlo high-energy physics event generator

Added to portage

2025-12-31

python-gnupg - 0.5.5-r2
Ebuild name:

dev-python/python-gnupg-0.5.5-r2

Description

A Python wrapper for GnuPG

Added to portage

2025-12-31

qemu - 10.2.0
Ebuild name:

app-emulation/qemu-10.2.0

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2025-12-31

reaper-bin - 7.57
Ebuild name:

media-sound/reaper-bin-7.57

Description

Digital audio workstation

Added to portage

2025-12-31

rivet - 3.1.11-r1
Ebuild name:

sci-physics/rivet-3.1.11-r1

Description

Robust Independent Validation of Experiment and Theory toolkit

Added to portage

2025-12-31

ruby - 4.0.0
Ebuild name:

dev-lang/ruby-4.0.0

Description

An object-oriented scripting language

Added to portage

2025-12-31

ruby-ssl - 16
Ebuild name:

virtual/ruby-ssl-16

Description

Virtual ebuild for the Ruby OpenSSL bindings

Added to portage

2025-12-31

rubygems - 22
Ebuild name:

virtual/rubygems-22

Description

Virtual ebuild for rubygems

Added to portage

2025-12-31

sbcl - 2.6.0
Ebuild name:

dev-lisp/sbcl-2.6.0

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2025-12-31

scipy - 1.17.0_rc2
Ebuild name:

dev-python/scipy-1.17.0_rc2

Description

Scientific algorithms library for Python

Added to portage

2025-12-31

simple-rss - 2.1.0
Ebuild name:

dev-ruby/simple-rss-2.1.0

Description

A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby

Added to portage

2025-12-31

sleef - 3.9.0
Ebuild name:

dev-libs/sleef-3.9.0

Description

Implements vectorized versions of C standard math functions

Added to portage

2025-12-31

starship - 1.24.2
Ebuild name:

app-shells/starship-1.24.2

Description

The minimal, blazing-fast, and infinitely customizable prompt for any sh

Added to portage

2025-12-31

steve - 1.4.0
Ebuild name:

dev-build/steve-1.4.0

Description

A load-balancing jobserver for Gentoo

Added to portage

2025-12-31

supertux - 0.7.0_beta1
Ebuild name:

games-arcade/supertux-0.7.0_beta1

Description

A run n' jump platforming game featuring Tux the penguin

Added to portage

2025-12-31

supertux - 9999
Ebuild name:

games-arcade/supertux-9999

Description

A run n' jump platforming game featuring Tux the penguin

Added to portage

2025-12-31

tesseract - 5.5.2
Ebuild name:

app-text/tesseract-5.5.2

Description

An OCR Engine, originally developed at HP, now open source

Added to portage

2025-12-31

thepeg - 2.3.0-r4
Ebuild name:

sci-physics/thepeg-2.3.0-r4

Description

Toolkit for High Energy Physics Event Generation

Added to portage

2025-12-31

types-psutil - 7.2.1.20251231
Ebuild name:

dev-python/types-psutil-7.2.1.20251231

Description

Typing stubs for psutil

Added to portage

2025-12-31

uchmviewer - 8.5
Ebuild name:

app-text/uchmviewer-8.5

Description

Feature rich chm file viewer, based on Qt

Added to portage

2025-12-31

uv - 0.9.21
Ebuild name:

dev-python/uv-0.9.21

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-12-31

uv-build - 0.9.21
Ebuild name:

dev-python/uv-build-0.9.21

Description

PEP517 uv build backend

Added to portage

2025-12-31

wine-mono - 10.4.1
Ebuild name:

app-emulation/wine-mono-10.4.1

Description

Replacement for the .NET runtime and class libraries in Wine

Added to portage

2025-12-31

xfsprogs - 6.18.0
Ebuild name:

sys-fs/xfsprogs-6.18.0

Description

XFS filesystem utilities

Added to portage

2025-12-31

zoom - 6.7.2.6498
Ebuild name:

net-im/zoom-6.7.2.6498

Description

Video conferencing and web conferencing service

Added to portage

2025-12-31

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