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:

82262

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-01
amdsmi - 7.1.0
Ebuild name:

dev-util/amdsmi-7.1.0

Description

AMD System Management Interface for managing and monitoring GPUs

Added to portage

2025-12-01

apispec - 6.9.0
Ebuild name:

dev-python/apispec-6.9.0

Description

A pluggable API specification generator

Added to portage

2025-12-01

asterisk - 20.17.0
Ebuild name:

net-misc/asterisk-20.17.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

asterisk - 21.12.0
Ebuild name:

net-misc/asterisk-21.12.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

asterisk - 22.7.0
Ebuild name:

net-misc/asterisk-22.7.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

aws-sam-translator - 1.104.0
Ebuild name:

dev-python/aws-sam-translator-1.104.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2025-12-01

beautifulsoup4 - 4.14.3
Ebuild name:

dev-python/beautifulsoup4-4.14.3

Description

Pythonic idioms for iterating, searching, and modifying an HTML/XM

Added to portage

2025-12-01

beniget - 0.5.0
Ebuild name:

dev-python/beniget-0.5.0

Description

Extract semantic information about static Python code

Added to portage

2025-12-01

buffer - 1.19-r5
Ebuild name:

sys-block/buffer-1.19-r5

Description

A tapedrive tool for speeding up reading from and writing to tape

Added to portage

2025-12-01

cfn-lint - 1.42.0
Ebuild name:

dev-python/cfn-lint-1.42.0

Description

CloudFormation Linter

Added to portage

2025-12-01

cinnamon-screensaver - 6.4.0-r2
Ebuild name:

gnome-extra/cinnamon-screensaver-6.4.0-r2

Description

Screensaver for Cinnamon

Added to portage

2025-12-01

cinnamon-screensaver - 6.4.1-r1
Ebuild name:

gnome-extra/cinnamon-screensaver-6.4.1-r1

Description

Screensaver for Cinnamon

Added to portage

2025-12-01

coverage - 7.12.1_beta1
Ebuild name:

dev-python/coverage-7.12.1_beta1

Description

Code coverage measurement for Python

Added to portage

2025-12-01

cryptodev - 1.14
Ebuild name:

sys-kernel/cryptodev-1.14

Description

device that allows access to Linux kernel cryptographic drivers

Added to portage

2025-12-01

cython - 3.2.2
Ebuild name:

dev-python/cython-3.2.2

Description

A Python to C compiler

Added to portage

2025-12-01

gcc - 16.0.0_p20251130
Ebuild name:

sys-devel/gcc-16.0.0_p20251130

Description

The GNU Compiler Collection

Added to portage

2025-12-01

genshi - 0.7.10
Ebuild name:

dev-python/genshi-0.7.10

Description

Python toolkit for stream-based generation of output for the web

Added to portage

2025-12-01

gpa - 0.11.0-r2
Ebuild name:

app-crypt/gpa-0.11.0-r2

Description

GNU Privacy Assistant (GPA) a graphical user interface for GnuPG

Added to portage

2025-12-01

grass - 8.4.1-r2
Ebuild name:

sci-geosciences/grass-8.4.1-r2

Description

Free GIS with raster and vector functionality, as well as 3D vizuali

Added to portage

2025-12-01

ig - 0.47.0
Ebuild name:

app-admin/ig-0.47.0

Description

Tools and framework for data collection and system inspection using eBPF

Added to portage

2025-12-01

inspectrum - 0.3.1_p20251130
Ebuild name:

net-wireless/inspectrum-0.3.1_p20251130

Description

Tool for analysing captured signals from software-defined r

Added to portage

2025-12-01

irqbalance - 1.9.4-r3
Ebuild name:

sys-apps/irqbalance-1.9.4-r3

Description

Distribute hardware interrupts across processors on a multiprocessor s

Added to portage

2025-12-01

jellyfin-bin - 10.11.4
Ebuild name:

www-apps/jellyfin-bin-10.11.4

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2025-12-01

libtmux - 0.50.0
Ebuild name:

dev-python/libtmux-0.50.0

Description

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

Added to portage

2025-12-01

libvirt - 11.9.0
Ebuild name:

app-emulation/libvirt-11.9.0

Description

C toolkit to manipulate virtual machines

Added to portage

2025-12-01

libvirt-python - 11.9.0
Ebuild name:

dev-python/libvirt-python-11.9.0

Description

libvirt Python bindings

Added to portage

2025-12-01

libxslt - 1.1.45
Ebuild name:

