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:

82185

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-11-28
boehm-gc - 8.2.10
Ebuild name:

dev-libs/boehm-gc-8.2.10

Description

The Boehm-Demers-Weiser conservative garbage collector

Added to portage

2025-11-28

ccache - 4.12.2
Ebuild name:

dev-util/ccache-4.12.2

Description

Fast compiler cache

Added to portage

2025-11-28

clang - 22.0.0_pre20251127
Ebuild name:

dev-python/clang-22.0.0_pre20251127

Description

Python bindings for llvm-core/clang

Added to portage

2025-11-28

clang - 22.0.0_pre20251127
Ebuild name:

llvm-core/clang-22.0.0_pre20251127

Description

C language family frontend for LLVM

Added to portage

2025-11-28

clang-common - 22.0.0_pre20251127
Ebuild name:

llvm-core/clang-common-22.0.0_pre20251127

Description

Common files shared between multiple slots of clang

Added to portage

2025-11-28

claws-mail - 4.3.1-r2
Ebuild name:

mail-client/claws-mail-4.3.1-r2

Description

An email client (and news reader) based on GTK+

Added to portage

2025-11-28

compiler-rt - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/compiler-rt-22.0.0_pre20251127

Description

Compiler runtime library for clang (built-in part)

Added to portage

2025-11-28

compiler-rt-sanitizers - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-22.0.0_pre20251127

Description

