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:

87340

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-08-02
cpuinfo - 2026.04.13
Ebuild name:

dev-libs/cpuinfo-2026.04.13

Description

CPU INFOrmation library

Added to portage

2026-08-02

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

sec-keys/openpgp-keys-gentoo-developers-20260727

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-08-02

openpgp-keys-gentoo-infrastructure - 20260727
Ebuild name:

sec-keys/openpgp-keys-gentoo-infrastructure-20260727

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-08-02

py - 1.11.0-r2
Ebuild name:

dev-python/py-1.11.0-r2

Description

library with cross-python path, ini-parsing, io, code, log facilities

Added to portage

2026-08-02

2026-08-01
alcotest - 1.9.1
Ebuild name:

dev-ml/alcotest-1.9.1

Description

A lightweight and colourful test framework

Added to portage

2026-08-01

awscli - 1.45.62
Ebuild name:

app-admin/awscli-1.45.62

Description

Universal Command Line Environment for AWS

Added to portage

2026-08-01

boto3 - 1.43.62
Ebuild name:

dev-python/boto3-1.43.62

Description

The AWS SDK for Python

Added to portage

2026-08-01

botocore - 1.43.62
Ebuild name:

dev-python/botocore-1.43.62

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-01

claude-code - 2.1.220
Ebuild name:

dev-util/claude-code-2.1.220

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-08-01

cli11 - 2.7.1
Ebuild name:

dev-cpp/cli11-2.7.1

Description

Command line parser for C++11

Added to portage

2026-08-01

compat53 - 0.15.1
Ebuild name:

dev-lua/compat53-0.15.1

Description

Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1

Added to portage

2026-08-01

cryptography - 50.0.0
Ebuild name:

dev-python/cryptography-50.0.0

Description

Library providing cryptographic recipes and primitives

Added to portage

2026-08-01

cutlass - 4.4.2
Ebuild name:

dev-libs/cutlass-4.4.2

Description

CUDA Templates for Linear Algebra Subroutines

Added to portage

2026-08-01

environs - 15.1.0
Ebuild name:

dev-python/environs-15.1.0

Description

Python library for simplified environment variable parsing

Added to portage

2026-08-01

firecracker-bin - 1.16.1
Ebuild name:

app-emulation/firecracker-bin-1.16.1

Description

