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:

82575

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
2025-12-23
alsa-lib - 1.2.15.1-r1
Ebuild name:

media-libs/alsa-lib-1.2.15.1-r1

Description

Advanced Linux Sound Architecture Library

Added to portage

2025-12-23

fuse - 3.18.1
Ebuild name:

sys-fs/fuse-3.18.1

Description

An interface for filesystems implemented in userspace

Added to portage

2025-12-23

gherkin-official - 37.0.1
Ebuild name:

dev-python/gherkin-official-37.0.1

Description

Gherkin parser/compiler for Python

Added to portage

2025-12-23

lxqt-panel - 2.3.2
Ebuild name:

lxqt-base/lxqt-panel-2.3.2

Description

LXQt desktop panel and plugins

Added to portage

2025-12-23

mcelog - 208
Ebuild name:

app-admin/mcelog-208

Description

A tool to log and decode Machine Check Exceptions

Added to portage

2025-12-23

org-roam - 2.3.0
Ebuild name:

app-emacs/org-roam-2.3.0

Description

Rudimentary Roam replica with Org-mode

Added to portage

2025-12-23

org-roam - 2.3.1
Ebuild name:

app-emacs/org-roam-2.3.1

Description

Rudimentary Roam replica with Org-mode

Added to portage

2025-12-23

org-roam - 9999
Ebuild name:

app-emacs/org-roam-9999

Description

Rudimentary Roam replica with Org-mode

Added to portage

2025-12-23

xterm - 406
Ebuild name:

x11-terms/xterm-406

Description

Terminal Emulator for X Windows

Added to portage

2025-12-23

2025-12-22
adwaita-icon-theme - 49.0
Ebuild name:

x11-themes/adwaita-icon-theme-49.0

Description

GNOME default icon theme

Added to portage

2025-12-22

apscheduler - 3.11.2
Ebuild name:

dev-python/apscheduler-3.11.2

Description

In-process task scheduler with Cron-like capabilities

Added to portage

2025-12-22

asahi-sources - 6.17.11_p1
Ebuild name:

sys-kernel/asahi-sources-6.17.11_p1

Description

Asahi Linux kernel sources

Added to portage

2025-12-22

asyncssh - 2.22.0
Ebuild name:

dev-python/asyncssh-2.22.0

Description

Asynchronous SSHv2 client and server library

Added to portage

2025-12-22

bitcoin-core - 30.1
Ebuild name:

net-p2p/bitcoin-core-30.1

Description

Reference implementation of the Bitcoin cryptocurrency

Added to portage

2025-12-22

ctypes-sh - 1.2_p20240626
Ebuild name:

app-shells/ctypes-sh-1.2_p20240626

Description

Foreign function interface for bash

Added to portage

2025-12-22

dasbus - 1.7
Ebuild name:

dev-python/dasbus-1.7

Description

DBus library in Python 3

Added to portage

2025-12-22

derper - 1.92.1
Ebuild name:

net-vpn/derper-1.92.1

Description

DERP server for tailscale network

Added to portage

2025-12-22

erlang - 28.3
Ebuild name:

dev-lang/erlang-28.3

Description

Erlang programming language, runtime environment and libraries (OTP)

Added to portage

2025-12-22

exo - 1.88.0
Ebuild name:

app-admin/exo-1.88.0

Description

Command-line tool for everything at Exoscale compute, storage, dns

Added to portage

2025-12-22

expected-lite - 0.10.0
Ebuild name:

dev-cpp/expected-lite-0.10.0

Description

Expected objects in C++11 and later in a single-file header-only libra

Added to portage

2025-12-22

fex-xtajit - 2512
Ebuild name:

app-emulation/fex-xtajit-2512

Description

A wine emulation dll for running x86 application on an arm64 host

Added to portage

2025-12-22

furo - 2025.12.19-r1
Ebuild name:

dev-python/furo-2025.12.19-r1

Description

Clean customisable Sphinx documentation theme

Added to portage

2025-12-22

furo - 2025.9.25-r1
Ebuild name:

dev-python/furo-2025.9.25-r1

Description

Clean customisable Sphinx documentation theme

Added to portage

2025-12-22

gcc - 16.0.0_p20251221
Ebuild name:

sys-devel/gcc-16.0.0_p20251221

Description

The GNU Compiler Collection

Added to portage

2025-12-22

git-sources - 6.19_rc2
Ebuild name:

sys-kernel/git-sources-6.19_rc2

