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:

82417

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-12
akonadi - 25.12.0
Ebuild name:

kde-apps/akonadi-25.12.0

Description

Storage service for PIM data and libraries for PIM apps

Added to portage

2025-12-12

akonadi-calendar - 25.12.0
Ebuild name:

kde-apps/akonadi-calendar-25.12.0

Description

Library for akonadi calendar integration

Added to portage

2025-12-12

akonadi-calendar-tools-common - 25.12.0
Ebuild name:

kde-apps/akonadi-calendar-tools-common-25.12.0

Description

Added to portage

2025-12-12

akonadi-contacts - 25.12.0
Ebuild name:

kde-apps/akonadi-contacts-25.12.0

Description

Library for akonadi contact integration

Added to portage

2025-12-12

akonadi-import-wizard - 25.12.0
Ebuild name:

kde-apps/akonadi-import-wizard-25.12.0

Description

Assistant to import PIM data from other applications into Ak

Added to portage

2025-12-12

akonadi-mime - 25.12.0
Ebuild name:

kde-apps/akonadi-mime-25.12.0

Description

Library for akonadi mime types

Added to portage

2025-12-12

akonadi-search - 25.12.0
Ebuild name:

kde-apps/akonadi-search-25.12.0

Description

Libraries and daemons to implement searching in Akonadi

Added to portage

2025-12-12

akonadiconsole - 25.12.0
Ebuild name:

kde-apps/akonadiconsole-25.12.0

Description

Application for debugging Akonadi Resources

Added to portage

2025-12-12

akregator - 25.12.0
Ebuild name:

kde-apps/akregator-25.12.0

Description

News feed aggregator

Added to portage

2025-12-12

analitza - 25.12.0
Ebuild name:

kde-apps/analitza-25.12.0

Description

KDE library for mathematical features

Added to portage

2025-12-12

ark - 25.12.0
Ebuild name:

kde-apps/ark-25.12.0

Description

File archiver by KDE

Added to portage

2025-12-12

artikulate - 25.12.0
Ebuild name:

kde-apps/artikulate-25.12.0

Description

Language learning application that helps improving pronunciation skills

Added to portage

2025-12-12

audiocd-kio - 25.12.0
Ebuild name:

kde-apps/audiocd-kio-25.12.0

Description

KIO worker for accessing audio CDs

Added to portage

2025-12-12

baloo-widgets - 25.12.0
Ebuild name:

kde-apps/baloo-widgets-25.12.0

Description

Widget library for baloo

Added to portage

2025-12-12

blinken - 25.12.0
Ebuild name:

kde-apps/blinken-25.12.0

Description

Memory enhancement game based on KDE Frameworks

Added to portage

2025-12-12

calligra - 25.12.0
Ebuild name:

app-office/calligra-25.12.0

Description

KDE Office Suite

Added to portage

2025-12-12

dolphin-plugins-makefileactions - 25.12.0
Ebuild name:

dev-build/dolphin-plugins-makefileactions-25.12.0

Description

Dolphin plugin for Makefile targets integration

Added to portage

2025-12-12

dolphin-plugins-mountiso - 25.12.0
Ebuild name:

app-cdr/dolphin-plugins-mountiso-25.12.0

Description

Dolphin plugin for ISO loopback device mounting

Added to portage

2025-12-12

francis - 25.12.0
Ebuild name:

app-misc/francis-25.12.0

Description

Productivity application using the well-known pomodoro technique

Added to portage

2025-12-12

gapi-ocaml - 0.4.7
Ebuild name:

dev-ml/gapi-ocaml-0.4.7

Description

A simple OCaml client for Google Services

Added to portage

2025-12-12

gprconfig_kb - 26.0.0
Ebuild name:

dev-ada/gprconfig_kb-26.0.0

Description

GPR configuration knowledge base

Added to portage

2025-12-12

isoimagewriter - 25.12.0
Ebuild name:

app-cdr/isoimagewriter-25.12.0

Description

