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:

82572

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

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

derper - 1.92.1
Ebuild name:

net-vpn/derper-1.92.1

Description

DERP server for tailscale network

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

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

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

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

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

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

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

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

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

scrypt - 1.3.3
Ebuild name:

app-crypt/scrypt-1.3.3

Description

A simple password-based encryption utility using scrypt key derivation funct

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

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

tifffile - 2025.12.20
Ebuild name:

dev-python/tifffile-2025.12.20

Description

Read and write TIFF files

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

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

2025-12-21
borgmatic - 2.0.13
Ebuild name:

app-backup/borgmatic-2.0.13

Description

Automatically create, prune and verify backups with borgbackup

Added to portage

2025-12-21

debootstrap - 1.0.142
Ebuild name:

dev-util/debootstrap-1.0.142

Description

Debian/Ubuntu bootstrap scripts

Added to portage

2025-12-21

dmidecode - 3.7
Ebuild name:

sys-apps/dmidecode-3.7

Description

DMI (Desktop Management Interface) table related utilities

Added to portage

2025-12-21

doggo - 1.1.3
Ebuild name:

net-dns/doggo-1.1.3

Description

Command-line DNS Client for Humans

Added to portage

2025-12-21

ed - 1.22.3
Ebuild name:

sys-apps/ed-1.22.3

Description

Your basic line editor

Added to portage

2025-12-21

epiphany - 49.2
Ebuild name:

www-client/epiphany-49.2

Description

GNOME webbrowser based on Webkit

Added to portage

2025-12-21

flog - 4.9.1
Ebuild name:

dev-ruby/flog-4.9.1

Description

Flog reports the most tortured code in an easy to read pain report

Added to portage

2025-12-21

fq - 0.16.0
Ebuild name:

dev-util/fq-0.16.0

Description

Tool for working with binary data (app-misc/jq for binary formats)

Added to portage

2025-12-21

gammastep - 2.0.11-r1
Ebuild name:

x11-misc/gammastep-2.0.11-r1

Description

A screen color temperature adjusting software

Added to portage

2025-12-21

gcc - 13.4.1_p20251218
Ebuild name:

sys-devel/gcc-13.4.1_p20251218

Description

The GNU Compiler Collection

Added to portage

2025-12-21

gcc - 14.3.1_p20251219
Ebuild name:

sys-devel/gcc-14.3.1_p20251219

Description

The GNU Compiler Collection

Added to portage

2025-12-21

gcc - 15.2.1_p20251220
Ebuild name:

sys-devel/gcc-15.2.1_p20251220

Description

The GNU Compiler Collection

Added to portage

2025-12-21

git-cola - 4.16.1
Ebuild name:

dev-vcs/git-cola-4.16.1

Description

The highly caffeinated git GUI

Added to portage

2025-12-21

gitea - 1.25.3
Ebuild name:

www-apps/gitea-1.25.3

Description

A painless self-hosted Git service

Added to portage

2025-12-21

glibc - 2.41-r8
Ebuild name:

sys-libs/glibc-2.41-r8

Description

GNU libc C library

Added to portage

2025-12-21

glibc - 2.42-r3
Ebuild name:

sys-libs/glibc-2.42-r3

Description

GNU libc C library

Added to portage

2025-12-21

gnatcoll-db - 26.0.0
Ebuild name:

dev-ada/gnatcoll-db-26.0.0

Description

GNAT Component Collection

Added to portage

2025-12-21

gnome-connections - 49.0
Ebuild name:

net-misc/gnome-connections-49.0

Description

A remote desktop client for the GNOME desktop environment

Added to portage

2025-12-21

gnome-font-viewer - 49.0
Ebuild name:

media-gfx/gnome-font-viewer-49.0

Description

Font viewer utility for GNOME

Added to portage

2025-12-21

gnome-maps - 49.2
Ebuild name:

sci-geosciences/gnome-maps-49.2

Description

A map application for GNOME

Added to portage

2025-12-21

gnome-music - 49.1
Ebuild name:

media-sound/gnome-music-49.1

Description

