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:

90802

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-11-29
arc - 5.21q_p16
Ebuild name:

app-arch/arc-5.21q_p16

Description

Create & extract files from DOS .ARC files

Added to portage

2026-11-29

btrfs-assistant - 3.1.0
Ebuild name:

app-admin/btrfs-assistant-3.1.0

Description

GUI management tool to make managing a Btrfs filesystem easier

Added to portage

2026-11-29

calendarsupport - 26.04.3-r2
Ebuild name:

kde-apps/calendarsupport-26.04.3-r2

Description

Calendar support library

Added to portage

2026-11-29

calendarsupport - 26.08.3-r1
Ebuild name:

kde-apps/calendarsupport-26.08.3-r1

Description

Calendar support library

Added to portage

2026-11-29

clang - 24.0.0_pre20261128
Ebuild name:

dev-python/clang-24.0.0_pre20261128

Description

Python bindings for llvm-core/clang

Added to portage

2026-11-29

clang - 24.0.0_pre20261128
Ebuild name:

llvm-core/clang-24.0.0_pre20261128

Description

C language family frontend for LLVM

Added to portage

2026-11-29

clang-common - 24.0.0_pre20261128
Ebuild name:

llvm-core/clang-common-24.0.0_pre20261128

Description

Common files shared between multiple slots of clang

Added to portage

2026-11-29

compiler-rt - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/compiler-rt-24.0.0_pre20261128

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-11-29

compiler-rt-sanitizers - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-24.0.0_pre20261128

Description