Description

The very latest -git version of the Linux kernel

Added to portage

2025-12-22

gnome-backgrounds - 49.0
Ebuild name:

x11-themes/gnome-backgrounds-49.0

Description

A set of backgrounds packaged with the GNOME desktop

Added to portage

2025-12-22

gnome-terminal - 3.58.0
Ebuild name:

x11-terms/gnome-terminal-3.58.0

Description

A terminal emulator for GNOME

Added to portage

2025-12-22

gvfs - 1.56.1-r3
Ebuild name:

gnome-base/gvfs-1.56.1-r3

Description

Virtual filesystem implementation for GIO

Added to portage

2025-12-22

gvfs - 1.58.0
Ebuild name:

gnome-base/gvfs-1.58.0

Description

Virtual filesystem implementation for GIO

Added to portage

2025-12-22

hcloud - 1.58.0
Ebuild name:

app-admin/hcloud-1.58.0

Description

A command-line interface for Hetzner Cloud

Added to portage

2025-12-22

hwloc - 2.12.2
Ebuild name:

sys-apps/hwloc-2.12.2

Description

Displays the hardware topology in convenient formats

Added to portage

2025-12-22

i18n - 1.14.8
Ebuild name:

dev-ruby/i18n-1.14.8

Description

Add Internationalization support to your Ruby application

Added to portage

2025-12-22

idea-community - 2025.3.1
Ebuild name:

dev-util/idea-community-2025.3.1

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2025-12-22

importlib-metadata - 8.7.1
Ebuild name:

dev-python/importlib-metadata-8.7.1

Description

Read metadata from Python packages

Added to portage

2025-12-22

intervaltree - 3.2.0-r1
Ebuild name:

dev-python/intervaltree-3.2.0-r1

Description

Editable interval tree data structure for Python 2 and 3

Added to portage

2025-12-22

jaraco-functools - 4.4.0
Ebuild name:

dev-python/jaraco-functools-4.4.0

Description

Additional functions used by other projects by developer jaraco

Added to portage

2025-12-22

kernel-hardening-checker - 0.6.17.1
Ebuild name:

app-admin/kernel-hardening-checker-0.6.17.1

Description

A tool for checking the security hardening options of t

Added to portage

2025-12-22

koleo-cli - 0.2.137.26
Ebuild name:

app-misc/koleo-cli-0.2.137.26

Description

A simple CLI for koleo.pl railway planner

Added to portage

2025-12-22

langkit - 25.0.0-r6
Ebuild name:

dev-ada/langkit-25.0.0-r6

Description

A Python framework to generate language parsers

Added to portage

2025-12-22

libnotify - 0.8.7
Ebuild name:

x11-libs/libnotify-0.8.7

Description

A library for sending desktop notifications

Added to portage

2025-12-22

libsigc++ - 3.8.0
Ebuild name:

dev-libs/libsigc++-3.8.0

Description

Typesafe callback system for standard C++

Added to portage

2025-12-22

limine - 10.5.0
Ebuild name:

sys-boot/limine-10.5.0

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2025-12-22

localsearch - 3.10.2
Ebuild name:

app-misc/localsearch-3.10.2

Description

Indexer and search engine that powers desktop search for core GNOME com

Added to portage

2025-12-22

lxterminal - 0.4.0_p20230917-r1
Ebuild name:

lxde-base/lxterminal-0.4.0_p20230917-r1

Description

Lightweight vte-based tabbed terminal emulator for LXDE

Added to portage

2025-12-22

mcfly - 0.9.3
Ebuild name:

app-shells/mcfly-0.9.3

Description

Context-aware bash history search replacement (ctrl-r)

Added to portage

2025-12-22

mpv - 0.41.0
Ebuild name:

media-video/mpv-0.41.0

Description

Media player for the command line

Added to portage

2025-12-22

mpvqt - 1.1.1-r2
Ebuild name:

media-libs/mpvqt-1.1.1-r2

Description

libmpv wrapper for QtQuick2 and QML

Added to portage

2025-12-22

msgraph - 0.2.3-r1
Ebuild name:

net-libs/msgraph-0.2.3-r1

Description

GLib-based library for accessing online serive APIs using MS Graph protoc

Added to portage

2025-12-22

msgraph - 0.3.3
Ebuild name:

net-libs/msgraph-0.3.3

Description

GLib-based library for accessing online serive APIs using MS Graph protocol.

