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:

82113

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-19
PEAR-Archive_Tar - 1.6.0
Ebuild name:

dev-php/PEAR-Archive_Tar-1.6.0

Description

Tar file management class

Added to portage

2025-11-19

PEAR-PEAR - 1.10.16
Ebuild name:

dev-php/PEAR-PEAR-1.10.16

Description

PEAR Base System

Added to portage

2025-11-19

aurorae - 6.5.3
Ebuild name:

kde-plasma/aurorae-6.5.3

Description

Themeable window decoration for KWin

Added to portage

2025-11-19

bluedevil - 6.5.3
Ebuild name:

kde-plasma/bluedevil-6.5.3

Description

Bluetooth stack for KDE Plasma

Added to portage

2025-11-19

breeze - 6.5.0
Ebuild name:

kde-plasma/breeze-6.5.0

Description

Breeze visual style for the Plasma desktop

Added to portage

2025-11-19

breeze - 6.5.3
Ebuild name:

kde-plasma/breeze-6.5.3

Description

Breeze visual style for the Plasma desktop

Added to portage

2025-11-19

breeze-grub - 6.5.3
Ebuild name:

kde-plasma/breeze-grub-6.5.3

Description

Breeze theme for GRUB

Added to portage

2025-11-19

breeze-gtk - 6.5.3
Ebuild name:

kde-plasma/breeze-gtk-6.5.3

Description

Official GTK+ port of Plasma's Breeze widget style

Added to portage

2025-11-19

breeze-plymouth - 6.5.3
Ebuild name:

kde-plasma/breeze-plymouth-6.5.3

Description

Breeze theme for Plymouth

Added to portage

2025-11-19

discover - 6.5.3
Ebuild name:

kde-plasma/discover-6.5.3

Description

KDE Plasma resources management GUI

Added to portage

2025-11-19

drkonqi - 6.5.3
Ebuild name:

kde-plasma/drkonqi-6.5.3

Description

Plasma crash handler, gives the user feedback if a program crashed

Added to portage

2025-11-19

flatpak-kcm - 6.5.3
Ebuild name:

kde-plasma/flatpak-kcm-6.5.3

Description

Flatpak Permissions Management KCM

Added to portage

2025-11-19

kactivitymanagerd - 6.5.3
Ebuild name:

kde-plasma/kactivitymanagerd-6.5.3

Description

System service to manage user's activities, track the usage patt

Added to portage

2025-11-19

kde-cli-tools - 6.5.3
Ebuild name:

kde-plasma/kde-cli-tools-6.5.3

Description

Tools based on KDE Frameworks 6 to better interact with the system

Added to portage

2025-11-19

kde-cli-tools-common - 6.5.3
Ebuild name:

kde-plasma/kde-cli-tools-common-6.5.3

Description

Added to portage

2025-11-19

kde-gtk-config - 6.5.3
Ebuild name:

kde-plasma/kde-gtk-config-6.5.3

Description

Syncs KDE Plasma theme settings to GTK applications

Added to portage

2025-11-19

kdecoration - 6.5.3
Ebuild name:

kde-plasma/kdecoration-6.5.3

Description

Plugin based library to create window decorations

Added to portage

2025-11-19

kdeplasma-addons - 6.5.3
Ebuild name:

kde-plasma/kdeplasma-addons-6.5.3

Description

Extra Plasma applets and engines

Added to portage

2025-11-19

kdesu-gui - 6.5.3
Ebuild name:

kde-plasma/kdesu-gui-6.5.3

Description

Graphical frontend for KDE Frameworks' kdesu

Added to portage

2025-11-19

keditfiletype - 6.5.3
Ebuild name:

kde-plasma/keditfiletype-6.5.3

Description

File Type Editor

Added to portage

2025-11-19

kgamma - 6.5.3
Ebuild name:

kde-plasma/kgamma-6.5.3

Description

Screen gamma values kcontrol module

Added to portage

2025-11-19