Music management for Gnome

Added to portage

2025-12-21

gnome-online-accounts - 3.54.8
Ebuild name:

net-libs/gnome-online-accounts-3.54.8

Description

GNOME framework for accessing online accounts

Added to portage

2025-12-21

gnome-online-accounts - 3.56.2
Ebuild name:

net-libs/gnome-online-accounts-3.56.2

Description

GNOME framework for accessing online accounts

Added to portage

2025-12-21

gnome-usage - 48.0
Ebuild name:

sys-process/gnome-usage-48.0

Description

A nice way to view information about use of system resources

Added to portage

2025-12-21

gphoto2 - 2.5.32
Ebuild name:

media-gfx/gphoto2-2.5.32

Description

Free, redistributable digital camera software application

Added to portage

2025-12-21

humanize - 4.15.0
Ebuild name:

dev-python/humanize-4.15.0

Description

Common humanization utilities

Added to portage

2025-12-21

igbinary - 3.2.15_p20251126
Ebuild name:

dev-php/igbinary-3.2.15_p20251126

Description

A fast drop-in replacement for the standard PHP serialize

Added to portage

2025-12-21

labwc - 0.9.2-r1
Ebuild name:

gui-wm/labwc-0.9.2-r1

Description

Openbox alternative for wayland

Added to portage

2025-12-21

labwc - 0.9.3-r1
Ebuild name:

gui-wm/labwc-0.9.3-r1

Description

Openbox alternative for wayland

Added to portage

2025-12-21

libgphoto2 - 2.5.33
Ebuild name:

media-libs/libgphoto2-2.5.33

Description

Library that implements support for numerous digital cameras

Added to portage

2025-12-21

libnetfilter_acct - 1.0.3-r1
Ebuild name:

net-libs/libnetfilter_acct-1.0.3-r1

Description

Library providing interface to extended accounting infrastructu

Added to portage

2025-12-21

libpanel - 1.10.3
Ebuild name:

gui-libs/libpanel-1.10.3

Description

A dock/panel library for GTK 4

Added to portage

2025-12-21

libvisual-projectm - 2.1.2
Ebuild name:

media-plugins/libvisual-projectm-2.1.2

Description

A libvisual graphical music visualization plugin similar to

Added to portage

2025-12-21

libwpe - 1.16.3
Ebuild name:

gui-libs/libwpe-1.16.3

Description

Platform-agnostic interfaces for WPE WebKit

Added to portage

2025-12-21

magiccube4d - 4.3.343-r1
Ebuild name:

games-puzzle/magiccube4d-4.3.343-r1

Description

Four-dimensional analog of Rubik's cube

Added to portage

2025-12-21

mobile-broadband-provider-info - 20251101
Ebuild name:

net-misc/mobile-broadband-provider-info-20251101

Description

Database of mobile broadband service providers

Added to portage

2025-12-21

mpg123-base - 1.33.4
Ebuild name:

media-sound/mpg123-base-1.33.4

Description

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

Added to portage

2025-12-21

mpg123-output-plugins - 1.33.4
Ebuild name:

media-plugins/mpg123-output-plugins-1.33.4

Description

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

Added to portage

2025-12-21

mycli - 1.42.0
Ebuild name:

dev-db/mycli-1.42.0

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2025-12-21

networkmanager - 1.54.3
Ebuild name:

net-misc/networkmanager-1.54.3

Description

A set of co-operative tools that make networking simple and straight

Added to portage

2025-12-21

nodeenv - 1.10.0
Ebuild name:

dev-python/nodeenv-1.10.0

Description

Node.js virtual environment builder

Added to portage

2025-12-21

numpy - 2.4.0
Ebuild name:

dev-python/numpy-2.4.0

Description

Fast array and numerical python library

Added to portage

2025-12-21

osinfo-db - 20251212
Ebuild name:

sys-apps/osinfo-db-20251212

Description

Osinfo database for virtualization provisioning tools

Added to portage

2025-12-21

pecl-imagick - 3.8.1
Ebuild name:

dev-php/pecl-imagick-3.8.1