dev-libs/libxslt-1.1.45

Description

XSLT libraries and tools

Added to portage

2025-12-01

limine - 10.4.0
Ebuild name:

sys-boot/limine-10.4.0

Description

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

Added to portage

2025-12-01

meson - 1.10.0_rc1
Ebuild name:

dev-build/meson-1.10.0_rc1

Description

Open source build system

Added to portage

2025-12-01

moto - 5.1.18
Ebuild name:

dev-python/moto-5.1.18

Description

Mock library for boto

Added to portage

2025-12-01

mtx - 1.3.12-r1
Ebuild name:

sys-block/mtx-1.3.12-r1

Description

Utilities for controlling SCSI media changers and tape drives

Added to portage

2025-12-01

planner - 3.42-r1
Ebuild name:

app-emacs/planner-3.42-r1

Description

Maintain a local Wiki using Emacs-friendly markup

Added to portage

2025-12-01

plz - 0.7.2
Ebuild name:

app-emacs/plz-0.7.2

Description

HTTP library with curl backend for GNU Emacs

Added to portage

2025-12-01

postfix - 3.11_pre20251130
Ebuild name:

mail-mta/postfix-3.11_pre20251130

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-12-01

pygraphviz - 1.14-r1
Ebuild name:

dev-python/pygraphviz-1.14-r1

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2025-12-01

pygraphviz - 1.14-r2
Ebuild name:

dev-python/pygraphviz-1.14-r2

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2025-12-01

pylint - 4.0.4
Ebuild name:

dev-python/pylint-4.0.4

Description

Python code static checker

Added to portage

2025-12-01

pythontex - 0.18_p20251112
Ebuild name:

dev-tex/pythontex-0.18_p20251112

Description

Fast Access to Python from within LaTeX

Added to portage

2025-12-01

radicale - 3.5.9
Ebuild name:

www-apps/radicale-3.5.9

Description

A simple CalDAV calendar server

Added to portage

2025-12-01

remind - 06.02.01
Ebuild name:

app-misc/remind-06.02.01

Description

Ridiculously functional reminder program

Added to portage

2025-12-01

rpds-py - 0.30.0
Ebuild name:

dev-python/rpds-py-0.30.0

Description

Python bindings to Rust's persistent data structures (rpds)

Added to portage

2025-12-01

sbcl - 2.5.11
Ebuild name:

dev-lisp/sbcl-2.5.11

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2025-12-01

socklog - 2.1.2
Ebuild name:

app-admin/socklog-2.1.2

Description

Small secure replacement for syslogd with automatic log rotation

Added to portage

2025-12-01

sphinx - 9.0.0
Ebuild name:

dev-python/sphinx-9.0.0

Description

Python documentation generator

Added to portage

2025-12-01

supercollider - 3.14.1
Ebuild name:

media-sound/supercollider-3.14.1

Description

Environment and programming language for real time audio synthesis

Added to portage

2025-12-01

wild - 0.7.0
Ebuild name:

sys-devel/wild-0.7.0

Description

A very fast linker for Linux

Added to portage

2025-12-01

wild - 0.7.0-r1
Ebuild name:

sys-devel/wild-0.7.0-r1

Description

A very fast linker for Linux

Added to portage

2025-12-01

wild - 9999
Ebuild name:

sys-devel/wild-9999

Description

A very fast linker for Linux

Added to portage

2025-12-01

xdotool - 4.20251130.1
Ebuild name:

x11-misc/xdotool-4.20251130.1

Description

Simulate keyboard input and mouse activity, move and resize windows

Added to portage

2025-12-01

zerotier - 1.16.0-r2
Ebuild name:

net-misc/zerotier-1.16.0-r2

Description

A software-based managed Ethernet switch for planet Earth

Added to portage

2025-12-01

2025-11-30
abiword - 3.0.7
Ebuild name:

app-office/abiword-3.0.7

Description

Fully featured yet light and fast cross platform word processor

Added to portage

2025-11-30

b2 - 5.3.3
Ebuild name:

dev-build/b2-5.3.3

Description

A system for large project software construction, simple to use and powerful

Added to portage

2025-11-30

beartype - 0.22.7
Ebuild name:

dev-python/beartype-0.22.7

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2025-11-30

catch - 3.11.0
Ebuild name:

dev-cpp/catch-3.11.0

Description

Modern C++ header-only framework for unit-tests

Added to portage

2025-11-30

cpik - 0.7.4_p4-r1
Ebuild name:

