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:

82339

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-12-08
basket - 2.49b_p20251207
Ebuild name:

kde-misc/basket-2.49b_p20251207

Description

Multiple information organizer - a DropDrawers clone

Added to portage

2025-12-08

blas-lapack-aux-wrapper - 4
Ebuild name:

sci-libs/blas-lapack-aux-wrapper-4

Description

BLAS/LAPACK wrappers for FlexiBLAS

Added to portage

2025-12-08

guildmaster - 0_pre20250712
Ebuild name:

dev-build/guildmaster-0_pre20250712

Description

FIFO-like jobserver node via CUSE

Added to portage

2025-12-08

mistletoe - 1.5.1
Ebuild name:

dev-python/mistletoe-1.5.1

Description

A fast, extensible Markdown parser in pure Python

Added to portage

2025-12-08

pymdown-extensions - 10.18
Ebuild name:

dev-python/pymdown-extensions-10.18

Description

Extensions for Python Markdown

Added to portage

2025-12-08

pypdf - 6.4.1
Ebuild name:

dev-python/pypdf-6.4.1

Description

Python library to work with PDF files

Added to portage

2025-12-08

pyzstd - 0.19.0
Ebuild name:

dev-python/pyzstd-0.19.0

Description

Support for Zstandard (zstd) compression

Added to portage

2025-12-08

spawn - 25.0.0-r4
Ebuild name:

dev-ada/spawn-25.0.0-r4

Description

Simple API to spawn processes

Added to portage

2025-12-08

xterm - 404
Ebuild name:

x11-terms/xterm-404

Description

Terminal Emulator for X Windows

Added to portage

2025-12-08

xvfbwrapper - 0.2.16
Ebuild name:

dev-python/xvfbwrapper-0.2.16

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2025-12-08

2025-12-07
aruba - 2.3.3
Ebuild name:

dev-util/aruba-2.3.3

Description

Cucumber steps for driving out command line applications

Added to portage

2025-12-07

backports-zstd - 1.2.0
Ebuild name:

dev-python/backports-zstd-1.2.0

Description

Backport of PEP-784 adding Zstandard to the standard library

Added to portage

2025-12-07

certbot - 5.2.1
Ebuild name:

app-crypt/certbot-5.2.1

Description

Let's Encrypt client to automate deployment of X.509 certificates

Added to portage

2025-12-07

cvmfs - 2.13.3
Ebuild name:

net-fs/cvmfs-2.13.3

Description

HTTP read-only file system for distributing software

Added to portage

2025-12-07

dist-kernel - 5.10.247
Ebuild name:

virtual/dist-kernel-5.10.247

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 5.15.197
Ebuild name:

virtual/dist-kernel-5.15.197

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 6.1.159
Ebuild name:

virtual/dist-kernel-6.1.159

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 6.12.61
Ebuild name:

virtual/dist-kernel-6.12.61

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 6.17.11
Ebuild name:

virtual/dist-kernel-6.17.11

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

dist-kernel - 6.6.119
Ebuild name:

virtual/dist-kernel-6.6.119

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-07

django-timezone-field - 7.2.1
Ebuild name:

dev-python/django-timezone-field-7.2.1

Description

A Django app providing database and form fields for timezone

Added to portage

2025-12-07

evolution - 3.58.2-r1
Ebuild name:

mail-client/evolution-3.58.2-r1

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2025-12-07

findimports - 2.8.0
Ebuild name:

dev-python/findimports-2.8.0

Description

Python module import analysis tool

Added to portage

2025-12-07

gcc - 15.2.1_p20251206
Ebuild name:

sys-devel/gcc-15.2.1_p20251206

Description

The GNU Compiler Collection

Added to portage

2025-12-07

geant - 4.11.4.0
Ebuild name:

sci-physics/geant-4.11.4.0

Description

Toolkit for simulation of passage of particles through matter

Added to portage

2025-12-07

geant-data - 4.11.4
Ebuild name:

sci-physics/geant-data-4.11.4

Description

Data files for Geant4 physical processes

Added to portage

2025-12-07

gentoo-kernel - 5.10.247
Ebuild name:

sys-kernel/gentoo-kernel-5.10.247

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 5.15.197
Ebuild name:

sys-kernel/gentoo-kernel-5.15.197

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 6.1.159
Ebuild name:

sys-kernel/gentoo-kernel-6.1.159

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 6.12.61
Ebuild name:

sys-kernel/gentoo-kernel-6.12.61

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 6.17.11
Ebuild name:

sys-kernel/gentoo-kernel-6.17.11

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel - 6.6.119
Ebuild name:

sys-kernel/gentoo-kernel-6.6.119

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 5.10.247
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.10.247

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 5.15.197
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.197

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 6.1.159
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.159

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 6.12.61
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.61

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 6.17.11
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.17.11

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-kernel-bin - 6.6.119
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.119

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-07

gentoo-sources - 5.10.247
Ebuild name:

sys-kernel/gentoo-sources-5.10.247

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 5.15.197
Ebuild name:

sys-kernel/gentoo-sources-5.15.197

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 6.1.159
Ebuild name:

sys-kernel/gentoo-sources-6.1.159

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 6.12.61
Ebuild name:

sys-kernel/gentoo-sources-6.12.61

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 6.17.11
Ebuild name:

sys-kernel/gentoo-sources-6.17.11

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

gentoo-sources - 6.6.119
Ebuild name:

sys-kernel/gentoo-sources-6.6.119

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-07

ibus-typing-booster - 2.28.6
Ebuild name:

app-i18n/ibus-typing-booster-2.28.6

Description

Completion input method for IBus

Added to portage

