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:

83052

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
2026-02-02
shadow - 4.19.3
Ebuild name:

sys-apps/shadow-4.19.3

Description

Utilities to deal with user accounts

Added to portage

2026-02-02

2026-02-01
caffe2 - 2.10.0-r2
Ebuild name:

sci-ml/caffe2-2.10.0-r2

Description

A deep learning framework

Added to portage

2026-02-01

clang - 23.0.0_pre20260131
Ebuild name:

dev-python/clang-23.0.0_pre20260131

Description

Python bindings for llvm-core/clang

Added to portage

2026-02-01

clang - 23.0.0_pre20260131
Ebuild name:

llvm-core/clang-23.0.0_pre20260131

Description

C language family frontend for LLVM

Added to portage

2026-02-01

clang-common - 23.0.0_pre20260131
Ebuild name:

llvm-core/clang-common-23.0.0_pre20260131

Description

Common files shared between multiple slots of clang

Added to portage

2026-02-01

commons-codec - 1.21.0
Ebuild name:

dev-java/commons-codec-1.21.0

Description

Implementations of common encoders and decoders in Java

Added to portage

2026-02-01

compiler-rt - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/compiler-rt-23.0.0_pre20260131

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-02-01

compiler-rt-sanitizers - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-23.0.0_pre20260131

Description

Compiler runtime libraries for clang (sanit

Added to portage

2026-02-01

discord - 0.0.122
Ebuild name:

net-im/discord-0.0.122

Description

All-in-one voice and text chat for gamers

Added to portage

2026-02-01

ensurepip-pip - 26.0
Ebuild name:

dev-python/ensurepip-pip-26.0

Description

Shared pip wheel for ensurepip Python module

Added to portage

2026-02-01

evolution - 3.58.3
Ebuild name:

mail-client/evolution-3.58.3

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2026-02-01

evolution-data-server - 3.58.3
Ebuild name:

gnome-extra/evolution-data-server-3.58.3

Description

Evolution groupware backend

Added to portage

2026-02-01

evolution-ews - 3.58.3
Ebuild name:

gnome-extra/evolution-ews-3.58.3

Description

Evolution module for connecting to Microsoft Exchange Web Services

Added to portage

2026-02-01

flang - 23.0.0_pre20260131
Ebuild name:

llvm-core/flang-23.0.0_pre20260131

Description

LLVM's Fortran frontend

Added to portage

2026-02-01

flang-rt - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/flang-rt-23.0.0_pre20260131

Description

LLVM's Fortran runtime

Added to portage

2026-02-01

libclc - 23.0.0_pre20260131
Ebuild name:

llvm-core/libclc-23.0.0_pre20260131

Description

OpenCL C library

Added to portage

2026-02-01

libcxx - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/libcxx-23.0.0_pre20260131

Description

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

Added to portage

2026-02-01

libcxxabi - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/libcxxabi-23.0.0_pre20260131

Description

Low level support for a standard C++ library

Added to portage

2026-02-01

libgcc - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/libgcc-23.0.0_pre20260131

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2026-02-01

libunwind - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/libunwind-23.0.0_pre20260131

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-02-01

liferea - 1.16.7
Ebuild name:

net-news/liferea-1.16.7

Description

News Aggregator for RDF/RSS/CDF/Atom/Echo feeds

Added to portage

2026-02-01

lit - 23.0.0_pre20260131
Ebuild name:

dev-python/lit-23.0.0_pre20260131

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-02-01

lld - 23.0.0_pre20260131
Ebuild name:

llvm-core/lld-23.0.0_pre20260131

Description

The LLVM linker (link editor)

Added to portage

2026-02-01

lldb - 23.0.0_pre20260131
Ebuild name:

llvm-core/lldb-23.0.0_pre20260131

Description

The LLVM debugger

Added to portage

2026-02-01

llvm - 23.0.0_pre20260131
Ebuild name:

dev-ml/llvm-23.0.0_pre20260131

Description

OCaml bindings for LLVM

Added to portage

2026-02-01

llvm - 23.0.0_pre20260131
Ebuild name:

llvm-core/llvm-23.0.0_pre20260131

Description

Low Level Virtual Machine

Added to portage

2026-02-01

llvm-common - 23.0.0_pre20260131
Ebuild name:

llvm-core/llvm-common-23.0.0_pre20260131

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-02-01

mitmproxy-linux - 0.12.9
Ebuild name:

net-proxy/mitmproxy-linux-0.12.9

Description

mitmproxy's Rust bits

Added to portage

2026-02-01

mitmproxy-rs - 0.12.9
Ebuild name:

net-proxy/mitmproxy-rs-0.12.9

Description

mitmproxy's Rust bits

Added to portage

2026-02-01

mlir - 23.0.0_pre20260131
Ebuild name:

llvm-core/mlir-23.0.0_pre20260131

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-02-01

numpy - 2.4.2
Ebuild name:

dev-python/numpy-2.4.2

Description

Fast array and numerical python library

Added to portage

2026-02-01

offload - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/offload-23.0.0_pre20260131

Description

OpenMP offloading support

Added to portage

2026-02-01

openmp - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/openmp-23.0.0_pre20260131

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2026-02-01

pip - 26.0
Ebuild name:

dev-python/pip-26.0

Description

The PyPA recommended tool for installing Python packages

Added to portage

2026-02-01

polly - 23.0.0_pre20260131
Ebuild name:

llvm-core/polly-23.0.0_pre20260131

Description

Polyhedral optimizations for LLVM

Added to portage

2026-02-01

pyproject-fmt - 2.12.1
Ebuild name:

dev-python/pyproject-fmt-2.12.1

Description

Format your pyproject.toml file

Added to portage

2026-02-01

rich-click - 1.9.7
Ebuild name:

dev-python/rich-click-1.9.7

Description

Format click help output nicely with rich

Added to portage

2026-02-01

scitokens-cpp - 1.3.0
Ebuild name:

dev-cpp/scitokens-cpp-1.3.0

Description

C++ implementation of the SciTokens library with a C library interface

Added to portage

2026-02-01

stone-soup - 0.34_beta1
Ebuild name:

games-roguelike/stone-soup-0.34_beta1

Description

Role-playing roguelike game of exploration and treasure-hunti

Added to portage

2026-02-01

upmpdcli - 1.9.12
Ebuild name:

media-sound/upmpdcli-1.9.12

Description

UPnP Media Renderer front-end for MPD, the Music Player Daemon

Added to portage

2026-02-01

vivaldi-snapshot - 7.9.3936.3
Ebuild name:

www-client/vivaldi-snapshot-7.9.3936.3

Description

A browser for our friends

Added to portage

2026-02-01

wcwidth - 0.5.3
Ebuild name:

dev-python/wcwidth-0.5.3

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-02-01

wrapt - 2.1.0
Ebuild name:

dev-python/wrapt-2.1.0

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-02-01

yt-dlp - 2026.01.31
Ebuild name:

net-misc/yt-dlp-2026.01.31

Description

youtube-dl fork with additional features and fixes

Added to portage

2026-02-01

zenlib - 3.2.0
Ebuild name:

dev-python/zenlib-3.2.0

Description

Useful python decorators and utilities

Added to portage

2026-02-01

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