Description

PHP wrapper for the ImageMagick library

Added to portage

2025-12-21

pecl-redis - 6.3.0
Ebuild name:

dev-php/pecl-redis-6.3.0

Description

PHP extension for interfacing with Redis

Added to portage

2025-12-21

pkgcraft-tools - 0.0.31
Ebuild name:

sys-apps/pkgcraft-tools-0.0.31

Description

pkgcraft-based tools for Gentoo

Added to portage

2025-12-21

pkgcruft - 0.0.18
Ebuild name:

dev-util/pkgcruft-0.0.18

Description

QA library and tools based on pkgcraft

Added to portage

2025-12-21

pkgcruft-git - 0.0.5
Ebuild name:

dev-vcs/pkgcruft-git-0.0.5

Description

QA support for verifying git commits via pkgcruft

Added to portage

2025-12-21

radicale - 3.5.10
Ebuild name:

www-apps/radicale-3.5.10

Description

A simple CalDAV calendar server

Added to portage

2025-12-21

rb_sys - 0.9.123
Ebuild name:

dev-ruby/rb_sys-0.9.123

Description

Easily build Ruby native extensions in Rust

Added to portage

2025-12-21

redshift - 1.12-r14
Ebuild name:

x11-misc/redshift-1.12-r14

Description

A screen color temperature adjusting software

Added to portage

2025-12-21

rest - 0.10.2
Ebuild name:

net-libs/rest-0.10.2

Description

Helper library for RESTful services

Added to portage

2025-12-21

rhythmbox - 3.4.9
Ebuild name:

media-sound/rhythmbox-3.4.9

Description

Music management and playback software for GNOME

Added to portage

2025-12-21

ruby_parser - 3.22.0
Ebuild name:

dev-ruby/ruby_parser-3.22.0

Description

A ruby parser written in pure ruby

Added to portage

2025-12-21

safeeyes - 3.3.0
Ebuild name:

x11-misc/safeeyes-3.3.0

Description

Linux alternative to EyeLeo

Added to portage

2025-12-21

scikit-image - 0.26.0
Ebuild name:

dev-python/scikit-image-0.26.0

Description

Image processing routines for SciPy

Added to portage

2025-12-21

shotwell - 0.32.14
Ebuild name:

media-gfx/shotwell-0.32.14

Description

Open source photo manager for GNOME

Added to portage

2025-12-21

simsimd - 6.5.12
Ebuild name:

dev-python/simsimd-6.5.12

Description

Fastest SIMD-Accelerated Vector Similarity Functions for x86 and Arm

Added to portage

2025-12-21

sip - 6.15.1
Ebuild name:

dev-python/sip-6.15.1

Description

Python bindings generator for C/C++ libraries

Added to portage

2025-12-21

smbus2 - 0.6.0
Ebuild name:

dev-python/smbus2-0.6.0

Description

A drop-in replacement for smbus-cffi/smbus-python in pure Python

Added to portage

2025-12-21

soju - 0.10.1
Ebuild name:

net-irc/soju-0.10.1

Description

soju is a user-friendly IRC bouncer

Added to portage

2025-12-21

subtitleeditor - 0.55.0
Ebuild name:

media-video/subtitleeditor-0.55.0

Description

GTK+3 subtitle editing tool

Added to portage

2025-12-21

widelands - 1.3
Ebuild name:

games-strategy/widelands-1.3

Description

Game similar to Settlers 2

Added to portage

2025-12-21

wpebackend-fdo - 1.16.1
Ebuild name:

gui-libs/wpebackend-fdo-1.16.1

Description

WPE backend designed for Linux desktop systems

Added to portage

2025-12-21

xdg-desktop-portal-gnome - 49.0
Ebuild name:

sys-apps/xdg-desktop-portal-gnome-49.0

Description

Backend implementation for xdg-desktop-portal using GNOME

Added to portage

2025-12-21

zen-sources - 6.18.2
Ebuild name:

sys-kernel/zen-sources-6.18.2

Description

The Zen Kernel Live Sources

Added to portage

2025-12-21

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