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:

84132

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-04-02
dropbox - 246.4.3513
Ebuild name:

net-misc/dropbox-246.4.3513

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2026-04-02

kmscon - 9.3.3
Ebuild name:

sys-apps/kmscon-9.3.3

Description

KMS/DRM based virtual Console Emulator

Added to portage

2026-04-02

mediawiki - 1.43.8
Ebuild name:

www-apps/mediawiki-1.43.8

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2026-04-02

mediawiki - 1.44.5
Ebuild name:

www-apps/mediawiki-1.44.5

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2026-04-02

mediawiki - 1.45.3
Ebuild name:

www-apps/mediawiki-1.45.3

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2026-04-02

safeeyes - 3.3.2
Ebuild name:

x11-misc/safeeyes-3.3.2

Description

Linux alternative to EyeLeo

Added to portage

2026-04-02

2026-04-01
aiohttp - 3.13.5
Ebuild name:

dev-python/aiohttp-3.13.5

Description

HTTP client/server for asyncio

Added to portage

2026-04-01

ansible-compat - 26.3.0
Ebuild name:

dev-python/ansible-compat-26.3.0

Description

Contains functions that facilitate working with various versions o

Added to portage

2026-04-01

asterisk-g729 - 20.0.3.1.10-r2
Ebuild name:

net-misc/asterisk-g729-20.0.3.1.10-r2

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-04-01

asterisk-g729 - 20.0.3.1.11-r1
Ebuild name:

net-misc/asterisk-g729-20.0.3.1.11-r1

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-04-01

asterisk-g729 - 21.0.3.1.10-r2
Ebuild name:

net-misc/asterisk-g729-21.0.3.1.10-r2

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-04-01

asterisk-g729 - 21.0.3.1.11-r1
Ebuild name:

net-misc/asterisk-g729-21.0.3.1.11-r1

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-04-01

asterisk-g729 - 22.0.3.1.10-r2
Ebuild name:

net-misc/asterisk-g729-22.0.3.1.10-r2

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-04-01

asterisk-g729 - 22.0.3.1.11-r1
Ebuild name:

net-misc/asterisk-g729-22.0.3.1.11-r1

Description

G.729 codec and supporting files for asterisk

Added to portage

2026-04-01

awscli - 1.44.70
Ebuild name:

app-admin/awscli-1.44.70

Description

Universal Command Line Environment for AWS

Added to portage

2026-04-01

blueprint-compiler - 0.20.4
Ebuild name:

dev-util/blueprint-compiler-0.20.4

Description

Compiler for Blueprint, a markup language for GTK user interface

Added to portage

2026-04-01

boto3 - 1.42.80
Ebuild name:

dev-python/boto3-1.42.80

Description

The AWS SDK for Python

Added to portage

2026-04-01

botocore - 1.42.80
Ebuild name:

dev-python/botocore-1.42.80

Description

Low-level, data-driven core of boto 3

Added to portage

2026-04-01

cfn-lint - 1.48.0
Ebuild name:

dev-python/cfn-lint-1.48.0

Description

CloudFormation Linter

Added to portage

2026-04-01

clang - 23.0.0_pre20260331
Ebuild name:

dev-python/clang-23.0.0_pre20260331

Description

Python bindings for llvm-core/clang

Added to portage

2026-04-01

clang - 23.0.0_pre20260331
Ebuild name:

llvm-core/clang-23.0.0_pre20260331

Description

C language family frontend for LLVM

Added to portage

2026-04-01

clang-common - 23.0.0_pre20260331
Ebuild name:

llvm-core/clang-common-23.0.0_pre20260331

Description

Common files shared between multiple slots of clang

Added to portage

2026-04-01

compiler-rt - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/compiler-rt-23.0.0_pre20260331

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-04-01

compiler-rt-sanitizers - 23.0.0_pre20260331
Ebuild name:

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

Description

