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:

82793

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-12
binary-orphans - 1.0.5
Ebuild name:

dev-haskell/binary-orphans-1.0.5

Description

Compatibility package for binary; provides instances

Added to portage

2026-01-12

bitvec - 1.1.5.0
Ebuild name:

dev-haskell/bitvec-1.1.5.0

Description

Space-efficient bit vectors

Added to portage

2026-01-12

calligraplan - 4.0.1
Ebuild name:

app-office/calligraplan-4.0.1

Description

Project management application

Added to portage

2026-01-12

chell - 0.5.0.2-r1
Ebuild name:

dev-haskell/chell-0.5.0.2-r1

Description

A simple and intuitive library for automated testing

Added to portage

2026-01-12

dalli - 4.0.0
Ebuild name:

dev-ruby/dalli-4.0.0

Description

A high performance pure Ruby client for accessing memcached servers

Added to portage

2026-01-12

darcs - 2.16.5-r6
Ebuild name:

dev-vcs/darcs-2.16.5-r6

Description

a distributed, interactive, smart revision control system

Added to portage

2026-01-12

dulwich - 0.25.2
Ebuild name:

dev-python/dulwich-0.25.2

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-01-12

gcc - 14.3.1_p20260109
Ebuild name:

sys-devel/gcc-14.3.1_p20260109

Description

The GNU Compiler Collection

Added to portage

2026-01-12

gcc - 15.2.1_p20260110
Ebuild name:

sys-devel/gcc-15.2.1_p20260110

Description

The GNU Compiler Collection

Added to portage

2026-01-12

gcc - 16.0.0_p20260111
Ebuild name:

sys-devel/gcc-16.0.0_p20260111

Description

The GNU Compiler Collection

Added to portage

2026-01-12

git - 4.2.0
Ebuild name:

dev-ruby/git-4.2.0

Description

Library for using Git in Ruby

Added to portage

2026-01-12

hishel - 1.1.8
Ebuild name:

dev-python/hishel-1.1.8

Description

An elegant HTTP Cache implementation for HTTPX and HTTP Core

Added to portage

2026-01-12

inkscape - 1.4.3
Ebuild name:

media-gfx/inkscape-1.4.3

Description

SVG based generic vector-drawing program

Added to portage

2026-01-12

kdevelop - 25.12.1-r1
Ebuild name:

dev-util/kdevelop-25.12.1-r1

Description

Integrated Development Environment, supporting KF6/Qt, C/C++ and much

Added to portage

2026-01-12

leancheck - 1.0.4
Ebuild name:

dev-haskell/leancheck-1.0.4

Description

Enumerative property-based testing

Added to portage

2026-01-12

localhost - 1.7.0
Ebuild name:

dev-ruby/localhost-1.7.0

Description

Manage a local CA for self-signed localhost development servers

Added to portage

2026-01-12

onetuple - 0.4.2.1
Ebuild name:

dev-haskell/onetuple-0.4.2.1

Description

Singleton Tuple

Added to portage

2026-01-12

openpgp-keys-gentoo-developers - 20260105
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20260105

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-01-12

pcsx2 - 2.6.2
Ebuild name:

games-emulation/pcsx2-2.6.2

Description

PlayStation 2 emulator

Added to portage

2026-01-12

regex-base - 0.94.0.3
Ebuild name:

dev-haskell/regex-base-0.94.0.3

Description

Common

Added to portage

2026-01-12

regex-posix - 0.96.0.2
Ebuild name:

dev-haskell/regex-posix-0.96.0.2

Description

POSIX Backend for

Added to portage

2026-01-12

regex-tdfa - 1.3.2.5
Ebuild name:

dev-haskell/regex-tdfa-1.3.2.5

Description

Pure Haskell Tagged DFA Backend for

Added to portage

2026-01-12

ruby-cairo-gobject - 4.3.4
Ebuild name:

dev-ruby/ruby-cairo-gobject-4.3.4

Description

Ruby cairo-gobject bindings

Added to portage

2026-01-12

ruby-gio2 - 4.3.4-r1
Ebuild name:

dev-ruby/ruby-gio2-4.3.4-r1

Description

Ruby binding of gio-2

Added to portage

2026-01-12

ruby-glib2 - 4.3.4-r1
Ebuild name:

dev-ruby/ruby-glib2-4.3.4-r1

Description

Ruby Glib2 bindings

Added to portage

2026-01-12

ruby-gobject-introspection - 4.3.4-r1
Ebuild name:

dev-ruby/ruby-gobject-introspection-4.3.4-r1

Description

Ruby GObjectIntrospection bindings

Added to portage

2026-01-12

ruby-poppler - 4.3.4
Ebuild name:

dev-ruby/ruby-poppler-4.3.4

Description

Ruby poppler-glib bindings

Added to portage

2026-01-12

ruff - 0.14.11
Ebuild name:

dev-util/ruff-0.14.11

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-01-12

system-fileio - 0.3.16.7
Ebuild name:

dev-haskell/system-fileio-0.3.16.7

Description