kglobalacceld - 6.5.3
Ebuild name:

kde-plasma/kglobalacceld-6.5.3

Description

Daemon providing Global Keyboard Shortcut (Accelerator) functionalit

Added to portage

2025-11-19

kinfocenter - 6.5.3
Ebuild name:

kde-plasma/kinfocenter-6.5.3

Description

Utility providing information about the computer hardware

Added to portage

2025-11-19

kmenuedit - 6.5.3
Ebuild name:

kde-plasma/kmenuedit-6.5.3

Description

KDE Plasma menu editor

Added to portage

2025-11-19

knighttime - 6.5.3
Ebuild name:

kde-plasma/knighttime-6.5.3

Description

Helpers for scheduling the dark-light cycle

Added to portage

2025-11-19

kpipewire - 6.5.3
Ebuild name:

kde-plasma/kpipewire-6.5.3

Description

Components relating to Flatpak pipewire use in Plasma

Added to portage

2025-11-19

krdp - 6.5.3
Ebuild name:

kde-plasma/krdp-6.5.3

Description

Library and examples for creating an RDP server

Added to portage

2025-11-19

kscreen - 6.5.3
Ebuild name:

kde-plasma/kscreen-6.5.3

Description

KDE Plasma screen management

Added to portage

2025-11-19

kscreenlocker - 6.5.3
Ebuild name:

kde-plasma/kscreenlocker-6.5.3

Description

Library and components for secure lock screen architecture

Added to portage

2025-11-19

ksshaskpass - 6.5.3
Ebuild name:

kde-plasma/ksshaskpass-6.5.3

Description

Implementation of ssh-askpass with KDE Wallet integration

Added to portage

2025-11-19

ksystemstats - 6.5.3
Ebuild name:

kde-plasma/ksystemstats-6.5.3

Description

Plugin-based system monitoring daemon

Added to portage

2025-11-19

kwallet-pam - 6.5.3
Ebuild name:

kde-plasma/kwallet-pam-6.5.3

Description

PAM module to not enter KWallet password again after login

Added to portage

2025-11-19

kwayland - 6.5.3
Ebuild name:

kde-plasma/kwayland-6.5.3

Description

Qt-style API to interact with the wayland-client API

Added to portage

2025-11-19

kwayland-integration - 6.5.3
Ebuild name:

kde-plasma/kwayland-integration-6.5.3

Description

Provides KWindowSystem integration plugin for Wayland

Added to portage

2025-11-19

kwin - 6.5.3
Ebuild name:

kde-plasma/kwin-6.5.3

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2025-11-19

kwin-x11 - 6.5.3
Ebuild name:

kde-plasma/kwin-x11-6.5.3

Description

Flexible, composited X window manager

Added to portage

2025-11-19

kwrited - 6.5.3
Ebuild name:

kde-plasma/kwrited-6.5.3

Description

KDE Plasma daemon listening for wall and write messages

Added to portage

2025-11-19

layer-shell-qt - 6.5.3
Ebuild name:

kde-plasma/layer-shell-qt-6.5.3

Description

Qt component to allow applications make use of Wayland wl-layer-she

Added to portage

2025-11-19

libkscreen - 6.5.3
Ebuild name:

kde-plasma/libkscreen-6.5.3

Description

Plasma screen management library

Added to portage

2025-11-19

libksysguard - 6.5.3
Ebuild name:

kde-plasma/libksysguard-6.5.3

Description

Task management and system monitoring library

Added to portage

2025-11-19

libplasma - 6.5.3
Ebuild name:

kde-plasma/libplasma-6.5.3

Description

Plasma library and runtime components based upon KF6 and Qt6

Added to portage

2025-11-19

milou - 6.5.3
Ebuild name:

kde-plasma/milou-6.5.3

Description

Dedicated search application built on top of Baloo

Added to portage

2025-11-19

ocean-sound-theme - 6.5.3
Ebuild name:

kde-plasma/ocean-sound-theme-6.5.3

Description