Secure and fast microVMs for serverless computing (static buil

Added to portage

2026-08-01

flrig - 2.0.12
Ebuild name:

media-radio/flrig-2.0.12

Description

Transceiver control program for Amateur Radio use

Added to portage

2026-08-01

ggml - 0.18.0
Ebuild name:

sci-ml/ggml-0.18.0

Description

Tensor library for machine learning

Added to portage

2026-08-01

gtk4-layer-shell - 1.3.0
Ebuild name:

gui-libs/gtk4-layer-shell-1.3.0

Description

A library for using the Layer Shell Wayland protocol with GTK4

Added to portage

2026-08-01

guessit - 4.4.0
Ebuild name:

dev-python/guessit-4.4.0

Description

Python library for guessing information from video filenames

Added to portage

2026-08-01

ibus-typing-booster - 2.30.11
Ebuild name:

app-i18n/ibus-typing-booster-2.30.11

Description

Completion input method for IBus

Added to portage

2026-08-01

integers - 0.8.0
Ebuild name:

dev-ml/integers-0.8.0

Description

Various signed and unsigned integer types for OCaml

Added to portage

2026-08-01

jupyter-builder - 1.2.1
Ebuild name:

dev-python/jupyter-builder-1.2.1

Description

JupyterLab build tools

Added to portage

2026-08-01

just - 1.57.0
Ebuild name:

dev-build/just-1.57.0

Description

Just a command runner (with syntax inspired by 'make')

Added to portage

2026-08-01

kitty - 0.48.2
Ebuild name:

x11-terms/kitty-0.48.2

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-08-01

kitty-shell-integration - 0.48.2
Ebuild name:

x11-terms/kitty-shell-integration-0.48.2

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2026-08-01

kitty-terminfo - 0.48.2
Ebuild name:

x11-terms/kitty-terminfo-0.48.2

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-08-01

knot - 3.5.5-r2
Ebuild name:

net-dns/knot-3.5.5-r2

Description

High-performance authoritative-only DNS server

Added to portage

2026-08-01

knot - 3.5.6
Ebuild name:

net-dns/knot-3.5.6

Description

High-performance authoritative-only DNS server

Added to portage

2026-08-01

lrzip - 0.7.1
Ebuild name:

app-arch/lrzip-0.7.1

Description

Long Range ZIP or Lzma RZIP optimized for compressing large files

Added to portage

2026-08-01

m17n-db - 1.8.14
Ebuild name:

dev-db/m17n-db-1.8.14

Description

Database for the m17n library

Added to portage

2026-08-01

matlab - 9999
Ebuild name:

app-emacs/matlab-9999

Description

Major modes for MATLAB .m and .tlc files

Added to portage

2026-08-01

mediawiki - 2.3.1
Ebuild name:

app-emacs/mediawiki-2.3.1

Description

MediaWiki client for Emacs

Added to portage

2026-08-01

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-08-01

meson-mode - 9999
Ebuild name:

app-emacs/meson-mode-9999

Description

A GNU Emacs major mode for Meson build-system files

Added to portage

2026-08-01

mgorny-dev-scripts - 85
Ebuild name:

app-portage/mgorny-dev-scripts-85

Description

Handy scripts for ebuild development and more

Added to portage

2026-08-01

mlterm - 3.9.5
Ebuild name:

x11-terms/mlterm-3.9.5

Description

A multi-lingual terminal emulator

Added to portage

2026-08-01

nginx - 1.29.5-r2
Ebuild name:

www-servers/nginx-1.29.5-r2

Description

Added to portage

2026-08-01

nginx - 1.29.7-r3
Ebuild name:

www-servers/nginx-1.29.7-r3

Description

Added to portage

2026-08-01

nginx - 1.30.0-r2
Ebuild name:

www-servers/nginx-1.30.0-r2

Description

Added to portage

2026-08-01

nginx - 1.30.2-r2
Ebuild name:

www-servers/nginx-1.30.2-r2

Description

Added to portage

2026-08-01

nginx - 1.30.3-r2
Ebuild name:

www-servers/nginx-1.30.3-r2

Description

Added to portage

2026-08-01

nginx - 1.30.4-r1
Ebuild name:

www-servers/nginx-1.30.4-r1

Description

Added to portage

2026-08-01

nginx - 1.31.1-r2
Ebuild name:

www-servers/nginx-1.31.1-r2

Description

Added to portage

2026-08-01

nginx - 1.31.2-r2
Ebuild name:

www-servers/nginx-1.31.2-r2

Description

Added to portage

2026-08-01

nginx - 1.31.3-r1
Ebuild name:

www-servers/nginx-1.31.3-r1

Description

Added to portage

2026-08-01

ngx-acme - 0.3.1-r1
Ebuild name:

www-nginx/ngx-acme-0.3.1-r1

Description

An NGINX module with the implementation of the ACMEv2 protocol

Added to portage

2026-08-01

pebble - 5.2.1-r1
Ebuild name:

dev-python/pebble-5.2.1-r1

Description

Threading and multiprocessing eye-candy

Added to portage

2026-08-01

peewee - 4.3.0
Ebuild name:

dev-python/peewee-4.3.0

Description

Small Python ORM

Added to portage

2026-08-01

php - 8.3.33
Ebuild name:

dev-lang/php-8.3.33

Description

The PHP language runtime engine

Added to portage

2026-08-01

php - 8.4.24
Ebuild name:

dev-lang/php-8.4.24

Description

The PHP language runtime engine

Added to portage

2026-08-01

pkgcheck - 0.10.42
Ebuild name:

dev-util/pkgcheck-0.10.42

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-08-01

pkgcore - 0.12.37
Ebuild name:

sys-apps/pkgcore-0.12.37

Description

a framework for package management

Added to portage

2026-08-01

pkgdev - 0.2.16
Ebuild name:

dev-util/pkgdev-0.2.16

Description

Collection of tools for Gentoo development

Added to portage

2026-08-01

pyglet - 2.1.16
Ebuild name:

dev-python/pyglet-2.1.16

Description

Cross-platform windowing and multimedia library for Python

Added to portage

2026-08-01

pysnmp - 7.1.28
Ebuild name:

dev-python/pysnmp-7.1.28

Description

Python SNMP library

Added to portage

2026-08-01

python-discovery - 1.5.1
Ebuild name:

dev-python/python-discovery-1.5.1

Description

Python interpreter discovery

Added to portage

2026-08-01

python-engineio - 4.13.4
Ebuild name:

dev-python/python-engineio-4.13.4

Description

Python implementation of the Engine.IO realtime server

Added to portage

2026-08-01

redis-knot - 3.5.6
Ebuild name:

net-dns/redis-knot-3.5.6

Description

Redis module for Knot DNS

Added to portage

2026-08-01

shtab - 1.9.2
Ebuild name:

dev-python/shtab-1.9.2

Description

Automagic shell tab completion for Python CLI applications

Added to portage

2026-08-01

snakeoil - 0.11.3
Ebuild name:

dev-python/snakeoil-0.11.3

Description

misc common functionality and useful optimizations

Added to portage

2026-08-01

tifffile - 2026.7.31
Ebuild name:

dev-python/tifffile-2026.7.31

Description

Read and write TIFF files

Added to portage

2026-08-01

time-machine - 3.3.0
Ebuild name:

dev-python/time-machine-3.3.0

Description

Travel through time in your tests

Added to portage

2026-08-01

traitlets - 5.16.0
Ebuild name:

dev-python/traitlets-5.16.0

Description

A configuration system for Python applications

Added to portage

2026-08-01

trakit - 0.3.0
Ebuild name:

dev-python/trakit-0.3.0

Description

Guess additional information from titles in media tracks

Added to portage

2026-08-01

translate-toolkit - 3.19.17
Ebuild name:

dev-python/translate-toolkit-3.19.17

Description

Toolkit to convert between many translation formats

Added to portage

2026-08-01

tree-sitter - 0.26.11
Ebuild name:

dev-libs/tree-sitter-0.26.11

Description

Tree-sitter is a parser generator tool and an incremental parsing libr

Added to portage

2026-08-01

tree-sitter-cli - 0.26.11
Ebuild name:

dev-util/tree-sitter-cli-0.26.11

Description

Command-line tool for creating and testing tree-sitter grammars

Added to portage

2026-08-01

trimesh - 5.0.0
Ebuild name:

dev-python/trimesh-5.0.0

Description

Python library for loading and using triangular meshes

Added to portage

2026-08-01

uv - 0.12.1
Ebuild name:

dev-python/uv-0.12.1

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-08-01

uv-build - 0.12.1
Ebuild name:

dev-python/uv-build-0.12.1

Description

PEP517 uv build backend

Added to portage

2026-08-01

wayfire - 0.11.0
Ebuild name:

gui-wm/wayfire-0.11.0

Description

compiz like 3D wayland compositor

Added to portage

2026-08-01

wayfire-plugins-extra - 0.11.0_pre20260801
Ebuild name:

gui-libs/wayfire-plugins-extra-0.11.0_pre20260801

Description

extra plugins for wayfire

Added to portage

2026-08-01

wcm - 0.11.0_pre20260801
Ebuild name:

gui-apps/wcm-0.11.0_pre20260801

Description

Wayfire Config Manager

Added to portage

2026-08-01

websockets - 17.0.1
Ebuild name:

dev-python/websockets-17.0.1

Description

Library for building WebSocket servers and clients in Python

Added to portage

2026-08-01

wf-config - 0.11.0
Ebuild name:

gui-libs/wf-config-0.11.0

Description

library for managing wayfire configuration files

Added to portage

2026-08-01

wf-shell - 0.11.0_pre20260801
Ebuild name:

gui-apps/wf-shell-0.11.0_pre20260801

Description

Compiz like 3D wayland compositor

Added to portage

2026-08-01

yq - 3.4.3-r1
Ebuild name:

app-misc/yq-3.4.3-r1

Description

Command-line YAML processor - jq wrapper for YAML documents

Added to portage

2026-08-01

yq - 4.1.2-r1
Ebuild name:

app-misc/yq-4.1.2-r1

Description

Command-line YAML processor - jq wrapper for YAML documents

Added to portage

2026-08-01

zsnes - 2.2.2
Ebuild name:

games-emulation/zsnes-2.2.2

Description

Fork of the classic Super Nintendo emulator

Added to portage

2026-08-01

zsnes - 2.2.3
Ebuild name:

games-emulation/zsnes-2.2.3

Description

Fork of the classic Super Nintendo emulator

Added to portage

2026-08-01

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