Consistent filesystem interaction across GHC versions (deprecate

Added to portage

2026-01-12

systemd - 259
Ebuild name:

sys-apps/systemd-259

Description

System and service manager for Linux

Added to portage

2026-01-12

telegram-desktop - 6.4.2
Ebuild name:

net-im/telegram-desktop-6.4.2

Description

Official desktop client for Telegram

Added to portage

2026-01-12

telegram-desktop-bin - 6.4.2
Ebuild name:

net-im/telegram-desktop-bin-6.4.2

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-01-12

test-framework - 0.8.2.3
Ebuild name:

dev-haskell/test-framework-0.8.2.3

Description

Framework for running and organising tests, with HUnit and Quick

Added to portage

2026-01-12

test-framework-hunit - 0.3.0.3
Ebuild name:

dev-haskell/test-framework-hunit-0.3.0.3

Description

HUnit support for the test-framework package

Added to portage

2026-01-12

test-framework-leancheck - 0.0.4
Ebuild name:

dev-haskell/test-framework-leancheck-0.0.4

Description

LeanCheck support for test-framework

Added to portage

2026-01-12

test-framework-quickcheck2 - 0.3.0.7
Ebuild name:

dev-haskell/test-framework-quickcheck2-0.3.0.7

Description

QuickCheck-2 support for the test-framework package

Added to portage

2026-01-12

whenever - 0.9.5
Ebuild name:

dev-python/whenever-0.9.5

Description

Modern datetime library for Python

Added to portage

2026-01-12

2026-01-11
aiodns - 4.0.0
Ebuild name:

dev-python/aiodns-4.0.0

Description

Simple DNS resolver for asyncio

Added to portage

2026-01-11

alsa-firmware - 1.2.4-r2
Ebuild name:

sys-firmware/alsa-firmware-1.2.4-r2

Description

Advanced Linux Sound Architecture firmware

Added to portage

2026-01-11

alsa-tools - 1.2.15-r1
Ebuild name:

media-sound/alsa-tools-1.2.15-r1

Description

Advanced Linux Sound Architecture tools

Added to portage

2026-01-11

ansi-terminal - 1.1.5
Ebuild name:

dev-haskell/ansi-terminal-1.1.5

Description

Simple ANSI terminal support

Added to portage

2026-01-11

ansi-terminal-types - 1.1.3
Ebuild name:

dev-haskell/ansi-terminal-types-1.1.3

Description

Types and functions used to represent SGR aspects

Added to portage

2026-01-11

assoc - 1.1.1
Ebuild name:

dev-haskell/assoc-1.1.1

Description

swap and assoc Symmetric and Semigroupy Bifunctors

Added to portage

2026-01-11

bcachefs-kmod - 1.34.0
Ebuild name:

sys-fs/bcachefs-kmod-1.34.0

Description

Linux bcachefs kernel module for sys-fs/bcachefs-tools

Added to portage

2026-01-11

bcachefs-kmod - 9999
Ebuild name:

sys-fs/bcachefs-kmod-9999

Description

Linux bcachefs kernel module for sys-fs/bcachefs-tools

Added to portage

2026-01-11

bifunctors - 5.6.3
Ebuild name:

dev-haskell/bifunctors-5.6.3

Description

Haskell 98 bifunctors, bifoldables and bitraversables

Added to portage

2026-01-11

clock - 0.8.4
Ebuild name:

dev-haskell/clock-0.8.4

Description

High-resolution clock functions monotonic, realtime, cputime

Added to portage

2026-01-11

cmake - 4.2.1-r1
Ebuild name:

dev-build/cmake-4.2.1-r1

Description

Cross platform Make

Added to portage

2026-01-11

comonad - 5.0.10
Ebuild name:

dev-haskell/comonad-5.0.10

Description

Provides comonads, the categorical dual of monads

Added to portage

2026-01-11

cstruct - 6.2
Ebuild name:

dev-python/cstruct-6.2

Description

C-style structs for Python

Added to portage

2026-01-11

cyme - 2.2.10
Ebuild name:

sys-apps/cyme-2.2.10

Description

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

Added to portage

2026-01-11

data-array-byte - 0.1.0.2
Ebuild name:

dev-haskell/data-array-byte-0.1.0.2

Description

Compatibility layer for Data.Array.Byte

Added to portage

2026-01-11

data-fix - 0.3.4
Ebuild name:

dev-haskell/data-fix-0.3.4

Description

Fixpoint data types

Added to portage

2026-01-11

flexmock - 0.13.0
Ebuild name:

dev-python/flexmock-0.13.0

Description

Testing library to create mocks, stubs and fakes

Added to portage

2026-01-11

foldable1-classes-compat - 0.1.3
Ebuild name:

dev-haskell/foldable1-classes-compat-0.1.3

Description

Compatibility package for the Foldable1 and Bifoldable1

Added to portage

2026-01-11

generically - 0.1.1-r2
Ebuild name:

dev-haskell/generically-0.1.1-r2

Description

Generically newtype to use with DerivingVia

Added to portage

2026-01-11

git - 4.1.2
Ebuild name:

dev-ruby/git-4.1.2

Description

Library for using Git in Ruby

Added to portage

2026-01-11

hashable - 1.4.7.0
Ebuild name:

dev-haskell/hashable-1.4.7.0

Description

A class for types that can be converted to a hash value

Added to portage

2026-01-11

indexed-traversable - 0.1.4
Ebuild name:

dev-haskell/indexed-traversable-0.1.4

Description

FunctorWithIndex, FoldableWithIndex, TraversableWithIndex

Added to portage

2026-01-11

indexed-traversable-instances - 0.1.2
Ebuild name:

dev-haskell/indexed-traversable-instances-0.1.2

Description

More instances of FunctorWithIndex, FoldableWithInd

Added to portage

2026-01-11

inspection-testing - 0.6
Ebuild name:

dev-haskell/inspection-testing-0.6

Description

GHC plugin to do inspection testing

Added to portage

2026-01-11

libmateweather - 1.28.1-r2
Ebuild name:

dev-libs/libmateweather-1.28.1-r2

Description

MATE library to access weather information from online services

Added to portage

2026-01-11

linux-firmware - 20251125_p20251229
Ebuild name:

sys-kernel/linux-firmware-20251125_p20251229

Description

Linux firmware files

Added to portage

2026-01-11

mtl - 2.2.2-r2
Ebuild name:

dev-haskell/mtl-2.2.2-r2

Description

Monad classes, using functional dependencies

Added to portage

2026-01-11

mutter - 48.6-r1
Ebuild name:

x11-wm/mutter-48.6-r1

Description

GNOME compositing window manager based on Clutter

Added to portage

2026-01-11

onnx - 1.20.1
Ebuild name:

sci-ml/onnx-1.20.1

Description

Open Neural Network Exchange (ONNX)

Added to portage

2026-01-11

os-string - 2.0.7
Ebuild name:

dev-haskell/os-string-2.0.7

Description

Library for manipulating Operating system strings

Added to portage

2026-01-11

os-string - 2.0.8
Ebuild name:

dev-haskell/os-string-2.0.8

Description

Library for manipulating Operating system strings

Added to portage

2026-01-11

pcre-light - 0.4.1.3
Ebuild name:

dev-haskell/pcre-light-0.4.1.3

Description

Portable regex library for Perl 5 compatible regular expressions

Added to portage

2026-01-11

postfix - 3.12_pre20260110
Ebuild name:

mail-mta/postfix-3.12_pre20260110

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-01-11

qpdf - 12.3.0
Ebuild name:

app-text/qpdf-12.3.0

Description

Command-line tool for structural, content-preserving transformation of PDF fil

Added to portage

2026-01-11

quickcheck - 2.14.3-r1
Ebuild name:

dev-haskell/quickcheck-2.14.3-r1

Description

Automatic testing of Haskell programs

Added to portage

2026-01-11

quickcheck-classes-base - 0.6.2.0-r1
Ebuild name:

dev-haskell/quickcheck-classes-base-0.6.2.0-r1

Description

QuickCheck common typeclasses from 'base'

Added to portage

2026-01-11

random - 1.2.1.3
Ebuild name:

dev-haskell/random-1.2.1.3

Description

Pseudo-random number generation

Added to portage

2026-01-11

rb_sys - 0.9.124
Ebuild name:

dev-ruby/rb_sys-0.9.124

Description

Easily build Ruby native extensions in Rust

Added to portage

2026-01-11

scipy - 1.17.0
Ebuild name:

dev-python/scipy-1.17.0

Description

Scientific algorithms library for Python

Added to portage

2026-01-11

starlette - 0.51.0
Ebuild name:

dev-python/starlette-0.51.0

Description

The little ASGI framework that shines

Added to portage

2026-01-11

statevar - 1.2.2-r1
Ebuild name:

dev-haskell/statevar-1.2.2-r1

Description

State variables

Added to portage

2026-01-11

syd - 3.48.4
Ebuild name:

sys-apps/syd-3.48.4

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2026-01-11

tagged - 0.8.10
Ebuild name:

dev-haskell/tagged-0.8.10

Description

Haskell 98 phantom types to avoid unsafely passing dummy arguments

Added to portage

2026-01-11

tasty-inspection-testing - 0.2.1-r1
Ebuild name:

dev-haskell/tasty-inspection-testing-0.2.1-r1

Description

Inspection testing support for tasty

Added to portage

2026-01-11

tavern - 3.1.0
Ebuild name:

dev-python/tavern-3.1.0

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-01-11

th-abstraction - 0.7.2.0
Ebuild name:

dev-haskell/th-abstraction-0.7.2.0

Description

Nicer interface for reified information about data types

Added to portage

2026-01-11

tomli - 2.4.0
Ebuild name:

dev-python/tomli-2.4.0

Description

A lil' TOML parser

Added to portage

2026-01-11

vector - 0.13.2.0
Ebuild name:

dev-haskell/vector-0.13.2.0

Description

Efficient Arrays

Added to portage

2026-01-11

vector-stream - 0.1.0.1
Ebuild name:

dev-haskell/vector-stream-0.1.0.1

Description

Efficient Streams

Added to portage

2026-01-11

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