Ocean Sound Theme for Plasma

Added to portage

2025-11-19

oxygen - 6.5.0
Ebuild name:

kde-plasma/oxygen-6.5.0

Description

Oxygen visual style for the Plasma desktop

Added to portage

2025-11-19

oxygen - 6.5.3
Ebuild name:

kde-plasma/oxygen-6.5.3

Description

Oxygen visual style for the Plasma desktop

Added to portage

2025-11-19

oxygen-sounds - 6.5.3
Ebuild name:

kde-plasma/oxygen-sounds-6.5.3

Description

Oxygen sound theme for the Plasma desktop

Added to portage

2025-11-19

plasma-activities - 6.5.3
Ebuild name:

kde-plasma/plasma-activities-6.5.3

Description

Core components for KDE's Activities System

Added to portage

2025-11-19

plasma-activities-stats - 6.5.3
Ebuild name:

kde-plasma/plasma-activities-stats-6.5.3

Description

Library for accessing usage data collected by the activiti

Added to portage

2025-11-19

plasma-browser-integration - 6.5.3
Ebuild name:

kde-plasma/plasma-browser-integration-6.5.3

Description

Integrate Chrome/Firefox better into Plasma through bro

Added to portage

2025-11-19

portpeek - 3.2.9
Ebuild name:

app-portage/portpeek-3.2.9

Description

A helper program for maintaining the package.keyword and package.unmask

Added to portage

2025-11-19

2025-11-18
android-studio - 2025.2.1.8
Ebuild name:

dev-util/android-studio-2025.2.1.8

Description

Android development environment based on IntelliJ IDEA

Added to portage

2025-11-18

awscli - 1.42.75
Ebuild name:

app-admin/awscli-1.42.75

Description

Universal Command Line Environment for AWS

Added to portage

2025-11-18

bandit - 1.9.1
Ebuild name:

dev-python/bandit-1.9.1

Description

A security linter from OpenStack Security

Added to portage

2025-11-18

boto3 - 1.40.75
Ebuild name:

dev-python/boto3-1.40.75

Description

The AWS SDK for Python

Added to portage

2025-11-18

botocore - 1.40.75
Ebuild name:

dev-python/botocore-1.40.75

Description

Low-level, data-driven core of boto 3

Added to portage

2025-11-18

caffe2 - 2.9.1
Ebuild name:

sci-ml/caffe2-2.9.1

Description

A deep learning framework

Added to portage

2025-11-18

chrome-binary-plugins - 142.0.7444.175
Ebuild name:

www-plugins/chrome-binary-plugins-142.0.7444.175

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2025-11-18

chromedriver-bin - 142.0.7444.175
Ebuild name:

www-apps/chromedriver-bin-142.0.7444.175

Description

WebDriver for Chrome

Added to portage

2025-11-18

chromium - 142.0.7444.175
Ebuild name:

www-client/chromium-142.0.7444.175

Description

Open-source version of Google Chrome web browser

Added to portage

2025-11-18

csharp-language-server - 0.20.0
Ebuild name:

dev-dotnet/csharp-language-server-0.20.0

Description

Roslyn-based LSP language server for C

Added to portage

2025-11-18

discord - 0.0.115
Ebuild name:

net-im/discord-0.0.115

Description

All-in-one voice and text chat for gamers

Added to portage

2025-11-18

fldigi - 4.2.10
Ebuild name:

media-radio/fldigi-4.2.10

Description

Sound card based multimode software modem for Amateur Radio use

Added to portage

2025-11-18

git - 2.52.0
Ebuild name:

dev-vcs/git-2.52.0

Description

Stupid content tracker distributed VCS designed for speed and efficiency

Added to portage

2025-11-18

google-chrome - 142.0.7444.175
Ebuild name:

www-client/google-chrome-142.0.7444.175

Description

The web browser from Google

Added to portage

2025-11-18

hishel - 1.1.6
Ebuild name:

dev-python/hishel-1.1.6

Description

