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:

82446

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-14
concurrent-ruby - 1.3.6
Ebuild name:

dev-ruby/concurrent-ruby-1.3.6

Description

Modern concurrency tools including agents, futures, promises, thread

Added to portage

2025-12-14

flog - 4.9.0
Ebuild name:

dev-ruby/flog-4.9.0

Description

Flog reports the most tortured code in an easy to read pain report

Added to portage

2025-12-14

grub-themes-gentoo - 1.0
Ebuild name:

sys-boot/grub-themes-gentoo-1.0

Description

Grub2 Themes for Gentoo

Added to portage

2025-12-14

openresolv - 3.17.3
Ebuild name:

net-dns/openresolv-3.17.3

Description

A framework for managing DNS information

Added to portage

2025-12-14

ponysay - 3.0.3-r2
Ebuild name:

games-misc/ponysay-3.0.3-r2

Description

cowsay reimplemention for ponies

Added to portage

2025-12-14

ttfautohint - 1.8.4-r4
Ebuild name:

media-gfx/ttfautohint-1.8.4-r4

Description

Application and libary for hinting TrueType fonts

Added to portage

2025-12-14

2025-12-13
acme-client - 2.0.29
Ebuild name:

dev-ruby/acme-client-2.0.29

Description

A Ruby client for the letsencrypt's ACME protocol

Added to portage

2025-12-13

authlib - 1.6.6
Ebuild name:

dev-python/authlib-1.6.6

Description

A Python library in building OAuth and OpenID Connect servers and clients

Added to portage

2025-12-13

awscli - 1.43.15
Ebuild name:

app-admin/awscli-1.43.15

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-13

beartype - 0.22.9
Ebuild name:

dev-python/beartype-0.22.9

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2025-12-13

boogie - 3.5.6
Ebuild name:

dev-lang/boogie-3.5.6

Description

SMT-based program verifier

Added to portage

2025-12-13

boto3 - 1.42.9
Ebuild name:

dev-python/boto3-1.42.9

Description

The AWS SDK for Python

Added to portage

2025-12-13

botocore - 1.42.9
Ebuild name:

dev-python/botocore-1.42.9

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-13

cachetools - 6.2.3
Ebuild name:

dev-python/cachetools-6.2.3

Description

Extensible memoizing collections and decorators

Added to portage

2025-12-13

capistrano - 3.20.0
Ebuild name:

dev-ruby/capistrano-3.20.0

Description

A distributed application deployment system

Added to portage

2025-12-13

chrome-binary-plugins - 143.0.7499.109
Ebuild name:

www-plugins/chrome-binary-plugins-143.0.7499.109

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2025-12-13

chrome-binary-plugins - 144.0.7559.20_beta
Ebuild name:

www-plugins/chrome-binary-plugins-144.0.7559.20_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2025-12-13

chrome-binary-plugins - 145.0.7572.2_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-145.0.7572.2_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2025-12-13

chromedriver-bin - 143.0.7499.109
Ebuild name:

www-apps/chromedriver-bin-143.0.7499.109

Description

WebDriver for Chrome

Added to portage

2025-12-13

chromium - 143.0.7499.109
Ebuild name:

www-client/chromium-143.0.7499.109

Description

Open-source version of Google Chrome web browser

Added to portage

2025-12-13

clojure - 1.12.4
Ebuild name:

dev-lang/clojure-1.12.4

Description

General-purpose programming language with an emphasis on functional program

Added to portage

2025-12-13

cpuinfo - 2025.11.14
Ebuild name:

dev-libs/cpuinfo-2025.11.14

Description

CPU INFOrmation library

Added to portage

2025-12-13

dar - 2.8.2
Ebuild name:

app-backup/dar-2.8.2

Description

A full featured backup tool, aimed for disks

Added to portage

2025-12-13

devcontainer - 0.80.3
Ebuild name:

app-containers/devcontainer-0.80.3

Description

Reference implementation of the Development Containers specifica

Added to portage

2025-12-13

dist-kernel - 6.12.62
Ebuild name:

virtual/dist-kernel-6.12.62

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-13

dist-kernel - 6.17.12
Ebuild name:

virtual/dist-kernel-6.17.12

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-13

duckdb - 1.4.3
Ebuild name:

dev-db/duckdb-1.4.3

Description

high-performance analytical database system

Added to portage

2025-12-13

flask-cors - 6.0.2
Ebuild name:

dev-python/flask-cors-6.0.2

Description

A Flask extension for Cross Origin Resource Sharing (CORS)

Added to portage

2025-12-13

fonttools - 4.61.1
Ebuild name:

dev-python/fonttools-4.61.1

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2025-12-13

gallery-dl - 1.31.0
Ebuild name:

net-misc/gallery-dl-1.31.0

Description

Download image galleries and collections from several image hosting site

Added to portage

2025-12-13

gentoo-kernel - 6.12.62
Ebuild name:

sys-kernel/gentoo-kernel-6.12.62

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-13

gentoo-kernel - 6.17.12
Ebuild name:

sys-kernel/gentoo-kernel-6.17.12

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-13

gentoo-kernel-bin - 6.12.62
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.62

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-13

gentoo-kernel-bin - 6.17.12
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.17.12

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-13

google-chrome - 143.0.7499.109
Ebuild name:

www-client/google-chrome-143.0.7499.109

Description

The web browser from Google

Added to portage

2025-12-13

google-chrome-beta - 144.0.7559.20
Ebuild name:

www-client/google-chrome-beta-144.0.7559.20