Added to portage

2025-12-22

musescore - 4.6.5
Ebuild name:

media-sound/musescore-4.6.5

Description

WYSIWYG Music Score Typesetter

Added to portage

2025-12-22

mydumper - 0.21.2.2
Ebuild name:

dev-db/mydumper-0.21.2.2

Description

A high-performance multi-threaded backup (and restore) toolset for MySQL

Added to portage

2025-12-22

nautilus - 49.2
Ebuild name:

gnome-base/nautilus-49.2

Description

Default file manager for the GNOME desktop

Added to portage

2025-12-22

nginx - 1.29.4
Ebuild name:

www-servers/nginx-1.29.4

Description

Added to portage

2025-12-22

openmpi - 5.0.9
Ebuild name:

sys-cluster/openmpi-5.0.9

Description

A high-performance message passing library (MPI)

Added to portage

2025-12-22

orca - 49.5
Ebuild name:

app-accessibility/orca-49.5

Description

Extensible screen reader that provides access to the desktop

Added to portage

2025-12-22

pmix - 5.0.9
Ebuild name:

sys-cluster/pmix-5.0.9

Description

The Process Management Interface (PMI) Exascale

Added to portage

2025-12-22

pnp4nagios - 0.6.26_p20241118
Ebuild name:

net-analyzer/pnp4nagios-0.6.26_p20241118

Description

A performance data analyzer for nagios

Added to portage

2025-12-22

prrte - 3.0.12
Ebuild name:

sys-cluster/prrte-3.0.12

Description

PMIx Reference RunTime Environment

Added to portage

2025-12-22

pyfakefs - 6.0.0
Ebuild name:

dev-python/pyfakefs-6.0.0

Description

A fake file system that mocks the Python file system modules

Added to portage

2025-12-22

pygresql - 6.2.0
Ebuild name:

dev-python/pygresql-6.2.0

Description

A Python interface for the PostgreSQL database

Added to portage

2025-12-22

pypdf - 6.5.0
Ebuild name:

dev-python/pypdf-6.5.0

Description

Python library to work with PDF files

Added to portage

2025-12-22

pyro5 - 5.16
Ebuild name:

dev-python/pyro5-5.16

Description

Distributed object middleware for Python (RPC)

Added to portage

2025-12-22

qemu - 10.0.7
Ebuild name:

app-emulation/qemu-10.0.7

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2025-12-22

qemu - 10.1.3
Ebuild name:

app-emulation/qemu-10.1.3

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2025-12-22

qgis - 3.44.6
Ebuild name:

sci-geosciences/qgis-3.44.6

Description

User friendly Geographic Information System

Added to portage

2025-12-22

qmidiarp - 0.7.1_p20251217-r1
Ebuild name:

media-sound/qmidiarp-0.7.1_p20251217-r1

Description

Arpeggiator, sequencer and MIDI LFO for ALSA

Added to portage

2025-12-22

reportlab - 4.4.7
Ebuild name:

dev-python/reportlab-4.4.7

Description

Tools for generating printable PDF documents from any data source

Added to portage

2025-12-22

rich-click - 1.9.5
Ebuild name:

dev-python/rich-click-1.9.5

Description

Format click help output nicely with rich

Added to portage

2025-12-22

rosegarden - 25.12
Ebuild name:

media-sound/rosegarden-25.12

Description

MIDI and audio sequencer and notation editor

Added to portage

2025-12-22

rtkit - 0.14
Ebuild name:

sys-auth/rtkit-0.14

Description

Realtime Policy and Watchdog Daemon

Added to portage

2025-12-22

sbsigntools - 0.9.5
Ebuild name:

app-crypt/sbsigntools-0.9.5

Description

Utilities for signing and verifying files for UEFI Secure Boot

Added to portage

2025-12-22

scdrand - 0.3.5
Ebuild name:

app-crypt/scdrand-0.3.5

Description

Feed kernel entropy pool from smartcard's TRNG

Added to portage

2025-12-22

sdmon - 0.9.0_p20250201
Ebuild name:

sys-block/sdmon-0.9.0_p20250201

Description

Get SD-card health data

Added to portage

2025-12-22

simdutf - 7.7.1
Ebuild name:

dev-cpp/simdutf-7.7.1

Description

Unicode validation and transcoding at billions of characters per second

Added to portage

2025-12-22

stalwart-cli - 0.15.1
Ebuild name:

net-mail/stalwart-cli-0.15.1