An elegant HTTP Cache implementation for HTTPX and HTTP Core

Added to portage

2025-11-18

htmlentities - 4.4.0
Ebuild name:

dev-ruby/htmlentities-4.4.0

Description

A simple library for encoding/decoding entities in (X)HTML documents

Added to portage

2025-11-18

hyperfine - 1.20.0
Ebuild name:

app-benchmarks/hyperfine-1.20.0

Description

A command-line benchmarking tool

Added to portage

2025-11-18

ibus-typing-booster - 2.28.4
Ebuild name:

app-i18n/ibus-typing-booster-2.28.4

Description

Completion input method for IBus

Added to portage

2025-11-18

io-event - 1.14.2
Ebuild name:

dev-ruby/io-event-1.14.2

Description

An event loop

Added to portage

2025-11-18

io-wait - 0.3.6
Ebuild name:

dev-ruby/io-wait-0.3.6

Description

Waits until IO is readable or writable without blocking

Added to portage

2025-11-18

kdeconnect - 25.08.2-r1
Ebuild name:

kde-misc/kdeconnect-25.08.2-r1

Description

Adds communication between KDE Plasma and your smartphone

Added to portage

2025-11-18

kdeconnect - 25.08.3-r1
Ebuild name:

kde-misc/kdeconnect-25.08.3-r1

Description

Adds communication between KDE Plasma and your smartphone

Added to portage

2025-11-18

libarchive - 3.8.3
Ebuild name:

app-arch/libarchive-3.8.3

Description

Multi-format archive and compression library

Added to portage

2025-11-18

libselinux - 3.8.1-r1
Ebuild name:

sys-libs/libselinux-3.8.1-r1

Description

SELinux userland library

Added to portage

2025-11-18

libtraceevent - 1.8.6
Ebuild name:

dev-libs/libtraceevent-1.8.6

Description

Linux kernel trace event library

Added to portage

2025-11-18

libutf8proc - 2.11.1
Ebuild name:

dev-libs/libutf8proc-2.11.1

Description

A clean C Library for processing UTF-8 Unicode data

Added to portage

2025-11-18

mdbook - 0.5.0
Ebuild name:

app-text/mdbook-0.5.0

Description

Create a book from markdown files

Added to portage

2025-11-18

melonds - 1.1
Ebuild name:

games-emulation/melonds-1.1

Description

Nintendo DS emulator, sorta

Added to portage

2025-11-18

metrics - 0.15.0
Ebuild name:

dev-ruby/metrics-0.15.0

Description

Application metrics and instrumentation.

Added to portage

2025-11-18

microsoft-edge-beta - 143.0.3650.28
Ebuild name:

www-client/microsoft-edge-beta-143.0.3650.28

Description

The web browser from Microsoft

Added to portage

2025-11-18

minitest - 5.26.2
Ebuild name:

dev-ruby/minitest-5.26.2

Description

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

Added to portage

2025-11-18

ml-dtypes - 0.5.4
Ebuild name:

dev-python/ml-dtypes-0.5.4

Description

A stand-alone implementation of several NumPy dtype extensions

Added to portage

2025-11-18

moto - 5.1.17
Ebuild name:

dev-python/moto-5.1.17

Description

Mock library for boto

Added to portage

2025-11-18

mujs - 1.3.7-r1
Ebuild name:

dev-lang/mujs-1.3.7-r1

Description

An embeddable JavaScript interpreter written in C

Added to portage

2025-11-18

ocaml - 5.4.0
Ebuild name:

dev-lang/ocaml-5.4.0

Description

Programming language supporting functional, imperative & object-oriented style

Added to portage

2025-11-18

openpgp-keys-libarchive - 20251118
Ebuild name:

sec-keys/openpgp-keys-libarchive-20251118

Description

OpenPGP keys used by the libarchive project

Added to portage

2025-11-18

opera-developer - 125.0.5720.0
Ebuild name:

www-client/opera-developer-125.0.5720.0