Compiler runtime libraries for clang (sanit

Added to portage

2026-04-01

coq - 9.2.0
Ebuild name:

sci-mathematics/coq-9.2.0

Description

Coq/Rocq is a proof assistant written in O'Caml

Added to portage

2026-04-01

devcontainer - 0.85.0
Ebuild name:

app-containers/devcontainer-0.85.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-04-01

flang - 23.0.0_pre20260331
Ebuild name:

llvm-core/flang-23.0.0_pre20260331

Description

LLVM's Fortran frontend

Added to portage

2026-04-01

flang-rt - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/flang-rt-23.0.0_pre20260331

Description

LLVM's Fortran runtime

Added to portage

2026-04-01

flask-compress - 1.24
Ebuild name:

dev-python/flask-compress-1.24

Description

Compress responses in your Flask app with gzip

Added to portage

2026-04-01

gnumach - 1.8_p20260330
Ebuild name:

sys-kernel/gnumach-1.8_p20260330

Description

GNU Mach microkernel, for the Hurd

Added to portage

2026-04-01

guile-git - 0.11.0
Ebuild name:

dev-scheme/guile-git-0.11.0

Description

Guile bindings of git

Added to portage

2026-04-01

hurd - 0.9_p20260331
Ebuild name:

sys-kernel/hurd-0.9_p20260331

Description

GNU Hurd is the GNU project's replacement for UNIX

Added to portage

2026-04-01

incus - 6.23
Ebuild name:

app-containers/incus-6.23

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-04-01

jellyfin-bin - 10.11.7
Ebuild name:

www-apps/jellyfin-bin-10.11.7

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2026-04-01

ksmbd-tools - 3.5.6
Ebuild name:

net-fs/ksmbd-tools-3.5.6

Description

cifsd/ksmbd kernel server userspace utilities

Added to portage

2026-04-01

kup - 0.3.6-r8
Ebuild name:

dev-util/kup-0.3.6-r8

Description

kernel.org uploader tool

Added to portage

2026-04-01

libclc - 23.0.0_pre20260331
Ebuild name:

llvm-core/libclc-23.0.0_pre20260331

Description

OpenCL C library

Added to portage

2026-04-01

libcxx - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/libcxx-23.0.0_pre20260331

Description

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

Added to portage

2026-04-01

libcxxabi - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/libcxxabi-23.0.0_pre20260331

Description

Low level support for a standard C++ library

Added to portage

2026-04-01

libgcc - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/libgcc-23.0.0_pre20260331

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2026-04-01

libopenmpt - 0.8.6
Ebuild name:

media-libs/libopenmpt-0.8.6

Description

Library to decode tracked music files (modules)

Added to portage

2026-04-01

libunwind - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/libunwind-23.0.0_pre20260331

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-04-01

lit - 23.0.0_pre20260331
Ebuild name:

dev-python/lit-23.0.0_pre20260331

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-04-01

lld - 23.0.0_pre20260331
Ebuild name:

llvm-core/lld-23.0.0_pre20260331

Description

The LLVM linker (link editor)

Added to portage

2026-04-01

lldb - 23.0.0_pre20260331
Ebuild name:

llvm-core/lldb-23.0.0_pre20260331

Description

The LLVM debugger

Added to portage

2026-04-01

llvm - 23.0.0_pre20260331
Ebuild name:

dev-ml/llvm-23.0.0_pre20260331

Description

OCaml bindings for LLVM

Added to portage

2026-04-01

llvm - 23.0.0_pre20260331
Ebuild name:

llvm-core/llvm-23.0.0_pre20260331

Description

Low Level Virtual Machine

Added to portage

2026-04-01

llvm-common - 23.0.0_pre20260331
Ebuild name:

llvm-core/llvm-common-23.0.0_pre20260331

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-04-01

mediawiki - 2.3.1
Ebuild name:

app-emacs/mediawiki-2.3.1

Description

MediaWiki client for Emacs

Added to portage

2026-04-01

meson-mode - 0.4
Ebuild name:

app-emacs/meson-mode-0.4

Description

A GNU Emacs major mode for Meson build-system files

Added to portage

2026-04-01

meson-mode - 9999
Ebuild name:

app-emacs/meson-mode-9999

Description

A GNU Emacs major mode for Meson build-system files

Added to portage

2026-04-01

metamath-mode - 0_p20221005
Ebuild name:

app-emacs/metamath-mode-0_p20221005

Description

Major GNU Emacs mode for metamath files

Added to portage

2026-04-01

mig - 1.8_p20260123
Ebuild name:

dev-util/mig-1.8_p20260123

Description

GNU Mach 3.0 interface generator (IDL compiler)

Added to portage

2026-04-01

mlir - 23.0.0_pre20260331
Ebuild name:

llvm-core/mlir-23.0.0_pre20260331

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-04-01

motif - 2.5.1-r1
Ebuild name:

x11-libs/motif-2.5.1-r1

Description

The Motif user interface component toolkit

Added to portage

2026-04-01

mypy - 1.20.0
Ebuild name:

dev-python/mypy-1.20.0

Description

Optional static typing for Python

Added to portage

2026-04-01

nprolog - 4.90
Ebuild name:

dev-lang/nprolog-4.90

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-04-01

openmp - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/openmp-23.0.0_pre20260331

Description

OpenMP runtime libraries for LLVM/clang compiler

Added to portage

2026-04-01

openmp-amdgcn-amd-amdhsa - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/openmp-amdgcn-amd-amdhsa-23.0.0_pre20260331

Description

OpenMP target library for amdgcn devices

Added to portage

2026-04-01

openmp-nvptx64-nvidia-cuda - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/openmp-nvptx64-nvidia-cuda-23.0.0_pre20260331

Description

OpenMP target library for nvptx64 devic

Added to portage

2026-04-01

openmp-spirv64-intel - 23.0.0_pre20260331
Ebuild name:

llvm-runtimes/openmp-spirv64-intel-23.0.0_pre20260331

Description

OpenMP target library for spirv64 Intel devic

Added to portage

2026-04-01

openmpt123 - 0.8.6
Ebuild name:

media-sound/openmpt123-0.8.6

Description

libopenmpt-based command line player for tracked music files (modules)

Added to portage

2026-04-01

opentimelineio - 0.18.1
Ebuild name:

media-libs/opentimelineio-0.18.1

Description

Open Source API and interchange format for editorial timeline info

Added to portage

2026-04-01

orjson - 3.11.8
Ebuild name:

dev-python/orjson-3.11.8

Description

Fast, correct Python JSON library supporting dataclasses, datetimes, and n

Added to portage

2026-04-01

pandas - 3.0.2
Ebuild name:

dev-python/pandas-3.0.2

Description

Powerful data structures for data analysis and statistics

Added to portage

2026-04-01

picom - 13
Ebuild name:

x11-misc/picom-13

Description

A lightweight compositor for X11 (previously a compton fork)

Added to portage

2026-04-01

polly - 23.0.0_pre20260331
Ebuild name:

llvm-core/polly-23.0.0_pre20260331

Description

Polyhedral optimizations for LLVM

Added to portage

2026-04-01

protontricks - 1.14.1
Ebuild name:

app-emulation/protontricks-1.14.1

Description

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

Added to portage

2026-04-01

pybind11 - 3.0.3
Ebuild name:

dev-python/pybind11-3.0.3

Description

AST-based Python refactoring library

Added to portage

2026-04-01

pydantic - 2.13.0_beta3
Ebuild name:

dev-python/pydantic-2.13.0_beta3

Description

Data parsing and validation using Python type hints

Added to portage

2026-04-01

quiche - 0.27.0
Ebuild name:

net-libs/quiche-0.27.0

Description

Implementation of the QUIC transport protocol and HTTP/3

Added to portage

2026-04-01

sbcl - 2.6.3
Ebuild name:

dev-lisp/sbcl-2.6.3

Description

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

Added to portage

2026-04-01

simdjson - 4.6.0
Ebuild name:

dev-libs/simdjson-4.6.0

Description

SIMD accelerated C++ JSON library

Added to portage

2026-04-01

typescript - 6.0.2
Ebuild name:

dev-lang/typescript-6.0.2

Description

Superset of JavaScript with optional static typing, classes and interface

Added to portage

2026-04-01

vivaldi-snapshot - 7.10.3995.3
Ebuild name:

www-client/vivaldi-snapshot-7.10.3995.3

Description

A browser for our friends

Added to portage

2026-04-01

xpra-html5 - 20
Ebuild name:

www-apps/xpra-html5-20

Description

HTML5 client to connect to any xpra server

Added to portage

2026-04-01

xz-utils - 5.8.3
Ebuild name:

app-arch/xz-utils-5.8.3

Description

Utils for managing LZMA compressed files

Added to portage

2026-04-01

zenburn-theme - 2.9.0
Ebuild name:

app-emacs/zenburn-theme-2.9.0

Description

Zenburn color theme for Emacs

Added to portage

2026-04-01

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