Write hybrid ISO files onto a USB disk

Added to portage

2025-12-12

kdevelop - 25.12.0
Ebuild name:

dev-util/kdevelop-25.12.0

Description

Integrated Development Environment, supporting KF6/Qt, C/C++ and much mor

Added to portage

2025-12-12

kdevelop-php - 25.12.0
Ebuild name:

dev-util/kdevelop-php-25.12.0

Description

PHP plugin for KDevelop

Added to portage

2025-12-12

kdevelop-python - 25.12.0
Ebuild name:

dev-util/kdevelop-python-25.12.0

Description

Python plugin for KDevelop

Added to portage

2025-12-12

keysmith - 25.12.0
Ebuild name:

app-crypt/keysmith-25.12.0

Description

OTP client for Plasma Mobile and Desktop

Added to portage

2025-12-12

kio-admin - 25.12.0
Ebuild name:

app-admin/kio-admin-25.12.0

Description

Manage files as administrator using the admin KIO protocol

Added to portage

2025-12-12

kio-perldoc - 25.12.0
Ebuild name:

dev-util/kio-perldoc-25.12.0

Description

KIO worker interface to browse Perl documentation

Added to portage

2025-12-12

kontrast - 25.12.0
Ebuild name:

app-accessibility/kontrast-25.12.0

Description

Tool to check contrast for colors to verify they are correctly a

Added to portage

2025-12-12

kopeninghours - 25.12.0
Ebuild name:

dev-libs/kopeninghours-25.12.0

Description

Library for parsing and evaluating OSM opening hours expressions

Added to portage

2025-12-12

kosmindoormap - 25.12.0
Ebuild name:

dev-libs/kosmindoormap-25.12.0

Description

Data Model and Extraction System for Travel Reservation information

Added to portage

2025-12-12

kpublictransport - 25.12.0
Ebuild name:

dev-libs/kpublictransport-25.12.0

Description

Library for accessing public transport timetables and other infor

Added to portage

2025-12-12

kweathercore - 25.12.0
Ebuild name:

dev-libs/kweathercore-25.12.0

Description

Library for retrieval of weather information including forecasts and

Added to portage

2025-12-12

massif-visualizer - 25.12.0
Ebuild name:

dev-util/massif-visualizer-25.12.0

Description

Tool visualising massif data

Added to portage

2025-12-12

memoist3 - 1.0.0
Ebuild name:

dev-ruby/memoist3-1.0.0

Description

ActiveSupport with a few enhancements

Added to portage

2025-12-12

merkuro - 25.12.0
Ebuild name:

app-office/merkuro-25.12.0

Description

Calendar application using Akonadi

Added to portage

2025-12-12

nanobind - 2.10.2
Ebuild name:

dev-python/nanobind-2.10.2

Description

Tiny and efficient C++/Python bindings

Added to portage

2025-12-12

package-lint - 0.26
Ebuild name:

app-emacs/package-lint-0.26

Description

Linting library for Emacs Lisp package metadata

Added to portage

2025-12-12

pandoc-mode - 2.35
Ebuild name:

app-emacs/pandoc-mode-2.35

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2025-12-12

pandoc-mode - 2.90.2
Ebuild name:

app-emacs/pandoc-mode-2.90.2

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2025-12-12

paredit - 26-r1
Ebuild name:

app-emacs/paredit-26-r1

Description

Minor mode for performing structured editing of S-expressions

Added to portage

2025-12-12

pariemacs - 3.14-r1
Ebuild name:

app-emacs/pariemacs-3.14-r1

Description

sci-mathematics/pari emacs mode

Added to portage

2025-12-12

parsebib - 6.7
Ebuild name:

app-emacs/parsebib-6.7

Description

Emacs Lisp library for reading .bib files

Added to portage

2025-12-12

rust - 1.92.0_p1
Ebuild name:

dev-lang/rust-1.92.0_p1

Description

Systems programming language originally developed by Mozilla

Added to portage

2025-12-12