Description

A fast and secure web browser

Added to portage

2025-11-18

plotly - 6.5.0
Ebuild name:

dev-python/plotly-6.5.0

Description

Browser-based graphing library for Python

Added to portage

2025-11-18

po-mode - 0.26
Ebuild name:

app-emacs/po-mode-0.26

Description

Major mode for GNU gettext PO files

Added to portage

2025-11-18

poke - 3.0
Ebuild name:

app-emacs/poke-3.0

Description

Emacs meets GNU poke

Added to portage

2025-11-18

poke - 3.2
Ebuild name:

app-emacs/poke-3.2

Description

Emacs meets GNU poke

Added to portage

2025-11-18

postfix-logwatch - 1.40.06
Ebuild name:

net-mail/postfix-logwatch-1.40.06

Description

A log analyzer for postfix

Added to portage

2025-11-18

ppxlib - 0.33.0-r2
Ebuild name:

dev-ml/ppxlib-0.33.0-r2

Description

Base library and tools for ppx rewriters

Added to portage

2025-11-18

ppxlib - 0.36.2-r1
Ebuild name:

dev-ml/ppxlib-0.36.2-r1

Description

Base library and tools for ppx rewriters

Added to portage

2025-11-18

ppxlib - 0.37.0
Ebuild name:

dev-ml/ppxlib-0.37.0

Description

Base library and tools for ppx rewriters

Added to portage

2025-11-18

public_suffix - 7.0.0
Ebuild name:

dev-ruby/public_suffix-7.0.0

Description

Parse and decompose a domain name into top level domain, domain and su

Added to portage

2025-11-18

pyshp - 3.0.2_p1
Ebuild name:

sci-libs/pyshp-3.0.2_p1

Description

Pure Python read/write support for ESRI Shapefile format

Added to portage

2025-11-18

pytest-reserial - 0.5.0
Ebuild name:

dev-python/pytest-reserial-0.5.0

Description

Pytest plugin for recording and replaying serial port traffic duri

Added to portage

2025-11-18

pytorch - 2.9.1
Ebuild name:

sci-ml/pytorch-2.9.1

Description

Tensors and Dynamic neural networks in Python

Added to portage

2025-11-18

rabbitmq-server - 4.1.6
Ebuild name:

net-misc/rabbitmq-server-4.1.6

Description

RabbitMQ is a high-performance AMQP-compliant message broker written

Added to portage

2025-11-18

rabbitmq-server - 4.2.1
Ebuild name:

net-misc/rabbitmq-server-4.2.1

Description

RabbitMQ is a high-performance AMQP-compliant message broker written

Added to portage

2025-11-18

reportlab - 4.4.5
Ebuild name:

dev-python/reportlab-4.4.5

Description

Tools for generating printable PDF documents from any data source

Added to portage

2025-11-18

slack - 4.47.59
Ebuild name:

net-im/slack-4.47.59

Description

Team collaboration tool

Added to portage

2025-11-18

telegram-desktop-bin - 6.3.1
Ebuild name:

net-im/telegram-desktop-bin-6.3.1

Description

Official desktop client for Telegram (binary package)

Added to portage

2025-11-18

uv - 0.9.10
Ebuild name:

dev-python/uv-0.9.10

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-11-18

uv-build - 0.9.10
Ebuild name:

dev-python/uv-build-0.9.10

Description

PEP517 uv build backend

Added to portage

2025-11-18

vtk - 9.5.2
Ebuild name:

sci-libs/vtk-9.5.2

Description

The Visualization Toolkit

Added to portage

2025-11-18

xarray - 2025.11.0
Ebuild name:

dev-python/xarray-2025.11.0

Description

N-D labeled arrays and datasets in Python

Added to portage

2025-11-18

zfs - 2.4.0_rc4
Ebuild name:

sys-fs/zfs-2.4.0_rc4

Description

Linux kernel module and userland utilities for ZFS

Added to portage

2025-11-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: 37.9 ms