Description

The web browser from Google

Added to portage

2025-12-13

google-chrome-unstable - 145.0.7572.2
Ebuild name:

www-client/google-chrome-unstable-145.0.7572.2

Description

The web browser from Google

Added to portage

2025-12-13

kstars - 3.8.0
Ebuild name:

sci-astronomy/kstars-3.8.0

Description

Desktop Planetarium

Added to portage

2025-12-13

libgpr - 26.0.0
Ebuild name:

dev-ada/libgpr-26.0.0

Description

Ada library to handle GPRbuild project files

Added to portage

2025-12-13

mac - 11.90
Ebuild name:

media-sound/mac-11.90

Description

Monkey's Audio Codecs

Added to portage

2025-12-13

microsoft-edge - 143.0.3650.80
Ebuild name:

www-client/microsoft-edge-143.0.3650.80

Description

The web browser from Microsoft

Added to portage

2025-12-13

microsoft-edge-beta - 143.0.3650.66
Ebuild name:

www-client/microsoft-edge-beta-143.0.3650.66

Description

The web browser from Microsoft

Added to portage

2025-12-13

minitest - 5.27.0
Ebuild name:

dev-ruby/minitest-5.27.0

Description

minitest/unit is a small and fast replacement for ruby's huge and slow tes

Added to portage

2025-12-13

moarvm - 2025.11
Ebuild name:

dev-lang/moarvm-2025.11

Description

A 6model-based VM for NQP and Raku

Added to portage

2025-12-13

nqp - 2025.11
Ebuild name:

dev-lang/nqp-2025.11

Description

Not Quite Perl, a Raku bootstrapping compiler

Added to portage

2025-12-13

opera - 125.0.5729.21
Ebuild name:

www-client/opera-125.0.5729.21

Description

A fast and secure web browser

Added to portage

2025-12-13

opera-developer - 126.0.5742.0
Ebuild name:

www-client/opera-developer-126.0.5742.0

Description

A fast and secure web browser

Added to portage

2025-12-13

opera-developer - 126.0.5744.0
Ebuild name:

www-client/opera-developer-126.0.5744.0

Description

A fast and secure web browser

Added to portage

2025-12-13

org-superstar-mode - 1.5.0
Ebuild name:

app-emacs/org-superstar-mode-1.5.0

Description

Prettify headings and plain lists in Org mode (use UTF8 bullets)

Added to portage

2025-12-13

osm - 1.10
Ebuild name:

app-emacs/osm-1.10

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-13

osm - 1.9
Ebuild name:

app-emacs/osm-1.9

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-13

osm - 9999
Ebuild name:

app-emacs/osm-9999

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2025-12-13

outline-magic - 0.9
Ebuild name:

app-emacs/outline-magic-0.9

Description

Outline mode extensions for Emacs

Added to portage

2025-12-13

puppet_forge - 6.1.0
Ebuild name:

dev-ruby/puppet_forge-6.1.0

Description

Tools to access Forge API information on Modules, Users, and Releases

Added to portage

2025-12-13

pydf - 15
Ebuild name:

app-admin/pydf-15

Description

Enhanced df with colors

Added to portage

2025-12-13

pytest-describe - 3.1.0
Ebuild name:

dev-python/pytest-describe-3.1.0

Description

Describe-style plugin for pytest

Added to portage

2025-12-13

rakudo - 2025.11
Ebuild name:

dev-lang/rakudo-2025.11

Description

A compiler for the Raku programming language

Added to portage

2025-12-13

rclone - 1.72.1
Ebuild name:

net-misc/rclone-1.72.1

Description

A program to sync files to and from various cloud storage providers

Added to portage

2025-12-13

ruff - 0.14.9
Ebuild name:

dev-util/ruff-0.14.9

Description

An extremely fast Python linter, written in Rust

Added to portage

2025-12-13

simdjson - 4.2.3
Ebuild name:

dev-libs/simdjson-4.2.3

Description

SIMD accelerated C++ JSON library

Added to portage

2025-12-13

sourcegit - 2025.39
Ebuild name:

dev-vcs/sourcegit-2025.39

Description

Open Source Git GUI client using .NET AvaloniaUI

Added to portage

2025-12-13

sqlitestudio - 4.0.0_pre20251207
Ebuild name:

dev-db/sqlitestudio-4.0.0_pre20251207

Description

Powerful cross-platform SQLite database manager

Added to portage

2025-12-13

sshkit - 1.25.0
Ebuild name:

dev-ruby/sshkit-1.25.0

Description

SSHKit makes it easy to write structured, testable SSH commands in Ruby

Added to portage

2025-12-13

steve - 1.2.0
Ebuild name:

dev-build/steve-1.2.0

Description

A load-balancing jobserver for Gentoo

Added to portage

2025-12-13

supercollider - 3.14.1-r1
Ebuild name:

media-sound/supercollider-3.14.1-r1

Description

Environment and programming language for real time audio synthe

Added to portage

2025-12-13

syd - 3.46.0
Ebuild name:

sys-apps/syd-3.46.0

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2025-12-13

tifffile - 2025.12.12
Ebuild name:

dev-python/tifffile-2025.12.12

Description

Read and write TIFF files

Added to portage

2025-12-13

vanilla-kernel - 6.12.62
Ebuild name:

sys-kernel/vanilla-kernel-6.12.62

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-13

vanilla-kernel - 6.17.12
Ebuild name:

sys-kernel/vanilla-kernel-6.17.12

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-13

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