dev-embedded/cpik-0.7.4_p4-r1

Description

C compiler for PIC18 devices

Added to portage

2025-11-30

dino - 0.5.1
Ebuild name:

net-im/dino-0.5.1

Description

Modern Jabber/XMPP Client using GTK+/Vala

Added to portage

2025-11-30

dos2unix - 7.5.3
Ebuild name:

app-text/dos2unix-7.5.3

Description

Convert DOS or MAC text files to UNIX format or vice versa

Added to portage

2025-11-30

evolution - 3.58.2
Ebuild name:

mail-client/evolution-3.58.2

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2025-11-30

evolution-data-server - 3.58.2
Ebuild name:

gnome-extra/evolution-data-server-3.58.2

Description

Evolution groupware backend

Added to portage

2025-11-30

evolution-ews - 3.56.2-r1
Ebuild name:

gnome-extra/evolution-ews-3.56.2-r1

Description

Evolution module for connecting to Microsoft Exchange Web Servi

Added to portage

2025-11-30

evolution-ews - 3.58.2
Ebuild name:

gnome-extra/evolution-ews-3.58.2

Description

Evolution module for connecting to Microsoft Exchange Web Services

Added to portage

2025-11-30

fzy - 1.1
Ebuild name:

app-text/fzy-1.1

Description

Fuzzy text selector (interactive grep) for console

Added to portage

2025-11-30

gast - 0.7.0
Ebuild name:

dev-python/gast-0.7.0

Description

A generic AST to represent Python2 and Python3's Abstract Syntax Tree (AST)

Added to portage

2025-11-30

gcc - 15.2.1_p20251129
Ebuild name:

sys-devel/gcc-15.2.1_p20251129

Description

The GNU Compiler Collection

Added to portage

2025-11-30

gnome-user-share - 48.2
Ebuild name:

gnome-extra/gnome-user-share-48.2

Description

Personal file sharing for the GNOME desktop

Added to portage

2025-11-30

graphviz - 14.0.5-r1
Ebuild name:

media-gfx/graphviz-14.0.5-r1

Description

Open Source Graph Visualization Software

Added to portage

2025-11-30

gtk - 4.20.3-r2
Ebuild name:

gui-libs/gtk-4.20.3-r2

Description

GTK is a multi-platform toolkit for creating graphical user interfaces

Added to portage

2025-11-30

jaconv - 0.4.1
Ebuild name:

dev-python/jaconv-0.4.1

Description

Pure-Python Japanese character interconverter

Added to portage

2025-11-30

ktechlab - 0.51.0_p20251122
Ebuild name:

sci-electronics/ktechlab-0.51.0_p20251122

Description

IDE for microcontrollers and electronics

Added to portage

2025-11-30

kube-apiserver - 1.32.10
Ebuild name:

sys-cluster/kube-apiserver-1.32.10

Description

Kubernetes API server

Added to portage

2025-11-30

kube-apiserver - 1.33.6
Ebuild name:

sys-cluster/kube-apiserver-1.33.6

Description

Kubernetes API server

Added to portage

2025-11-30

kube-apiserver - 1.34.2
Ebuild name:

sys-cluster/kube-apiserver-1.34.2

Description

Kubernetes API server

Added to portage

2025-11-30

kube-controller-manager - 1.32.10
Ebuild name:

sys-cluster/kube-controller-manager-1.32.10

Description

Kubernetes Controller Manager

Added to portage

2025-11-30

kube-controller-manager - 1.33.6
Ebuild name:

sys-cluster/kube-controller-manager-1.33.6

Description

Kubernetes Controller Manager

Added to portage

2025-11-30

kube-controller-manager - 1.34.2
Ebuild name:

sys-cluster/kube-controller-manager-1.34.2

Description

Kubernetes Controller Manager

Added to portage

2025-11-30

kube-proxy - 1.32.10
Ebuild name:

sys-cluster/kube-proxy-1.32.10

Description

Kubernetes Proxy service

Added to portage

2025-11-30

kube-proxy - 1.33.6
Ebuild name:

sys-cluster/kube-proxy-1.33.6

Description

Kubernetes Proxy service

Added to portage

2025-11-30

kube-proxy - 1.34.2
Ebuild name:

sys-cluster/kube-proxy-1.34.2

Description

Kubernetes Proxy service

Added to portage

2025-11-30

kube-scheduler - 1.32.10
Ebuild name:

sys-cluster/kube-scheduler-1.32.10

Description