Compiler runtime libraries for clang (sanit

Added to portage

2026-11-29

eventviews - 26.04.3-r1
Ebuild name:

kde-apps/eventviews-26.04.3-r1

Description

Calendar viewer for KDE PIM

Added to portage

2026-11-29

eventviews - 26.08.3-r1
Ebuild name:

kde-apps/eventviews-26.08.3-r1

Description

Calendar viewer for KDE PIM

Added to portage

2026-11-29

flang - 24.0.0_pre20261128
Ebuild name:

llvm-core/flang-24.0.0_pre20261128

Description

LLVM's Fortran frontend

Added to portage

2026-11-29

flang-rt - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/flang-rt-24.0.0_pre20261128

Description

LLVM's Fortran runtime

Added to portage

2026-11-29

glib - 2.88.4-r1
Ebuild name:

dev-libs/glib-2.88.4-r1

Description

The GLib library of C routines

Added to portage

2026-11-29

haxe-mode - 0.3.3
Ebuild name:

app-emacs/haxe-mode-0.3.3

Description

Major mode for editing Haxe files

Added to portage

2026-11-29

helm - 4.0.7
Ebuild name:

app-emacs/helm-4.0.7

Description

Emacs incremental completion and selection narrowing framework

Added to portage

2026-11-29

helm - 4.0.9
Ebuild name:

app-emacs/helm-4.0.9

Description

Emacs incremental completion and selection narrowing framework

Added to portage

2026-11-29

helm-system-packages - 1.10.2
Ebuild name:

app-emacs/helm-system-packages-1.10.2

Description

A Helm interface to the package manager of your operating sys

Added to portage

2026-11-29

hexrgb - 0_p1019
Ebuild name:

app-emacs/hexrgb-0_p1019

Description

Functions to manipulate colors, including RGB hex strings

Added to portage

2026-11-29

highlight-indentation - 0.7.0_p20210221
Ebuild name:

app-emacs/highlight-indentation-0.7.0_p20210221

Description

Minor modes to highlight indentation guides in Emac

Added to portage

2026-11-29

highline - 7.2.2
Ebuild name:

app-emacs/highline-7.2.2

Description

Minor mode to highlight current line in buffer

Added to portage

2026-11-29

hl-todo - 3.9.3
Ebuild name:

app-emacs/hl-todo-3.9.3

Description

Highlight TODO and similar keywords in comments and strings

Added to portage

2026-11-29

jffi - 1.4.0
Ebuild name:

dev-java/jffi-1.4.0

Description

Java Foreign Function Interface

Added to portage

2026-11-29

jnr-constants - 0.11.0
Ebuild name:

dev-java/jnr-constants-0.11.0

Description

A set of platform constants (e.g. errno values)

Added to portage

2026-11-29

libclc - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/libclc-24.0.0_pre20261128

Description

OpenCL C library

Added to portage

2026-11-29

libcxx - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/libcxx-24.0.0_pre20261128

Description

New implementation of the C++ standard library, targeting C

Added to portage

2026-11-29

libcxxabi - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/libcxxabi-24.0.0_pre20261128

Description

Low level support for a standard C++ library

Added to portage

2026-11-29

libgcc - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/libgcc-24.0.0_pre20261128

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2026-11-29

libunwind - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/libunwind-24.0.0_pre20261128

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-11-29

lit - 24.0.0_pre20261128
Ebuild name:

dev-python/lit-24.0.0_pre20261128

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-11-29

lld - 24.0.0_pre20261128
Ebuild name:

llvm-core/lld-24.0.0_pre20261128

Description

The LLVM linker (link editor)

Added to portage

2026-11-29

lldb - 23.1.6-r1
Ebuild name:

llvm-core/lldb-23.1.6-r1

Description

The LLVM debugger

Added to portage

2026-11-29

lldb - 24.0.0_pre20261128
Ebuild name:

llvm-core/lldb-24.0.0_pre20261128

Description

The LLVM debugger

Added to portage

2026-11-29

llvm - 24.0.0_pre20261128
Ebuild name:

dev-ml/llvm-24.0.0_pre20261128

Description

OCaml bindings for LLVM

Added to portage

2026-11-29

llvm - 24.0.0_pre20261128
Ebuild name:

llvm-core/llvm-24.0.0_pre20261128

Description

Low Level Virtual Machine

Added to portage

2026-11-29

llvm-common - 24.0.0_pre20261128
Ebuild name:

llvm-core/llvm-common-24.0.0_pre20261128

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-11-29

mlir - 24.0.0_pre20261128
Ebuild name:

llvm-core/mlir-24.0.0_pre20261128

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-11-29

ollama - 0.40.19
Ebuild name:

sci-ml/ollama-0.40.19

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models

Added to portage

2026-11-29

openmp - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/openmp-24.0.0_pre20261128

Description

OpenMP runtime libraries for LLVM/clang compiler

Added to portage

2026-11-29

openmp-amdgcn-amd-amdhsa - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/openmp-amdgcn-amd-amdhsa-24.0.0_pre20261128

Description

OpenMP target library for amdgcn devices

Added to portage

2026-11-29

openmp-nvptx64-nvidia-cuda - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/openmp-nvptx64-nvidia-cuda-24.0.0_pre20261128

Description

OpenMP target library for nvptx64 devic

Added to portage

2026-11-29

openmp-spirv64-intel - 24.0.0_pre20261128
Ebuild name:

llvm-runtimes/openmp-spirv64-intel-24.0.0_pre20261128

Description

OpenMP target library for spirv64 Intel devic

Added to portage

2026-11-29

openttd - 15.3-r2
Ebuild name:

games-simulation/openttd-15.3-r2

Description

A clone of Transport Tycoon Deluxe

Added to portage

2026-11-29

pkgcore - 0.12.51
Ebuild name:

sys-apps/pkgcore-0.12.51

Description

a framework for package management

Added to portage

2026-11-29

polly - 24.0.0_pre20261128
Ebuild name:

llvm-core/polly-24.0.0_pre20261128

Description

Polyhedral optimizations for LLVM

Added to portage

2026-11-29

protontricks - 1.15.2
Ebuild name:

app-emulation/protontricks-1.15.2

Description

app-emulation/winetricks wrapper for Proton (Steam Play) games

Added to portage

2026-11-29

runc - 1.6.0
Ebuild name:

app-containers/runc-1.6.0

Description

CLI tool for spawning and running containers

Added to portage

2026-11-29

snakeoil - 0.11.8
Ebuild name:

dev-python/snakeoil-0.11.8

Description

misc common functionality and useful optimizations

Added to portage

2026-11-29

sshguard - 2.6.0
Ebuild name:

app-admin/sshguard-2.6.0

Description

protects hosts from brute force attacks against ssh

Added to portage

2026-11-29

tailscale - 1.106.1
Ebuild name:

net-vpn/tailscale-1.106.1

Description

Tailscale vpn client

Added to portage

2026-11-29

2026-11-28
3proxy - 0.9.9.4
Ebuild name:

net-proxy/3proxy-0.9.9.4

Description

Really tiny cross-platform proxy servers set

Added to portage

2026-11-28

3proxy - 1.0.4
Ebuild name:

net-proxy/3proxy-1.0.4

Description

Really tiny cross-platform proxy servers set

Added to portage

2026-11-28

AusweisApp - 2.6.3-r1
Ebuild name:

sys-auth/AusweisApp-2.6.3-r1

Description

Official authentication app for German ID cards and residence permits

Added to portage

2026-11-28

android-studio - 2026.2.2.11
Ebuild name:

dev-util/android-studio-2026.2.2.11

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-11-28

anki - 26.09.4
Ebuild name:

app-misc/anki-26.09.4

Description

Smart spaced repetition flashcard program

Added to portage

2026-11-28

aqualung - 2.1
Ebuild name:

media-sound/aqualung-2.1

Description

Music player for a wide range of formats designed for gapless playback

Added to portage

2026-11-28

asyncssh - 2.24.2
Ebuild name:

dev-python/asyncssh-2.24.2

Description

Asynchronous SSHv2 client and server library

Added to portage

2026-11-28

awscli - 2.42.5
Ebuild name:

app-admin/awscli-2.42.5

Description

Universal Command Line Environment for AWS

Added to portage

2026-11-28

berkeleydb - 18.1.20
Ebuild name:

dev-python/berkeleydb-18.1.20

Description

Python bindings for Oracle Berkeley DB

Added to portage

2026-11-28

boto3 - 1.44.13
Ebuild name:

dev-python/boto3-1.44.13

Description

The AWS SDK for Python

Added to portage

2026-11-28

botocore - 1.44.13
Ebuild name:

dev-python/botocore-1.44.13

Description

Low-level, data-driven core of boto 3

Added to portage

2026-11-28

colpack - 1.0.10_p20190621-r1
Ebuild name:

sci-libs/colpack-1.0.10_p20190621-r1

Description

C++ algorithms for specialized vertex coloring problems

Added to portage

2026-11-28

conky - 1.26.3
Ebuild name:

app-admin/conky-1.26.3

Description

An advanced, highly configurable system monitor for X

Added to portage

2026-11-28

deepmerge - 4.0.1
Ebuild name:

dev-python/deepmerge-4.0.1

Description

Tools to handle merging of nested data structures in python

Added to portage

2026-11-28

dracut - 113
Ebuild name:

sys-kernel/dracut-113

Description

Generic initramfs generation tool

Added to portage

2026-11-28

element - 1.12.36
Ebuild name:

www-apps/element-1.12.36

Description

A glossy Matrix collaboration client for the web

Added to portage

2026-11-28

filelock - 4.3.2
Ebuild name:

dev-python/filelock-4.3.2

Description

A platform independent file lock for Python

Added to portage

2026-11-28

flatpak - 1.18.6
Ebuild name:

sys-apps/flatpak-1.18.6

Description

Linux application sandboxing and distribution framework

Added to portage

2026-11-28

gdb - 18.1-r3
Ebuild name:

dev-debug/gdb-18.1-r3

Description

GNU debugger

Added to portage

2026-11-28

grig - 0.9.1
Ebuild name:

media-radio/grig-0.9.1

Description

A tool for controlling amateur radios

Added to portage

2026-11-28

hl-todo - 3.9.5
Ebuild name:

app-emacs/hl-todo-3.9.5

Description

Highlight TODO and similar keywords in comments and strings

Added to portage

2026-11-28

howm - 1.5.0
Ebuild name:

app-emacs/howm-1.5.0

Description

Note-taking tool on Emacs

Added to portage

2026-11-28

ht - 2.3
Ebuild name:

app-emacs/ht-2.3

Description

The missing hash table library for Emacs

Added to portage

2026-11-28

hypothesis - 6.170.23
Ebuild name:

dev-python/hypothesis-6.170.23

Description

A library for property based testing

Added to portage

2026-11-28

imageio-ffmpeg - 0.8.2
Ebuild name:

dev-python/imageio-ffmpeg-0.8.2

Description

FFMPEG wrapper for Python

Added to portage

2026-11-28

jupyter-builder - 1.3.1
Ebuild name:

dev-python/jupyter-builder-1.3.1

Description

JupyterLab build tools

Added to portage

2026-11-28

kdeconnect - 26.08.3-r1
Ebuild name:

kde-misc/kdeconnect-26.08.3-r1

Description

Adds communication between KDE Plasma and your smartphone

Added to portage

2026-11-28

libtmux - 0.69.0
Ebuild name:

dev-python/libtmux-0.69.0

Description

Typed library that provides an ORM wrapper for tmux, a terminal multiplex

Added to portage

2026-11-28

libtorrent - 0.16.28-r1
Ebuild name:

net-libs/libtorrent-0.16.28-r1

Description

BitTorrent library written in C++ for *nix

Added to portage

2026-11-28

libtorrent - 0.16.29
Ebuild name:

net-libs/libtorrent-0.16.29

Description

BitTorrent library written in C++ for *nix

Added to portage

2026-11-28

lutris - 0.5.23
Ebuild name:

games-util/lutris-0.5.23

Description

An open source gaming platform for GNU/Linux

Added to portage

2026-11-28

lxml - 6.2.0
Ebuild name:

dev-python/lxml-6.2.0

Description

A Pythonic binding for the libxml2 and libxslt libraries

Added to portage

2026-11-28

mac - 13.50
Ebuild name:

media-sound/mac-13.50

Description

Monkey's Audio Codecs

Added to portage

2026-11-28

maven-bin - 3.10.2
Ebuild name:

dev-java/maven-bin-3.10.2

Description

Project Management and Comprehension Tool for Java

Added to portage

2026-11-28

ngx-fancyindex - 0.6.0
Ebuild name:

www-nginx/ngx-fancyindex-0.6.0

Description

Fancy indexes module for the NGINX web server

Added to portage

2026-11-28

openjdk - 28_alpha26
Ebuild name:

dev-java/openjdk-28_alpha26

Description

Open source implementation of the Java programming language

Added to portage

2026-11-28

openjdk-bin - 11.0.33.1_p1
Ebuild name:

dev-java/openjdk-bin-11.0.33.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-11-28

openjdk-bin - 28_alpha26
Ebuild name:

dev-java/openjdk-bin-28_alpha26

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-11-28

openjdk-bin - 8.514_p01
Ebuild name:

dev-java/openjdk-bin-8.514_p01

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-11-28

platformdirs - 4.14.9
Ebuild name:

dev-python/platformdirs-4.14.9

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-11-28

pry - 0.16.1
Ebuild name:

dev-ruby/pry-0.16.1

Description

Pry is a powerful alternative to the standard IRB shell for Ruby

Added to portage

2026-11-28

pshs - 0.4.5
Ebuild name:

www-servers/pshs-0.4.5

Description

Pretty small HTTP server -- a command-line tool to share files

Added to portage

2026-11-28

python-discovery - 1.9.8
Ebuild name:

dev-python/python-discovery-1.9.8

Description

Python interpreter discovery

Added to portage

2026-11-28

qtbase - 6.11.3-r2
Ebuild name:

dev-qt/qtbase-6.11.3-r2

Description

Cross-platform application development framework

Added to portage

2026-11-28

qtbase - 6.12.1-r1
Ebuild name:

dev-qt/qtbase-6.12.1-r1

Description

Cross-platform application development framework

Added to portage

2026-11-28

rtorrent - 0.16.28-r1
Ebuild name:

net-p2p/rtorrent-0.16.28-r1

Description

BitTorrent Client using libtorrent

Added to portage

2026-11-28

rtorrent - 0.16.29
Ebuild name:

net-p2p/rtorrent-0.16.29

Description

BitTorrent Client using libtorrent

Added to portage

2026-11-28

spirv-llvm-translator - 24.0.0_pre20261127
Ebuild name:

dev-util/spirv-llvm-translator-24.0.0_pre20261127

Description

Bi-directional translator between SPIR-V and LLVM

Added to portage

2026-11-28

spyder - 6.1.9
Ebuild name:

dev-python/spyder-6.1.9

Description

The Scientific Python Development Environment

Added to portage

2026-11-28

spyder-kernels - 3.1.7
Ebuild name:

dev-python/spyder-kernels-3.1.7

Description

Kernels used by spyder on its ipython console

Added to portage

2026-11-28

svglib - 2.5.0
Ebuild name:

dev-python/svglib-2.5.0

Description

Pure-Python library for reading and converting SVG

Added to portage

2026-11-28

texttable - 1.7.4
Ebuild name:

dev-python/texttable-1.7.4

Description

Module to create simple ASCII tables

Added to portage

2026-11-28

tox - 4.67.17
Ebuild name:

dev-python/tox-4.67.17

Description

virtualenv-based automation of test activities

Added to portage

2026-11-28

tsm - 8.2.3.0
Ebuild name:

app-backup/tsm-8.2.3.0

Description

IBM Storage Protect (former Tivoli Storage Manager) Backup/Archive Client, A

Added to portage

2026-11-28

umockdev - 0.20.0
Ebuild name:

dev-util/umockdev-0.20.0

Description

Mock hardware devices for creating unit tests

Added to portage

2026-11-28

unzip - 6.0_p31-r1
Ebuild name:

app-arch/unzip-6.0_p31-r1

Description

unzipper for pkzip-compressed files

Added to portage

2026-11-28

virt-firmware - 26.10
Ebuild name:

app-emulation/virt-firmware-26.10

Description

Tools for ovmf/armvirt firmware volumes

Added to portage

2026-11-28

virtualenv - 21.15.14
Ebuild name:

dev-python/virtualenv-21.15.14

Description

Virtual Python Environment builder

Added to portage

2026-11-28

vpl-gpu-rt - 26.4.2
Ebuild name:

media-libs/vpl-gpu-rt-26.4.2

Description

Intel Video Processing Library GPU Runtime

Added to portage

2026-11-28

wine-vanilla - 11.23
Ebuild name:

app-emulation/wine-vanilla-11.23

Description

Free implementation of Windows(tm) on Unix, without external patch

Added to portage

2026-11-28

zotero-bin - 10.0.8
Ebuild name:

app-text/zotero-bin-10.0.8

Description

Helps you collect, organize, cite, and share your research sources

Added to portage

2026-11-28

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