2025-12-07

kwallet-pam - 6.4.5-r1
Ebuild name:

kde-plasma/kwallet-pam-6.4.5-r1

Description

PAM module to not enter KWallet password again after login

Added to portage

2025-12-07

kwallet-pam - 6.5.3-r1
Ebuild name:

kde-plasma/kwallet-pam-6.5.3-r1

Description

PAM module to not enter KWallet password again after login

Added to portage

2025-12-07

libfilezilla - 0.51.1-r1
Ebuild name:

dev-libs/libfilezilla-0.51.1-r1

Description

C++ library offering some basic functionality for platform-independ

Added to portage

2025-12-07

libfilezilla - 0.52.0-r1
Ebuild name:

dev-libs/libfilezilla-0.52.0-r1

Description

C++ library offering some basic functionality for platform-independ

Added to portage

2025-12-07

librt - 0.7.3
Ebuild name:

dev-python/librt-0.7.3

Description

Mypyc runtime library

Added to portage

2025-12-07

libtmux - 0.51.0
Ebuild name:

dev-python/libtmux-0.51.0

Description

Typed library that provides an ORM wrapper for tmux, a terminal multiplex

Added to portage

2025-12-07

libutf8proc - 2.11.2
Ebuild name:

dev-libs/libutf8proc-2.11.2

Description

A clean C Library for processing UTF-8 Unicode data

Added to portage

2025-12-07

meson - 1.9.2
Ebuild name:

dev-build/meson-1.9.2

Description

Open source build system

Added to portage

2025-12-07

nss - 3.119
Ebuild name:

dev-libs/nss-3.119

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2025-12-07

pacparser - 1.4.6
Ebuild name:

net-libs/pacparser-1.4.6

Description

Library to parse proxy auto-config files

Added to portage

2025-12-07

perf - 6.18
Ebuild name:

dev-util/perf-6.18

Description

Userland tools for Linux Performance Counters

Added to portage

2025-12-07

postfix - 3.10.7
Ebuild name:

mail-mta/postfix-3.10.7

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-12-07

pudb - 2025.1.5
Ebuild name:

dev-python/pudb-2025.1.5

Description

A full-screen, console-based Python debugger

Added to portage

2025-12-07

pytest - 9.0.2
Ebuild name:

dev-python/pytest-9.0.2

Description

Simple powerful testing with Python

Added to portage

2025-12-07

root - 6.38.00
Ebuild name:

sci-physics/root-6.38.00

Description

C++ data analysis framework and interpreter from CERN

Added to portage

2025-12-07

rqrcode - 3.1.1
Ebuild name:

dev-ruby/rqrcode-3.1.1

Description

Library for encoding QR Codes

Added to portage

2025-12-07

rqrcode_core - 2.0.1
Ebuild name:

dev-ruby/rqrcode_core-2.0.1

Description

Library for encoding QR Codes

Added to portage

2025-12-07

selenium - 4.39.0
Ebuild name:

dev-python/selenium-4.39.0

Description

Python language binding for Selenium Remote Control

Added to portage

2025-12-07

selenium-manager - 4.39.0
Ebuild name:

dev-util/selenium-manager-4.39.0

Description

CLI tool that manages the browser/driver infrastructure required b

Added to portage

2025-12-07

sequel - 5.99.0
Ebuild name:

dev-ruby/sequel-5.99.0

Description

A lightweight database toolkit for Ruby

Added to portage

2025-12-07

sys-filesystem - 1.5.5
Ebuild name:

dev-ruby/sys-filesystem-1.5.5

Description

Cross-platform interface for filesystem information

Added to portage

2025-12-07

trimesh - 4.10.1
Ebuild name:

dev-python/trimesh-4.10.1

Description

Python library for loading and using triangular meshes

Added to portage

2025-12-07

uftrace - 0.18.1
Ebuild name:

dev-util/uftrace-0.18.1

Description

Function (graph) tracer for user-space

Added to portage

2025-12-07

vanilla-kernel - 5.10.247
Ebuild name:

sys-kernel/vanilla-kernel-5.10.247

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 5.15.197
Ebuild name:

sys-kernel/vanilla-kernel-5.15.197

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 6.1.159
Ebuild name:

sys-kernel/vanilla-kernel-6.1.159

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 6.12.61
Ebuild name:

sys-kernel/vanilla-kernel-6.12.61

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 6.17.11
Ebuild name:

sys-kernel/vanilla-kernel-6.17.11

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-kernel - 6.6.119
Ebuild name:

sys-kernel/vanilla-kernel-6.6.119

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-07

vanilla-sources - 5.10.247
Ebuild name:

sys-kernel/vanilla-sources-5.10.247

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 5.15.197
Ebuild name:

sys-kernel/vanilla-sources-5.15.197

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 5.4.302
Ebuild name:

sys-kernel/vanilla-sources-5.4.302

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 6.1.159
Ebuild name:

sys-kernel/vanilla-sources-6.1.159

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 6.12.61
Ebuild name:

sys-kernel/vanilla-sources-6.12.61

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 6.17.11
Ebuild name:

sys-kernel/vanilla-sources-6.17.11

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

vanilla-sources - 6.6.119
Ebuild name:

sys-kernel/vanilla-sources-6.6.119

Description

Full sources for the Linux kernel

Added to portage

2025-12-07

webrick - 1.9.2
Ebuild name:

dev-ruby/webrick-1.9.2

Description

An HTTP server toolkit

Added to portage

2025-12-07

yard - 0.9.38
Ebuild name:

dev-ruby/yard-0.9.38

Description

Documentation generation tool for the Ruby programming language

Added to portage

2025-12-07

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