Compiler runtime libraries for clang (sanit

Added to portage

2025-11-28

edbrowse - 3.8.15
Ebuild name:

app-accessibility/edbrowse-3.8.15

Description

Combination editor, browser, and mail client that is 100% text ba

Added to portage

2025-11-28

flang - 22.0.0_pre20251127
Ebuild name:

llvm-core/flang-22.0.0_pre20251127

Description

LLVM's Fortran frontend

Added to portage

2025-11-28

flang-rt - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/flang-rt-22.0.0_pre20251127

Description

LLVM's Fortran runtime

Added to portage

2025-11-28

gmpy2 - 2.2.2
Ebuild name:

dev-python/gmpy2-2.2.2

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2025-11-28

google-protobuf - 4.33.1
Ebuild name:

dev-ruby/google-protobuf-4.33.1

Description

Protocol Buffers are Google's data interchange format

Added to portage

2025-11-28

gr - 0.73.6-r1
Ebuild name:

sci-visualization/gr-0.73.6-r1

Description

Universal framework for cross-platform visualization applications

Added to portage

2025-11-28

guildmaster - 0_pre20251122
Ebuild name:

dev-build/guildmaster-0_pre20251122

Description

FIFO-like jobserver node via CUSE

Added to portage

2025-11-28

guildmaster - 9999
Ebuild name:

dev-build/guildmaster-9999

Description

FIFO-like jobserver node via CUSE

Added to portage

2025-11-28

hip - 6.4.3-r2
Ebuild name:

dev-util/hip-6.4.3-r2

Description

C++ Heterogeneous-Compute Interface for Portability

Added to portage

2025-11-28

hip - 7.0.2-r1
Ebuild name:

dev-util/hip-7.0.2-r1

Description

C++ Heterogeneous-Compute Interface for Portability

Added to portage

2025-11-28

hip - 7.1.0-r1
Ebuild name:

dev-util/hip-7.1.0-r1

Description

C++ Heterogeneous-Compute Interface for Portability

Added to portage

2025-11-28

hypothesis - 6.148.3
Ebuild name:

dev-python/hypothesis-6.148.3

Description

A library for property based testing

Added to portage

2025-11-28

imv - 5.0.1
Ebuild name:

media-gfx/imv-5.0.1

Description

Minimal image viewer designed for tiling window manager users

Added to portage

2025-11-28

libclc - 22.0.0_pre20251127
Ebuild name:

llvm-core/libclc-22.0.0_pre20251127

Description

OpenCL C library

Added to portage

2025-11-28

libcxx - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/libcxx-22.0.0_pre20251127

Description

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

Added to portage

2025-11-28

libcxxabi - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/libcxxabi-22.0.0_pre20251127

Description

Low level support for a standard C++ library

Added to portage

2025-11-28

libgcc - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/libgcc-22.0.0_pre20251127

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2025-11-28

libunwind - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/libunwind-22.0.0_pre20251127

Description

C++ runtime stack unwinder from LLVM

Added to portage

2025-11-28

lit - 22.0.0_pre20251127
Ebuild name:

dev-python/lit-22.0.0_pre20251127

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2025-11-28

lld - 22.0.0_pre20251127
Ebuild name:

llvm-core/lld-22.0.0_pre20251127

Description

The LLVM linker (link editor)

Added to portage

2025-11-28

lldb - 22.0.0_pre20251127
Ebuild name:

llvm-core/lldb-22.0.0_pre20251127

Description

The LLVM debugger

Added to portage

2025-11-28

llvm - 22.0.0_pre20251127
Ebuild name:

dev-ml/llvm-22.0.0_pre20251127

Description

OCaml bindings for LLVM

Added to portage

2025-11-28

llvm - 22.0.0_pre20251127
Ebuild name:

llvm-core/llvm-22.0.0_pre20251127

Description

Low Level Virtual Machine

Added to portage

2025-11-28

llvm-common - 22.0.0_pre20251127
Ebuild name:

llvm-core/llvm-common-22.0.0_pre20251127

Description

Common files shared between multiple slots of LLVM

Added to portage

2025-11-28

logbook - 1.9.2
Ebuild name:

dev-python/logbook-1.9.2

Description

A logging replacement for Python

Added to portage

2025-11-28

mkdocstrings - 1.0.0
Ebuild name:

dev-python/mkdocstrings-1.0.0

Description

Automatic documentation from sources, for MkDocs

Added to portage

2025-11-28

mkdocstrings-python - 2.0.0
Ebuild name:

dev-python/mkdocstrings-python-2.0.0

Description

Python handler for dev-python/mkdocstrings

Added to portage

2025-11-28

mlir - 22.0.0_pre20251127
Ebuild name:

llvm-core/mlir-22.0.0_pre20251127

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2025-11-28

offload - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/offload-22.0.0_pre20251127

Description

OpenMP offloading support

Added to portage

2025-11-28

openmp - 22.0.0_pre20251127
Ebuild name:

llvm-runtimes/openmp-22.0.0_pre20251127

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2025-11-28

polly - 22.0.0_pre20251127
Ebuild name:

llvm-core/polly-22.0.0_pre20251127

Description

Polyhedral optimizations for LLVM

Added to portage

2025-11-28

protobuf - 33.1
Ebuild name:

dev-libs/protobuf-33.1

Description

Google's Protocol Buffers - Extensible mechanism for serializing structured

Added to portage

2025-11-28

qgis - 3.44.5
Ebuild name:

sci-geosciences/qgis-3.44.5

Description

User friendly Geographic Information System

Added to portage

2025-11-28

qutebrowser - 3.6.2
Ebuild name:

www-client/qutebrowser-3.6.2

Description

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

Added to portage

2025-11-28

rasdaemon - 0.8.4
Ebuild name:

app-admin/rasdaemon-0.8.4

Description

Reliability, Availability and Serviceability logging tool

Added to portage

2025-11-28

rocm_bandwidth_test - 7.1.0-r2
Ebuild name:

dev-util/rocm_bandwidth_test-7.1.0-r2

Description

Bandwidth test for ROCm

Added to portage

2025-11-28

sphinx - 9.0.0_rc1
Ebuild name:

dev-python/sphinx-9.0.0_rc1

Description

Python documentation generator

Added to portage

2025-11-28

steve - 1.0.2
Ebuild name:

dev-build/steve-1.0.2

Description

A simple jobserver for Gentoo

Added to portage

2025-11-28

swaylock - 1.8.4
Ebuild name:

gui-apps/swaylock-1.8.4

Description

Screen locker for Wayland

Added to portage

2025-11-28

swtpm - 0.9.0
Ebuild name:

app-crypt/swtpm-0.9.0

Description

Libtpms-based TPM emulator

Added to portage

2025-11-28

tc-play - 3.3
Ebuild name:

app-crypt/tc-play-3.3

Description

A free, pretty much fully featured and stable TrueCrypt implementation

Added to portage

2025-11-28

types-psutil - 7.1.3.20251127
Ebuild name:

dev-python/types-psutil-7.1.3.20251127

Description

Typing stubs for psutil

Added to portage

2025-11-28

2025-11-27
awscli - 1.43.5
Ebuild name:

app-admin/awscli-1.43.5

Description

Universal Command Line Environment for AWS

Added to portage

2025-11-27

bash - 5.3_p8
Ebuild name:

app-shells/bash-5.3_p8

Description

The standard GNU Bourne again shell

Added to portage

2025-11-27

borgmatic - 2.0.12
Ebuild name:

app-backup/borgmatic-2.0.12

Description

Automatically create, prune and verify backups with borgbackup

Added to portage

2025-11-27

boto3 - 1.41.5
Ebuild name:

dev-python/boto3-1.41.5

Description

The AWS SDK for Python

Added to portage

2025-11-27

botocore - 1.41.5
Ebuild name:

dev-python/botocore-1.41.5

Description

Low-level, data-driven core of boto 3

Added to portage

2025-11-27

charset-normalizer - 3.4.4-r1
Ebuild name:

dev-python/charset-normalizer-3.4.4-r1

Description

The Real First Universal Charset Detector

Added to portage

2025-11-27

clang - 16.0.6-r1
Ebuild name:

llvm-core/clang-16.0.6-r1

Description

C language family frontend for LLVM

Added to portage

2025-11-27

clang - 17.0.6-r1
Ebuild name:

llvm-core/clang-17.0.6-r1

Description

C language family frontend for LLVM

Added to portage

2025-11-27

clang - 18.1.8-r7
Ebuild name:

llvm-core/clang-18.1.8-r7

Description

C language family frontend for LLVM

Added to portage

2025-11-27

clang - 19.1.7-r1
Ebuild name:

llvm-core/clang-19.1.7-r1

Description

C language family frontend for LLVM

Added to portage

2025-11-27

clang-linker-config - 16
Ebuild name:

llvm-core/clang-linker-config-16

Description

Default linker configuration for clang

Added to portage

2025-11-27

clang-linker-config - 17
Ebuild name:

llvm-core/clang-linker-config-17

Description

Default linker configuration for clang

Added to portage

2025-11-27

clang-linker-config - 18
Ebuild name:

llvm-core/clang-linker-config-18

Description

Default linker configuration for clang

Added to portage

2025-11-27

clang-linker-config - 19
Ebuild name:

llvm-core/clang-linker-config-19

Description

Default linker configuration for clang

Added to portage

2025-11-27

clang-rtlib-config - 16
Ebuild name:

llvm-runtimes/clang-rtlib-config-16

Description

Default rtlib configuration for clang

Added to portage

2025-11-27

clang-rtlib-config - 17
Ebuild name:

llvm-runtimes/clang-rtlib-config-17

Description

Default rtlib configuration for clang

Added to portage

2025-11-27

clang-rtlib-config - 18
Ebuild name:

llvm-runtimes/clang-rtlib-config-18

Description

Default rtlib configuration for clang

Added to portage

2025-11-27

clang-rtlib-config - 19
Ebuild name:

llvm-runtimes/clang-rtlib-config-19

Description

Default rtlib configuration for clang

Added to portage

2025-11-27

clang-runtime - 16.0.6-r1
Ebuild name:

llvm-runtimes/clang-runtime-16.0.6-r1

Description

Meta-ebuild for clang runtime libraries

Added to portage

2025-11-27

clang-runtime - 17.0.6-r1
Ebuild name:

llvm-runtimes/clang-runtime-17.0.6-r1

Description

Meta-ebuild for clang runtime libraries

Added to portage

2025-11-27

clang-runtime - 18.1.8-r1
Ebuild name:

llvm-runtimes/clang-runtime-18.1.8-r1

Description

Meta-ebuild for clang runtime libraries

Added to portage

2025-11-27

clang-runtime - 19.1.7-r1
Ebuild name:

llvm-runtimes/clang-runtime-19.1.7-r1

Description

Meta-ebuild for clang runtime libraries

Added to portage

2025-11-27

clang-stdlib-config - 16
Ebuild name:

llvm-runtimes/clang-stdlib-config-16

Description

Default C++ library configuration for clang

Added to portage

2025-11-27

clang-stdlib-config - 17
Ebuild name:

llvm-runtimes/clang-stdlib-config-17

Description

Default C++ library configuration for clang

Added to portage

2025-11-27

clang-stdlib-config - 18
Ebuild name:

llvm-runtimes/clang-stdlib-config-18

Description

Default C++ library configuration for clang

Added to portage

2025-11-27

clang-stdlib-config - 19
Ebuild name:

llvm-runtimes/clang-stdlib-config-19

Description

Default C++ library configuration for clang

Added to portage

2025-11-27

clang-unwindlib-config - 16
Ebuild name:

llvm-runtimes/clang-unwindlib-config-16

Description

Default unwindlib configuration for clang

Added to portage

2025-11-27

clang-unwindlib-config - 17
Ebuild name:

llvm-runtimes/clang-unwindlib-config-17

Description

Default unwindlib configuration for clang

Added to portage

2025-11-27

clang-unwindlib-config - 18
Ebuild name:

llvm-runtimes/clang-unwindlib-config-18

Description

Default unwindlib configuration for clang

Added to portage

2025-11-27

clang-unwindlib-config - 19
Ebuild name:

llvm-runtimes/clang-unwindlib-config-19

Description

Default unwindlib configuration for clang

Added to portage

2025-11-27

copyq - 13.0.0
Ebuild name:

x11-misc/copyq-13.0.0

Description

Clipboard manager with advanced features

Added to portage

2025-11-27

easyeffects - 8.0.5
Ebuild name:

media-sound/easyeffects-8.0.5

Description

Limiter, auto volume and many other plugins for PipeWire applications

Added to portage

2025-11-27

element-desktop-bin - 1.12.4
Ebuild name:

net-im/element-desktop-bin-1.12.4

Description

A glossy Matrix collaboration client for desktop (binary package)

Added to portage

2025-11-27

git-crypt - 0.8.0
Ebuild name:

dev-vcs/git-crypt-0.8.0

Description

Transparent file encryption in git

Added to portage

2025-11-27

haproxy - 3.3.0
Ebuild name:

net-proxy/haproxy-3.3.0

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2025-11-27

haproxy - 3.3.9999
Ebuild name:

net-proxy/haproxy-3.3.9999

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2025-11-27

hatchling - 1.28.0
Ebuild name:

dev-python/hatchling-1.28.0

Description

Modern, extensible Python build backend

Added to portage

2025-11-27

jalv - 1.6.8-r1
Ebuild name:

media-sound/jalv-1.6.8-r1

Description

Simple but fully featured LV2 host for Jack

Added to portage

2025-11-27

just - 1.43.1
Ebuild name:

dev-build/just-1.43.1

Description

Just a command runner (with syntax inspired by 'make')

Added to portage

2025-11-27

kimageannotator - 0.7.2
Ebuild name:

media-libs/kimageannotator-0.7.2

Description

Tool for annotating images

Added to portage

2025-11-27

kquickimageeditor - 0.6.0
Ebuild name:

media-libs/kquickimageeditor-0.6.0

Description

QtQuick components providing basic image editing capabilities

Added to portage

2025-11-27

libinput - 1.30.0
Ebuild name:

dev-libs/libinput-1.30.0

Description

Library to handle input devices in Wayland

Added to portage

2025-11-27

limine - 10.3.2
Ebuild name:

sys-boot/limine-10.3.2

Description

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

Added to portage

2025-11-27

linux-firmware - 20251125
Ebuild name:

sys-kernel/linux-firmware-20251125

Description

Linux firmware files

Added to portage

2025-11-27

njs - 0.9.4
Ebuild name:

www-nginx/njs-0.9.4

Description

A subset of JavaScript language to use in NGINX

Added to portage

2025-11-27

nuitka - 2.8.7
Ebuild name:

dev-python/nuitka-2.8.7

Description

Python to native compiler

Added to portage

2025-11-27

pydantic - 2.12.5
Ebuild name:

dev-python/pydantic-2.12.5

Description

Data parsing and validation using Python type hints

Added to portage

2025-11-27

pymdown-extensions - 10.17.2
Ebuild name:

dev-python/pymdown-extensions-10.17.2

Description

Extensions for Python Markdown

Added to portage

2025-11-27

pyspelling - 2.12.1
Ebuild name:

dev-python/pyspelling-2.12.1

Description

Spell checker automation tool

Added to portage

2025-11-27

python-xmp-toolkit - 2.1.0
Ebuild name:

dev-python/python-xmp-toolkit-2.1.0

Description

Library for working with XMP metadata

Added to portage

2025-11-27

quickjs-ng - 0.11.0
Ebuild name:

dev-libs/quickjs-ng-0.11.0

Description

QuickJS, the Next Generation a mighty JavaScript engine

Added to portage

2025-11-27

sigstore-models - 0.0.6
Ebuild name:

dev-python/sigstore-models-0.0.6

Description

Pydantic based models for Sigstore's protobuf specifications

Added to portage

2025-11-27

spotipy - 2.25.2
Ebuild name:

dev-python/spotipy-2.25.2

Description

A lightweight Python library for the Spotify Web API

Added to portage

2025-11-27

steve - 1.0.0
Ebuild name:

dev-build/steve-1.0.0

Description

A simple jobserver for Gentoo

Added to portage

2025-11-27

steve - 1.0.1
Ebuild name:

dev-build/steve-1.0.1

Description

A simple jobserver for Gentoo

Added to portage

2025-11-27

subtitlecomposer - 0.8.2-r1
Ebuild name:

media-video/subtitlecomposer-0.8.2-r1

Description

Text-based subtitles editor

Added to portage

2025-11-27

telegram-desktop-bin - 6.3.4
Ebuild name:

net-im/telegram-desktop-bin-6.3.4

Description

Official desktop client for Telegram (binary package)

Added to portage

2025-11-27

uv - 0.9.13
Ebuild name:

dev-python/uv-0.9.13

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-11-27

uv-build - 0.9.13
Ebuild name:

dev-python/uv-build-0.9.13

Description

PEP517 uv build backend

Added to portage

2025-11-27

vlc - 3.0.22_rc2
Ebuild name:

media-video/vlc-3.0.22_rc2

Description

Media player and framework with support for most multimedia files and st

Added to portage

2025-11-27

wayland-utils - 1.3.0
Ebuild name:

app-misc/wayland-utils-1.3.0

Description

Display information about supported Wayland protocols and current comp

Added to portage

2025-11-27

xorg-server - 21.1.21
Ebuild name:

x11-base/xorg-server-21.1.21

Description

X.Org X servers

Added to portage

2025-11-27

zlib-ng - 2.3.1
Ebuild name:

sys-libs/zlib-ng-2.3.1

Description

Fork of the zlib data compression library

Added to portage

2025-11-27

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 58.0 ms