rust-bin - 1.92.0
Ebuild name:

dev-lang/rust-bin-1.92.0

Description

Added to portage

2025-12-12

rust-common - 1.92.0
Ebuild name:

dev-lang/rust-common-1.92.0

Description

Common files shared between multiple slots of Rust

Added to portage

2025-12-12

scipy - 1.17.0_rc1
Ebuild name:

dev-python/scipy-1.17.0_rc1

Description

Scientific algorithms library for Python

Added to portage

2025-12-12

scribus - 1.7.1_pre20251210
Ebuild name:

app-office/scribus-1.7.1_pre20251210

Description

Desktop publishing (DTP) and layout program

Added to portage

2025-12-12

skladnik - 25.12.0
Ebuild name:

games-puzzle/skladnik-25.12.0

Description

The Japanese warehouse keeper sokoban game

Added to portage

2025-12-12

solaar - 1.1.18
Ebuild name:

app-misc/solaar-1.1.18

Description

Linux Device Manager for Logitech Unifying Receivers and Paired Devices

Added to portage

2025-12-12

2025-12-11
alsa-lib - 1.2.15-r3
Ebuild name:

media-libs/alsa-lib-1.2.15-r3

Description

Advanced Linux Sound Architecture Library

Added to portage

2025-12-11

awscli - 1.43.13
Ebuild name:

app-admin/awscli-1.43.13

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-11

bacula - 15.0.3-r2
Ebuild name:

app-backup/bacula-15.0.3-r2

Description

Featureful client/server network backup suite

Added to portage

2025-12-11

boto3 - 1.42.7
Ebuild name:

dev-python/boto3-1.42.7

Description

The AWS SDK for Python

Added to portage

2025-12-11

botocore - 1.42.7
Ebuild name:

dev-python/botocore-1.42.7

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-11

camlp5 - 8.03.01-r1
Ebuild name:

dev-ml/camlp5-8.03.01-r1

Description

A preprocessor-pretty-printer of ocaml

Added to portage

2025-12-11

camlp5 - 8.03.06-r1
Ebuild name:

dev-ml/camlp5-8.03.06-r1

Description

A preprocessor-pretty-printer of ocaml

Added to portage

2025-12-11

camlp5 - 8.04.00
Ebuild name:

dev-ml/camlp5-8.04.00

Description

A preprocessor-pretty-printer of ocaml

Added to portage

2025-12-11

certbot - 5.2.2
Ebuild name:

app-crypt/certbot-5.2.2

Description

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

Added to portage

2025-12-11

claude-code - 2.0.64
Ebuild name:

dev-util/claude-code-2.0.64

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2025-12-11

console - 1.34.2
Ebuild name:

dev-ruby/console-1.34.2

Description

Beautiful logging for Ruby

Added to portage

2025-12-11

cucumber-core - 15.4.0
Ebuild name:

dev-util/cucumber-core-15.4.0

Description

Executable feature scenarios

Added to portage

2025-12-11

cucumber-gherkin - 30.1.3
Ebuild name:

dev-util/cucumber-gherkin-30.1.3

Description

Fast Gherkin lexer and parser

Added to portage

2025-12-11

deno-bin - 2.6.0
Ebuild name:

dev-lang/deno-bin-2.6.0

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2025-12-11

diffpdf - 2.1.3-r4
Ebuild name:

app-text/diffpdf-2.1.3-r4

Description

Program that textually or visually compares two PDF files

Added to portage

2025-12-11

gnu-efi - 4.0.4
Ebuild name:

sys-boot/gnu-efi-4.0.4

Description

Library for build EFI Applications

Added to portage

2025-12-11

hcloud - 2.12.0
Ebuild name:

dev-python/hcloud-2.12.0

Description

Official Hetzner Cloud python library

Added to portage

2025-12-11

jenkins-bin - 2.528.3
Ebuild name:

dev-util/jenkins-bin-2.528.3

Description

The leading open source automation server

Added to portage