Kubernetes Scheduler

Added to portage

2025-11-30

kube-scheduler - 1.33.6
Ebuild name:

sys-cluster/kube-scheduler-1.33.6

Description

Kubernetes Scheduler

Added to portage

2025-11-30

kube-scheduler - 1.34.2
Ebuild name:

sys-cluster/kube-scheduler-1.34.2

Description

Kubernetes Scheduler

Added to portage

2025-11-30

kubeadm - 1.32.10
Ebuild name:

sys-cluster/kubeadm-1.32.10

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2025-11-30

kubeadm - 1.33.6
Ebuild name:

sys-cluster/kubeadm-1.33.6

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2025-11-30

kubeadm - 1.34.2
Ebuild name:

sys-cluster/kubeadm-1.34.2

Description

CLI to Easily bootstrap a secure Kubernetes cluster

Added to portage

2025-11-30

kubectl - 1.32.10
Ebuild name:

sys-cluster/kubectl-1.32.10

Description

CLI to run commands against Kubernetes clusters

Added to portage

2025-11-30

kubectl - 1.33.6
Ebuild name:

sys-cluster/kubectl-1.33.6

Description

CLI to run commands against Kubernetes clusters

Added to portage

2025-11-30

kubelet - 1.32.10
Ebuild name:

sys-cluster/kubelet-1.32.10

Description

Kubernetes Node Agent

Added to portage

2025-11-30

kubelet - 1.33.6
Ebuild name:

sys-cluster/kubelet-1.33.6

Description

Kubernetes Node Agent

Added to portage

2025-11-30

kubelet - 1.34.2
Ebuild name:

sys-cluster/kubelet-1.34.2

Description

Kubernetes Node Agent

Added to portage

2025-11-30

lego - 4.29.0
Ebuild name:

app-crypt/lego-4.29.0

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2025-11-30

libtmux - 0.49.0
Ebuild name:

dev-python/libtmux-0.49.0

Description

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

Added to portage

2025-11-30

link-grammar - 5.13.0
Ebuild name:

dev-libs/link-grammar-5.13.0

Description

A Syntactic English parser

Added to portage

2025-11-30

nuitka - 2.8.9
Ebuild name:

dev-python/nuitka-2.8.9

Description

Python to native compiler

Added to portage

2025-11-30

planner - 3.42-r1
Ebuild name:

app-emacs/planner-3.42-r1

Description

Maintain a local Wiki using Emacs-friendly markup

Added to portage

2025-11-30

plz - 0.7.2
Ebuild name:

app-emacs/plz-0.7.2

Description

HTTP library with curl backend for GNU Emacs

Added to portage

2025-11-30

pyspellchecker - 0.8.4
Ebuild name:

dev-python/pyspellchecker-0.8.4

Description

Pure python spell checker based on work by Peter Norvig

Added to portage

2025-11-30

qutebrowser - 3.6.3
Ebuild name:

www-client/qutebrowser-3.6.3

Description

Keyboard-driven, vim-like browser based on Python and Qt

Added to portage

2025-11-30

renderdoc - 1.36-r1
Ebuild name:

media-gfx/renderdoc-1.36-r1

Description

Standalone graphics debugging tool

Added to portage

2025-11-30

stdio-mgr - 1.0.1.1
Ebuild name:

dev-python/stdio-mgr-1.0.1.1

Description

Context manager for mocking/wrapping stdin/stdout/stderr

Added to portage

2025-11-30

systemd - 259_rc2
Ebuild name:

sys-apps/systemd-259_rc2

Description

System and service manager for Linux

Added to portage

2025-11-30

types-psutil - 7.1.3.20251130
Ebuild name:

dev-python/types-psutil-7.1.3.20251130

Description

Typing stubs for psutil

Added to portage

2025-11-30

vivaldi - 7.7.3851.56
Ebuild name:

www-client/vivaldi-7.7.3851.56

Description

A browser for our friends

Added to portage

2025-11-30

vivaldi-snapshot - 7.8.3879.3
Ebuild name:

www-client/vivaldi-snapshot-7.8.3879.3

Description

A browser for our friends

Added to portage

2025-11-30

wcd - 6.0.6
Ebuild name:

app-misc/wcd-6.0.6

Description

Wherever Change Directory

Added to portage

2025-11-30

yq-go - 4.49.2
Ebuild name:

app-misc/yq-go-4.49.2

Description

yq is a lightweight and portable command-line YAML, JSON and XML processor

Added to portage

2025-11-30

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