Description

Stalwart Mail Server command line utility

Added to portage

2025-12-22

stalwart-mail - 0.15.1
Ebuild name:

net-mail/stalwart-mail-0.15.1

Description

Stalwart Mail Server

Added to portage

2025-12-22

steve - 1.3.0
Ebuild name:

dev-build/steve-1.3.0

Description

A load-balancing jobserver for Gentoo

Added to portage

2025-12-22

system-config-printer - 1.5.18-r3
Ebuild name:

app-admin/system-config-printer-1.5.18-r3

Description

Graphical user interface for CUPS administration

Added to portage

2025-12-22

tifffile - 2025.12.20
Ebuild name:

dev-python/tifffile-2025.12.20

Description

Read and write TIFF files

Added to portage

2025-12-22

tinysparql - 3.10.1
Ebuild name:

app-misc/tinysparql-3.10.1

Description

Low-footprint RDF triple store with SPARQL 1.1 interface

Added to portage

2025-12-22

types-setuptools - 80.9.0.20251221
Ebuild name:

dev-python/types-setuptools-80.9.0.20251221

Description

Typing stubs for setuptools

Added to portage

2025-12-22

uritools - 6.0.1
Ebuild name:

dev-python/uritools-6.0.1

Description

RFC 3986-compliant URI parsing, classification and composition

Added to portage

2025-12-22

uvicorn - 0.40.0
Ebuild name:

dev-python/uvicorn-0.40.0

Description

Lightning-fast ASGI server implementation

Added to portage

2025-12-22

vss-text - 25.0.0
Ebuild name:

dev-ada/vss-text-25.0.0

Description

A high level string and text processing library

Added to portage

2025-12-22

vte - 0.80.4-r1
Ebuild name:

gui-libs/vte-0.80.4-r1

Description

Library providing a virtual terminal emulator widget

Added to portage

2025-12-22

vte - 0.80.4-r1
Ebuild name:

x11-libs/vte-0.80.4-r1

Description

Library providing a virtual terminal emulator widget

Added to portage

2025-12-22

vte - 0.82.2
Ebuild name:

gui-libs/vte-0.82.2

Description

Library providing a virtual terminal emulator widget

Added to portage

2025-12-22

vte - 0.82.2
Ebuild name:

x11-libs/vte-0.82.2

Description

Library providing a virtual terminal emulator widget

Added to portage

2025-12-22

vte-common - 0.82.2
Ebuild name:

gui-libs/vte-common-0.82.2

Description

Library providing a virtual terminal emulator widget

Added to portage

2025-12-22

webkit-gtk - 2.50.4-r410
Ebuild name:

net-libs/webkit-gtk-2.50.4-r410

Description

Open source web browser engine

Added to portage

2025-12-22

webkit-gtk - 2.50.4-r600
Ebuild name:

net-libs/webkit-gtk-2.50.4-r600

Description

Open source web browser engine

Added to portage

2025-12-22

wings - 2.2.6.1-r1
Ebuild name:

media-gfx/wings-2.2.6.1-r1

Description

Wings 3D is an advanced subdivision modeler

Added to portage

2025-12-22

wings - 2.3-r1
Ebuild name:

media-gfx/wings-2.3-r1

Description

Wings 3D is an advanced subdivision modeler

Added to portage

2025-12-22

wings - 2.4-r1
Ebuild name:

media-gfx/wings-2.4-r1

Description

Wings 3D is an advanced subdivision modeler

Added to portage

2025-12-22

wings - 2.4.1
Ebuild name:

media-gfx/wings-2.4.1

Description

Wings 3D is an advanced subdivision modeler

Added to portage

2025-12-22

xen - 4.20.2
Ebuild name:

app-emulation/xen-4.20.2

Description

The Xen virtual machine monitor

Added to portage

2025-12-22

xen-tools - 4.20.2
Ebuild name:

app-emulation/xen-tools-4.20.2

Description

Xen tools including QEMU and xl

Added to portage

2025-12-22

xfce4-terminal - 1.1.4-r1
Ebuild name:

x11-terms/xfce4-terminal-1.1.4-r1

Description

A terminal emulator for the Xfce desktop environment

Added to portage

2025-12-22

xfce4-terminal - 1.1.5-r1
Ebuild name:

x11-terms/xfce4-terminal-1.1.5-r1

Description

A terminal emulator for the Xfce desktop environment

Added to portage

2025-12-22

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