2025-12-11

jenkins-bin - 2.541
Ebuild name:

dev-util/jenkins-bin-2.541

Description

The leading open source automation server

Added to portage

2025-12-11

mathmod - 13.0-r1
Ebuild name:

sci-mathematics/mathmod-13.0-r1

Description

Plot parametric and implicit surfaces

Added to portage

2025-12-11

matplotlib - 3.10.8
Ebuild name:

dev-python/matplotlib-3.10.8

Description

Pure python plotting library with matlab like syntax

Added to portage

2025-12-11

mattermost-desktop-bin - 6.0.2
Ebuild name:

net-im/mattermost-desktop-bin-6.0.2

Description

Mattermost Desktop application

Added to portage

2025-12-11

mod_h2 - 2.0.37
Ebuild name:

www-apache/mod_h2-2.0.37

Description

HTTP/2 module for Apache

Added to portage

2025-12-11

openbabel - 3.1.1_p20241221-r4
Ebuild name:

sci-chemistry/openbabel-3.1.1_p20241221-r4

Description

Interconverts file formats used in molecular modeling

Added to portage

2025-12-11

parseclj - 1.1.1
Ebuild name:

app-emacs/parseclj-1.1.1

Description

Clojure Parser for Emacs Lisp

Added to portage

2025-12-11

parseedn - 1.2.1
Ebuild name:

app-emacs/parseedn-1.2.1

Description

EDN parser for Emacs Lisp

Added to portage

2025-12-11

perf - 6.18-r1
Ebuild name:

dev-util/perf-6.18-r1

Description

Userland tools for Linux Performance Counters

Added to portage

2025-12-11

pycares - 5.0.0
Ebuild name:

dev-python/pycares-5.0.0

Description

Python interface for c-ares

Added to portage

2025-12-11

qtdeclarative - 6.10.1-r1
Ebuild name:

dev-qt/qtdeclarative-6.10.1-r1

Description

Qt Declarative (Quick 2)

Added to portage

2025-12-11

reportlab - 4.4.6
Ebuild name:

dev-python/reportlab-4.4.6

Description

Tools for generating printable PDF documents from any data source

Added to portage

2025-12-11

scikit-learn - 1.8.0
Ebuild name:

dev-python/scikit-learn-1.8.0

Description

Machine learning library for Python

Added to portage

2025-12-11

selenium-webdriver - 4.39.0
Ebuild name:

dev-ruby/selenium-webdriver-4.39.0

Description

This gem provides Ruby bindings for WebDriver

Added to portage

2025-12-11

signal-desktop-bin - 7.82.0
Ebuild name:

net-im/signal-desktop-bin-7.82.0

Description

Allows you to send and receive messages of Signal Messenger on you

Added to portage

2025-12-11

smb4k - 4.0.5
Ebuild name:

net-misc/smb4k-4.0.5

Description

Advanced network neighborhood browser

Added to portage

2025-12-11

sonic-visualiser - 5.2.1
Ebuild name:

media-sound/sonic-visualiser-5.2.1

Description

Music audio files viewer and analyser

Added to portage

2025-12-11

thunderbird - 140.6.0
Ebuild name:

mail-client/thunderbird-140.6.0

Description

Thunderbird Mail Client

Added to portage

2025-12-11

thunderbird - 146.0
Ebuild name:

mail-client/thunderbird-146.0

Description

Thunderbird Mail Client

Added to portage

2025-12-11

thunderbird-bin - 140.6.0
Ebuild name:

mail-client/thunderbird-bin-140.6.0

Description

Thunderbird Mail Client

Added to portage

2025-12-11

thunderbird-bin - 146.0
Ebuild name:

mail-client/thunderbird-bin-146.0

Description

Thunderbird Mail Client

Added to portage

2025-12-11

types-psutil - 7.1.3.20251211
Ebuild name:

dev-python/types-psutil-7.1.3.20251211

Description

Typing stubs for psutil

Added to portage

2025-12-11

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