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:

78435

userrating:

average rating: 1.1 (26 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.0 (11 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-07-19
atuin - 18.7.1
Ebuild name:

app-shells/atuin-18.7.1

Description

Shell history manager supporting encrypted synchronisation

Added to portage

2025-07-19

bash - 5.4_alpha_pre20250718
Ebuild name:

app-shells/bash-5.4_alpha_pre20250718

Description

The standard GNU Bourne again shell

Added to portage

2025-07-19

camlp5 - 8.03.06
Ebuild name:

dev-ml/camlp5-8.03.06

Description

A preprocessor-pretty-printer of ocaml

Added to portage

2025-07-19

ebuild-mode - 1.79
Ebuild name:

app-xemacs/ebuild-mode-1.79

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2025-07-19

pcre2-ocaml - 8.0.3
Ebuild name:

dev-ml/pcre2-ocaml-8.0.3

Description

OCaml bindings to PCRE (Perl Compatibility Regular Expressions)

Added to portage

2025-07-19

profanity - 0.15.0
Ebuild name:

net-im/profanity-0.15.0

Description

A console based XMPP client inspired by Irssi

Added to portage

2025-07-19

vivaldi - 7.5.3735.54
Ebuild name:

www-client/vivaldi-7.5.3735.54

Description

A browser for our friends

Added to portage

2025-07-19

2025-07-18
apache-arrow - 21.0.0
Ebuild name:

dev-libs/apache-arrow-21.0.0

Description

A cross-language development platform for in-memory data

Added to portage

2025-07-18

awscli - 1.41.8
Ebuild name:

app-admin/awscli-1.41.8

Description

Universal Command Line Environment for AWS

Added to portage

2025-07-18

boto3 - 1.39.8
Ebuild name:

dev-python/boto3-1.39.8

Description

The AWS SDK for Python

Added to portage

2025-07-18

botocore - 1.39.8
Ebuild name:

dev-python/botocore-1.39.8

Description

Low-level, data-driven core of boto 3

Added to portage

2025-07-18

c-blosc2 - 2.19.1
Ebuild name:

dev-libs/c-blosc2-2.19.1

Description

Blocking, shuffling and lossless compression library

Added to portage

2025-07-18

collectd - 5.12.0-r12
Ebuild name:

app-metrics/collectd-5.12.0-r12

Description

Collects system statistics and provides mechanisms to store the val

Added to portage

2025-07-18

cpuinfo - 2025.03.21
Ebuild name:

dev-libs/cpuinfo-2025.03.21

Description

CPU INFOrmation library

Added to portage

2025-07-18

dist-kernel - 5.10.240
Ebuild name:

virtual/dist-kernel-5.10.240

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-07-18

dist-kernel - 5.15.189
Ebuild name:

virtual/dist-kernel-5.15.189

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-07-18

dist-kernel - 6.1.146
Ebuild name:

virtual/dist-kernel-6.1.146

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-07-18

dist-kernel - 6.12.39
Ebuild name:

virtual/dist-kernel-6.12.39

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-07-18

dist-kernel - 6.15.7
Ebuild name:

virtual/dist-kernel-6.15.7

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-07-18

dist-kernel - 6.6.99
Ebuild name:

virtual/dist-kernel-6.6.99

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-07-18

distlib - 0.4.0
Ebuild name:

dev-python/distlib-0.4.0

Description

Low-level components of distutils2/packaging

Added to portage

2025-07-18

elt-patches - 20250718
Ebuild name:

app-portage/elt-patches-20250718

Description

Collection of patches for libtool.eclass

Added to portage

2025-07-18

fastfetch - 2.48.1
Ebuild name:

app-misc/fastfetch-2.48.1

Description

Fast neofetch-like system information tool

Added to portage

2025-07-18

freeradius - 3.2.6-r1
Ebuild name:

net-dialup/freeradius-3.2.6-r1

Description

Highly configurable free RADIUS server

Added to portage

2025-07-18

gentoo-kernel - 5.10.240
Ebuild name:

sys-kernel/gentoo-kernel-5.10.240

Description

Linux kernel built with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel - 5.15.189
Ebuild name:

sys-kernel/gentoo-kernel-5.15.189

Description

Linux kernel built with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel - 6.1.146
Ebuild name:

sys-kernel/gentoo-kernel-6.1.146

Description

Linux kernel built with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel - 6.12.39
Ebuild name:

sys-kernel/gentoo-kernel-6.12.39

Description

Linux kernel built with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel - 6.15.7
Ebuild name:

sys-kernel/gentoo-kernel-6.15.7

Description

Linux kernel built with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel - 6.6.99
Ebuild name:

sys-kernel/gentoo-kernel-6.6.99

Description

Linux kernel built with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel-bin - 5.10.240
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.240

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel-bin - 5.15.189
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.189

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel-bin - 6.1.146
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.146

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel-bin - 6.12.39
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.39

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel-bin - 6.15.7
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.15.7

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-07-18

gentoo-kernel-bin - 6.6.99
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.99

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-07-18

gentoo-sources - 5.10.240
Ebuild name:

sys-kernel/gentoo-sources-5.10.240

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-07-18

gentoo-sources - 5.15.189
Ebuild name:

sys-kernel/gentoo-sources-5.15.189

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-07-18

gentoo-sources - 6.1.146
Ebuild name:

sys-kernel/gentoo-sources-6.1.146

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-07-18

gentoo-sources - 6.12.39
Ebuild name:

sys-kernel/gentoo-sources-6.12.39

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-07-18

gentoo-sources - 6.15.7
Ebuild name:

sys-kernel/gentoo-sources-6.15.7

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-07-18

gentoo-sources - 6.6.99
Ebuild name:

sys-kernel/gentoo-sources-6.6.99

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-07-18

grafana-bin - 11.4.6
Ebuild name:

www-apps/grafana-bin-11.4.6

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2025-07-18

grafana-bin - 11.5.6
Ebuild name:

www-apps/grafana-bin-11.5.6

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2025-07-18

grafana-bin - 12.0.2
Ebuild name:

www-apps/grafana-bin-12.0.2

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2025-07-18

hydra - 9.5-r11
Ebuild name:

net-analyzer/hydra-9.5-r11

Description

Parallelized network login hacker

Added to portage

2025-07-18

iwdevtools - 0.13.0
Ebuild name:

app-portage/iwdevtools-0.13.0

Description

Small tools to aid with Gentoo development, primarily intended for QA

Added to portage

2025-07-18

json - 2.13.0
Ebuild name:

dev-ruby/json-2.13.0

Description

A JSON implementation as a Ruby extension

Added to portage

2025-07-18

jsonschema - 4.24.1
Ebuild name:

dev-python/jsonschema-4.24.1

Description

An implementation of JSON-Schema validation for Python

Added to portage

2025-07-18

ktextaddons - 1.6.0
Ebuild name:

dev-libs/ktextaddons-1.6.0

Description

Various text handling addons

Added to portage

2025-07-18

libqalculate - 5.6.0
Ebuild name:

sci-libs/libqalculate-5.6.0

Description

A modern multi-purpose calculator library

Added to portage

2025-07-18

mkl - 2025.2.0.628
Ebuild name:

sci-libs/mkl-2025.2.0.628

Description

Intel Math Kernel Library

Added to portage

2025-07-18

mongodb-compass-bin - 1.46.6
Ebuild name:

dev-db/mongodb-compass-bin-1.46.6

Description

GUI for MongoDB

Added to portage

2025-07-18

narwhals - 1.47.1
Ebuild name:

dev-python/narwhals-1.47.1

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2025-07-18

netdata-go-plugin - 1.47.5-r1
Ebuild name:

net-analyzer/netdata-go-plugin-1.47.5-r1

Description

Netdata plugin for collectors written in Go

Added to portage

2025-07-18

nh3 - 0.3.0
Ebuild name:

dev-python/nh3-0.3.0

Description

Ammonia HTML sanitizer Python binding

Added to portage

2025-07-18

nspr - 4.37
Ebuild name:

dev-libs/nspr-4.37

Description

Netscape Portable Runtime

Added to portage

2025-07-18

nvidia-cuda-toolkit - 12.9.1
Ebuild name:

dev-util/nvidia-cuda-toolkit-12.9.1

Description

NVIDIA CUDA Toolkit (compiler and friends)

Added to portage

2025-07-18

opendkim - 2.10.3-r34
Ebuild name:

mail-filter/opendkim-2.10.3-r34

Description

A milter providing DKIM signing and verification

Added to portage

2025-07-18

pgmemcache - 2.3.0-r1
Ebuild name:

dev-db/pgmemcache-2.3.0-r1

Description

A PostgreSQL API based on libmemcached to interface with memcached

Added to portage

2025-07-18

pgpool2 - 4.4.7-r1
Ebuild name:

dev-db/pgpool2-4.4.7-r1

Description

Connection pool server for PostgreSQL

Added to portage

2025-07-18

pikepdf - 9.10.2
Ebuild name:

dev-python/pikepdf-9.10.2

Description

Python library to work with pdf files based on qpdf

Added to portage

2025-07-18

postfix - 3.11_pre20250717
Ebuild name:

mail-mta/postfix-3.11_pre20250717

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-07-18

postgresql - 18_beta2
Ebuild name:

dev-db/postgresql-18_beta2

Description

PostgreSQL RDBMS

Added to portage

2025-07-18

proftpd - 1.3.9-r2
Ebuild name:

net-ftp/proftpd-1.3.9-r2

Description

An advanced and very configurable FTP server

Added to portage

2025-07-18

pyarrow - 21.0.0
Ebuild name:

dev-python/pyarrow-21.0.0

Description

Python library for Apache Arrow

Added to portage

2025-07-18

pylibmc - 1.6.3-r2
Ebuild name:

dev-python/pylibmc-1.6.3-r2

Description

Libmemcached wrapper written as a Python extension

Added to portage

2025-07-18

pytest-lazy-fixtures - 1.3.2
Ebuild name:

dev-python/pytest-lazy-fixtures-1.3.2

Description

Allows you to use fixtures in @pytest.mark.parametrize

Added to portage

2025-07-18

pytest-services - 2.2.2
Ebuild name:

dev-python/pytest-services-2.2.2

Description

Collection of fixtures and utility functions to run service proces

Added to portage

2025-07-18

qalculate-gtk - 5.6.0
Ebuild name:

sci-calculators/qalculate-gtk-5.6.0

Description

Modern multi-purpose calculator

Added to portage

2025-07-18

qalculate-qt - 5.6.0
Ebuild name:

sci-calculators/qalculate-qt-5.6.0

Description

Qt-based UI for libqalculate

Added to portage

2025-07-18

recog - 3.1.18
Ebuild name:

dev-ruby/recog-3.1.18

Description

Pattern recognition for hosts, services, and content

Added to portage

2025-07-18

rencode - 1.0.8-r1
Ebuild name:

dev-python/rencode-1.0.8-r1

Description

Serialization similar to bencode from the BitTorrent project

Added to portage

2025-07-18

sigil - 2.6.0
Ebuild name:

app-text/sigil-2.6.0

Description

Multi-platform WYSIWYG ebook editor for ePub format

Added to portage

2025-07-18

simplecov-html - 0.13.2
Ebuild name:

dev-ruby/simplecov-html-0.13.2

Description

Generates a HTML report of your SimpleCov ruby code coverage results

Added to portage

2025-07-18

sogo - 5.2.0-r1
Ebuild name:

gnustep-apps/sogo-5.2.0-r1

Description

Groupware server built around OpenGroupware.org and the SOPE application

Added to portage

2025-07-18

supercollider - 3.14.0_rc2
Ebuild name:

media-sound/supercollider-3.14.0_rc2

Description

Environment and programming language for real time audio synth

Added to portage

2025-07-18

thunar - 4.20.4
Ebuild name:

xfce-base/thunar-4.20.4

Description

File manager for the Xfce desktop environment

Added to portage

2025-07-18

uv - 0.7.22
Ebuild name:

dev-python/uv-0.7.22

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-07-18

uv-build - 0.7.22
Ebuild name:

dev-python/uv-build-0.7.22

Description

PEP517 uv build backend

Added to portage

2025-07-18

vanilla-kernel - 5.10.240
Ebuild name:

sys-kernel/vanilla-kernel-5.10.240

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-07-18

vanilla-kernel - 5.15.189
Ebuild name:

sys-kernel/vanilla-kernel-5.15.189

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-07-18

vanilla-kernel - 6.1.146
Ebuild name:

sys-kernel/vanilla-kernel-6.1.146

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-07-18

vanilla-kernel - 6.12.39
Ebuild name:

sys-kernel/vanilla-kernel-6.12.39

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-07-18

vanilla-kernel - 6.15.7
Ebuild name:

sys-kernel/vanilla-kernel-6.15.7

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-07-18

vanilla-kernel - 6.6.99
Ebuild name:

sys-kernel/vanilla-kernel-6.6.99

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-07-18

vanilla-sources - 5.10.240
Ebuild name:

sys-kernel/vanilla-sources-5.10.240

Description

Full sources for the Linux kernel

Added to portage

2025-07-18

vanilla-sources - 5.15.189
Ebuild name:

sys-kernel/vanilla-sources-5.15.189

Description

Full sources for the Linux kernel

Added to portage

2025-07-18

vanilla-sources - 5.4.296
Ebuild name:

sys-kernel/vanilla-sources-5.4.296

Description

Full sources for the Linux kernel

Added to portage

2025-07-18

vanilla-sources - 6.1.146
Ebuild name:

sys-kernel/vanilla-sources-6.1.146

Description

Full sources for the Linux kernel

Added to portage

2025-07-18

vanilla-sources - 6.12.39
Ebuild name:

sys-kernel/vanilla-sources-6.12.39

Description

Full sources for the Linux kernel

Added to portage

2025-07-18

vanilla-sources - 6.15.7
Ebuild name:

sys-kernel/vanilla-sources-6.15.7

Description

Full sources for the Linux kernel

Added to portage

2025-07-18

vanilla-sources - 6.6.99
Ebuild name:

sys-kernel/vanilla-sources-6.6.99

Description

Full sources for the Linux kernel

Added to portage

2025-07-18

yaz - 5.35.1-r1
Ebuild name:

dev-libs/yaz-5.35.1-r1

Description

C/C++ toolkit for Z39.50v3 clients and servers

Added to portage

2025-07-18

yubikey-manager - 5.7.0-r2
Ebuild name:

app-crypt/yubikey-manager-5.7.0-r2

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-07-18

yubikey-manager - 5.7.2
Ebuild name:

app-crypt/yubikey-manager-5.7.2

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-07-18

yubikey-manager-qt - 1.2.5
Ebuild name:

app-crypt/yubikey-manager-qt-1.2.5

Description

Cross-platform application for configuring any YubiKey over all

Added to portage

2025-07-18

yubioath-flutter-bin - 6.1.0-r3
Ebuild name:

app-crypt/yubioath-flutter-bin-6.1.0-r3

Description

Yubico Authenticator for TOTP

Added to portage

2025-07-18

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: 55.5 ms