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:

82171

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-26
Audio-Scan - 1.10.0-r4
Ebuild name:

dev-perl/Audio-Scan-1.10.0-r4

Description

Fast C metadata and tag reader for all common audio file formats

Added to portage

2025-11-26

Ogg-Vorbis-Header - 0.110.0-r1
Ebuild name:

dev-perl/Ogg-Vorbis-Header-0.110.0-r1

Description

An object-oriented interface to Ogg Vorbis information and co

Added to portage

2025-11-26

awscli - 1.43.4
Ebuild name:

app-admin/awscli-1.43.4

Description

Universal Command Line Environment for AWS

Added to portage

2025-11-26

beep - 0
Ebuild name:

acct-group/beep-0

Description

Added to portage

2025-11-26

beep - 1.4.12-r3
Ebuild name:

app-misc/beep-1.4.12-r3

Description

Advanced PC speaker beeper

Added to portage

2025-11-26

boto3 - 1.41.4
Ebuild name:

dev-python/boto3-1.41.4

Description

The AWS SDK for Python

Added to portage

2025-11-26

botocore - 1.41.4
Ebuild name:

dev-python/botocore-1.41.4

Description

Low-level, data-driven core of boto 3

Added to portage

2025-11-26

chromaprint - 1.6.0-r1
Ebuild name:

media-libs/chromaprint-1.6.0-r1

Description

Library implementing a custom algorithm for extracting audio finger

Added to portage

2025-11-26

denemo - 2.6.0-r102
Ebuild name:

media-sound/denemo-2.6.0-r102

Description

A music notation editor

Added to portage

2025-11-26

distrobox - 1.8.2.2
Ebuild name:

app-containers/distrobox-1.8.2.2

Description

Use any Linux distribution inside your terminal (powered by docker

Added to portage

2025-11-26

doxygen - 1.15.0
Ebuild name:

app-text/doxygen-1.15.0

Description

Documentation system for most programming languages

Added to portage

2025-11-26

elogind - 255.22-r1
Ebuild name:

sys-auth/elogind-255.22-r1

Description

The systemd project's logind, extracted to a standalone package

Added to portage

2025-11-26

fuse - 1.6.0-r4
Ebuild name:

app-emulation/fuse-1.6.0-r4

Description

Free Unix Spectrum Emulator by Philip Kendall

Added to portage

2025-11-26

gmpy2 - 2.3.0_alpha2
Ebuild name:

dev-python/gmpy2-2.3.0_alpha2

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2025-11-26

guitarix - 0.47.0-r1
Ebuild name:

media-sound/guitarix-0.47.0-r1

Description

Virtual guitar amplifier for Linux

Added to portage

2025-11-26

keepassxc - 2.7.11
Ebuild name:

app-admin/keepassxc-2.7.11

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2025-11-26

kombu - 5.6.1
Ebuild name:

dev-python/kombu-5.6.1

Description

AMQP Messaging Framework for Python

Added to portage

2025-11-26

krb5 - 0.9.0
Ebuild name:

dev-python/krb5-0.9.0

Description

Kerberos API bindings for Python

Added to portage

2025-11-26

libtorrent - 0.16.4
Ebuild name:

net-libs/libtorrent-0.16.4

Description

BitTorrent library written in C++ for *nix

Added to portage

2025-11-26

lowdown - 2.0.2-r1
Ebuild name:

app-text/lowdown-2.0.2-r1

Description

Markdown translator producing HTML5, roff documents in the ms and man for

Added to portage

2025-11-26

mycli - 1.41.2
Ebuild name:

dev-db/mycli-1.41.2

Description

CLI for MySQL Database with auto-completion and syntax highlighting

Added to portage

2025-11-26

nuspell - 5.1.7
Ebuild name:

app-text/nuspell-5.1.7

Description

Spell checker library and CLI for complex natural languages

Added to portage

2025-11-26

patdiff - 0.16.0
Ebuild name:

dev-util/patdiff-0.16.0

Description

Colored patience diffs with word-level refinement

Added to portage

2025-11-26

persist - 0.8
Ebuild name:

app-emacs/persist-0.8

Description

Persist variables between Emacs sessions

Added to portage

2025-11-26

pfuture - 1.10.3
Ebuild name:

app-emacs/pfuture-1.10.3

Description

Simple wrapper around asynchronous processes

Added to portage

2025-11-26

php-mode - 1.27.0
Ebuild name:

app-emacs/php-mode-1.27.0

Description

GNU Emacs major mode for editing PHP code

Added to portage

2025-11-26

php-mode - 9999
Ebuild name:

app-emacs/php-mode-9999

Description

GNU Emacs major mode for editing PHP code

Added to portage

2025-11-26

pinentry - 0.1_p20250408
Ebuild name:

app-emacs/pinentry-0.1_p20250408

Description

GnuPG Pinentry server implementation for Emacs

Added to portage

2025-11-26

pinentry - 0.1_p20250408
Ebuild name:

app-emacs/pinentry-0.1_p20250408

Description

GnuPG Pinentry server implementation for Emacs

Added to portage

2025-11-26

pkg-info - 0.6
Ebuild name:

app-emacs/pkg-info-0.6

Description

Provide information about Emacs packages

Added to portage

2025-11-26

pkg-testing-tools - 0.2.7
Ebuild name:

app-portage/pkg-testing-tools-0.2.7

Description

Packages testing tools for Gentoo

Added to portage

2025-11-26

polymake - 4.15
Ebuild name:

sci-mathematics/polymake-4.15

Description

Tool for polyhedral geometry and combinatorics

Added to portage

2025-11-26

postfix - 3.10.6
Ebuild name:

mail-mta/postfix-3.10.6

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-11-26

postfix - 3.11_pre20251125
Ebuild name:

mail-mta/postfix-3.11_pre20251125

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-11-26

ppx_variants_conv - 0.16.0-r1
Ebuild name:

dev-ml/ppx_variants_conv-0.16.0-r1

Description

Generation of accessor and iteration functions for ocaml variant

Added to portage

2025-11-26

rtorrent - 0.16.4
Ebuild name:

net-p2p/rtorrent-0.16.4

Description

BitTorrent Client using libtorrent

Added to portage

2025-11-26

sendxmpp-scala - 1.2.1
Ebuild name:

net-im/sendxmpp-scala-1.2.1

Description

Send XMPP (Jabber) messages via command line

Added to portage

2025-11-26

spyder - 6.1.1
Ebuild name:

dev-python/spyder-6.1.1

Description

The Scientific Python Development Environment

Added to portage

2025-11-26

spyder-notebook - 0.7.1
Ebuild name:

dev-python/spyder-notebook-0.7.1

Description

Jupyter notebook integration with Spyder

Added to portage

2025-11-26

strawberry - 1.2.15
Ebuild name:

media-sound/strawberry-1.2.15

Description

Modern music player and library organizer based on Clementine and Qt

Added to portage

2025-11-26

strongswan - 6.0.3
Ebuild name:

net-vpn/strongswan-6.0.3

Description

IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE

Added to portage

2025-11-26

synapse - 1.143.0
Ebuild name:

net-im/synapse-1.143.0

Description

Reference implementation of Matrix homeserver

Added to portage

2025-11-26

texstudio - 4.9.0
Ebuild name:

app-office/texstudio-4.9.0

Description

Free cross-platform LaTeX editor (fork from texmakerX)

Added to portage

2025-11-26

tsm - 8.1.27.1
Ebuild name:

app-backup/tsm-8.1.27.1

Description

IBM Storage Protect (former Tivoli Storage Manager) Backup/Archive Client,

Added to portage

2025-11-26

uv - 0.9.12
Ebuild name:

dev-python/uv-0.9.12

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-11-26

uv-build - 0.9.12
Ebuild name:

dev-python/uv-build-0.9.12

Description

PEP517 uv build backend

Added to portage

2025-11-26

virt-firmware - 25.10
Ebuild name:

app-emulation/virt-firmware-25.10

Description

Tools for ovmf/armvirt firmware volumes

Added to portage

2025-11-26

zerotier - 1.16.0-r1
Ebuild name:

net-misc/zerotier-1.16.0-r1

Description

A software-based managed Ethernet switch for planet Earth

Added to portage

2025-11-26

zoom - 6.6.10.5815
Ebuild name:

net-im/zoom-6.6.10.5815

Description

Video conferencing and web conferencing service

Added to portage

2025-11-26

zotero-bin - 7.0.30
Ebuild name:

app-text/zotero-bin-7.0.30

Description

Helps you collect, organize, cite, and share your research sources

Added to portage

2025-11-26

2025-11-25
autobahn - 25.11.1
Ebuild name:

dev-python/autobahn-25.11.1

Description

WebSocket and WAMP for Twisted and Asyncio

Added to portage

2025-11-25

awscli - 1.43.3
Ebuild name:

app-admin/awscli-1.43.3

Description

Universal Command Line Environment for AWS

Added to portage

2025-11-25

bash - 5.4_alpha_pre20251124
Ebuild name:

app-shells/bash-5.4_alpha_pre20251124

Description

The standard GNU Bourne again shell

Added to portage

2025-11-25

bind - 9.18.42
Ebuild name:

net-dns/bind-9.18.42

Description

Berkeley Internet Name Domain - Name Server

Added to portage

2025-11-25

bind - 9.20.16
Ebuild name:

net-dns/bind-9.20.16

Description

Berkeley Internet Name Domain - Name Server

Added to portage

2025-11-25

boto3 - 1.41.3
Ebuild name:

dev-python/boto3-1.41.3

Description

The AWS SDK for Python

Added to portage

2025-11-25

botocore - 1.41.3
Ebuild name:

dev-python/botocore-1.41.3

Description

Low-level, data-driven core of boto 3

Added to portage

2025-11-25

cargo-nextest - 0.9.114
Ebuild name:

dev-util/cargo-nextest-0.9.114

Description

Next-generation test runner for Rust

Added to portage

2025-11-25

dbmail - 3.5.5
Ebuild name:

net-mail/dbmail-3.5.5

Description

Fast and scalable sql based email services

Added to portage

2025-11-25

discord - 0.0.116
Ebuild name:

net-im/discord-0.0.116

Description

All-in-one voice and text chat for gamers

Added to portage

2025-11-25

discord - 0.0.116-r1
Ebuild name:

net-im/discord-0.0.116-r1

Description

All-in-one voice and text chat for gamers

Added to portage

2025-11-25

dist-kernel - 6.12.59
Ebuild name:

virtual/dist-kernel-6.12.59

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-11-25

dist-kernel - 6.17.9
Ebuild name:

virtual/dist-kernel-6.17.9

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-11-25

dist-kernel - 6.6.117
Ebuild name:

virtual/dist-kernel-6.6.117

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-11-25

firefox-bin - 145.0.2
Ebuild name:

www-client/firefox-bin-145.0.2

Description

Firefox Web Browser

Added to portage

2025-11-25

fscrypt - 0.3.6
Ebuild name:

sys-fs/fscrypt-0.3.6

Description

Tool for managing Linux filesystem encryption

Added to portage

2025-11-25

gentoo-kernel - 6.12.59
Ebuild name:

sys-kernel/gentoo-kernel-6.12.59

Description

Linux kernel built with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel - 6.17.9
Ebuild name:

sys-kernel/gentoo-kernel-6.17.9

Description

Linux kernel built with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel - 6.6.117
Ebuild name:

sys-kernel/gentoo-kernel-6.6.117

Description

Linux kernel built with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel-bin - 6.12.59
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.59

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel-bin - 6.17.9
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.17.9

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel-bin - 6.6.117
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.117

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-11-25

gentoo-sources - 6.12.59
Ebuild name:

sys-kernel/gentoo-sources-6.12.59

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-11-25

gentoo-sources - 6.17.9
Ebuild name:

sys-kernel/gentoo-sources-6.17.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-11-25

gentoo-sources - 6.6.117
Ebuild name:

sys-kernel/gentoo-sources-6.6.117

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-11-25

gtk - 4.20.3-r1
Ebuild name:

gui-libs/gtk-4.20.3-r1

Description

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

Added to portage

2025-11-25

httpd-php - 8.5
Ebuild name:

virtual/httpd-php-8.5

Description

Virtual to provide PHP-enabled webservers

Added to portage

2025-11-25

ktextaddons - 1.8.0
Ebuild name:

dev-libs/ktextaddons-1.8.0

Description

Various text handling addons

Added to portage

2025-11-25

libhx - 5.2
Ebuild name:

sys-libs/libhx-5.2

Description

Platform independent library providing basic system functions

Added to portage

2025-11-25

mitmproxy - 12.2.1
Ebuild name:

net-proxy/mitmproxy-12.2.1

Description

An interactive, SSL-capable, man-in-the-middle HTTP proxy

Added to portage

2025-11-25

mitmproxy-linux - 0.12.8
Ebuild name:

net-proxy/mitmproxy-linux-0.12.8

Description

mitmproxy's Rust bits

Added to portage

2025-11-25

mitmproxy-rs - 0.12.8
Ebuild name:

net-proxy/mitmproxy-rs-0.12.8

Description

mitmproxy's Rust bits

Added to portage

2025-11-25

mlt - 7.34.1-r1
Ebuild name:

media-libs/mlt-7.34.1-r1

Description

Open source multimedia framework for television broadcasting

Added to portage

2025-11-25

mpvqt - 1.1.1-r1
Ebuild name:

media-libs/mpvqt-1.1.1-r1

Description

libmpv wrapper for QtQuick2 and QML

Added to portage

2025-11-25

msgspec - 0.20.0
Ebuild name:

dev-python/msgspec-0.20.0

Description

Fast serialization and validation library, with builtin support for many

Added to portage

2025-11-25

networkx - 3.6
Ebuild name:

dev-python/networkx-3.6

Description

Python tools to manipulate graphs and complex networks

Added to portage

2025-11-25

nextcloud - 32.0.2
Ebuild name:

www-apps/nextcloud-32.0.2

Description

Personal cloud that runs on your own server

Added to portage

2025-11-25

nghttp3 - 1.13.1
Ebuild name:

net-libs/nghttp3-1.13.1

Description

HTTP/3 library written in C

Added to portage

2025-11-25

ngtcp2 - 1.18.0
Ebuild name:

net-libs/ngtcp2-1.18.0

Description

Implementation of the IETF QUIC Protocol

Added to portage

2025-11-25

openhab-bin - 5.0.3
Ebuild name:

app-misc/openhab-bin-5.0.3

Description

An open-source automation software for your home

Added to portage

2025-11-25

pax-utils - 1.3.10
Ebuild name:

app-misc/pax-utils-1.3.10

Description

ELF utils that can check files for security relevant properties

Added to portage

2025-11-25

pcsc-lite - 2.4.0
Ebuild name:

sys-apps/pcsc-lite-2.4.0

Description

PC/SC Architecture smartcard middleware library

Added to portage

2025-11-25

pdm - 2.26.2
Ebuild name:

dev-python/pdm-2.26.2

Description

Python package and dependency manager supporting the latest PEP standards

Added to portage

2025-11-25

php - 8.5.0
Ebuild name:

dev-lang/php-8.5.0

Description

The PHP language runtime engine

Added to portage

2025-11-25

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-25

pytest-localserver - 0.10.0
Ebuild name:

dev-python/pytest-localserver-0.10.0

Description

Pytest plugin to test server connections locally

Added to portage

2025-11-25

qtcurve - 1.9.0_p20250314-r2
Ebuild name:

x11-themes/qtcurve-1.9.0_p20250314-r2

Description

Widget styles for Qt and GTK2

Added to portage

2025-11-25

s3fs - 1.96
Ebuild name:

net-fs/s3fs-1.96

Description

Amazon S3 mounting via fuse

Added to portage

2025-11-25

spotify - 1.2.74-r1
Ebuild name:

media-sound/spotify-1.2.74-r1

Description

Spotify is a social music platform

Added to portage

2025-11-25

task - 3.4.2
Ebuild name:

app-misc/task-3.4.2

Description

Command-line todo list manager

Added to portage

2025-11-25

textx - 4.3.0
Ebuild name:

dev-python/textx-4.3.0

Description

Meta-language for DSL implementation inspired by Xtext

Added to portage

2025-11-25

tree-sitter-haskell - 0.23.1
Ebuild name:

dev-libs/tree-sitter-haskell-0.23.1

Description

Haskell grammar for Tree-sitter

Added to portage

2025-11-25

tree-sitter-julia - 0.25.0
Ebuild name:

dev-libs/tree-sitter-julia-0.25.0

Description

Julia grammar for Tree-sitter

Added to portage

2025-11-25

trimesh - 4.10.0
Ebuild name:

dev-python/trimesh-4.10.0

Description

Python library for loading and using triangular meshes

Added to portage

2025-11-25

types-psutil - 7.1.3.20251125
Ebuild name:

dev-python/types-psutil-7.1.3.20251125

Description

Typing stubs for psutil

Added to portage

2025-11-25

udisks - 2.11.0
Ebuild name:

sys-fs/udisks-2.11.0

Description

Daemon providing interfaces to work with storage devices

Added to portage

2025-11-25

upterm - 0.19.0
Ebuild name:

app-misc/upterm-0.19.0

Description

Instant Terminal Sharing

Added to portage

2025-11-25

userspace-rcu - 0.15.5
Ebuild name:

dev-libs/userspace-rcu-0.15.5

Description

Userspace RCU (read-copy-update) library

Added to portage

2025-11-25

vanilla-kernel - 6.12.59
Ebuild name:

sys-kernel/vanilla-kernel-6.12.59

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-11-25

vanilla-kernel - 6.17.9
Ebuild name:

sys-kernel/vanilla-kernel-6.17.9

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-11-25

vanilla-kernel - 6.6.117
Ebuild name:

sys-kernel/vanilla-kernel-6.6.117

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-11-25

vanilla-sources - 6.12.59
Ebuild name:

sys-kernel/vanilla-sources-6.12.59

Description

Full sources for the Linux kernel

Added to portage

2025-11-25

vanilla-sources - 6.17.9
Ebuild name:

sys-kernel/vanilla-sources-6.17.9

Description

Full sources for the Linux kernel

Added to portage

2025-11-25

vanilla-sources - 6.6.117
Ebuild name:

sys-kernel/vanilla-sources-6.6.117

Description

Full sources for the Linux kernel

Added to portage

2025-11-25

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.5 ms