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:

61736

userrating:

average rating: 1.5 (4 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.0 (11 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
2022-08-08
PyPDF2 - 2.10.0
Ebuild name:

dev-python/PyPDF2-2.10.0

Description

Python library to work with PDF files

Added to portage

2022-08-08

capistrano - 3.17.1
Ebuild name:

dev-ruby/capistrano-3.17.1

Description

A distributed application deployment system

Added to portage

2022-08-08

emutos - 1.2
Ebuild name:

games-emulation/emutos-1.2

Description

Single-user single-tasking operating system for 32-bit Atari computer em

Added to portage

2022-08-08

fossil - 2.19
Ebuild name:

dev-vcs/fossil-2.19

Description

Simple, high-reliability, source control management, and more

Added to portage

2022-08-08

gcc - 13.0.0_pre20220807
Ebuild name:

sys-devel/gcc-13.0.0_pre20220807

Description

The GNU Compiler Collection

Added to portage

2022-08-08

gqrx - 2.15.9
Ebuild name:

net-wireless/gqrx-2.15.9

Description

Software defined radio receiver powered by GNU Radio and Qt

Added to portage

2022-08-08

keyring - 23.8.0
Ebuild name:

dev-python/keyring-23.8.0

Description

Provides access to the system keyring service

Added to portage

2022-08-08

kid3 - 3.9.2
Ebuild name:

media-sound/kid3-3.9.2

Description

Simple tag editor based on Qt

Added to portage

2022-08-08

kismet - 2022.08.1
Ebuild name:

net-wireless/kismet-2022.08.1

Description

IEEE 802.11 wireless LAN sniffer

Added to portage

2022-08-08

ktexteditor - 5.96.0-r1
Ebuild name:

kde-frameworks/ktexteditor-5.96.0-r1

Description

Framework providing a full text editor component

Added to portage

2022-08-08

kwin - 5.24.6-r2
Ebuild name:

kde-plasma/kwin-5.24.6-r2

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2022-08-08

kwin - 5.25.4-r1
Ebuild name:

kde-plasma/kwin-5.25.4-r1

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2022-08-08

libwebp - 1.2.4
Ebuild name:

media-libs/libwebp-1.2.4

Description

A lossy image compression format

Added to portage

2022-08-08

moto - 3.1.17
Ebuild name:

dev-python/moto-3.1.17

Description

Mock library for boto

Added to portage

2022-08-08

pkgconf - 1.9.1
Ebuild name:

dev-util/pkgconf-1.9.1

Description

pkg-config compatible replacement with no dependencies other than ANSI C89

Added to portage

2022-08-08

plasma-desktop - 5.24.6-r2
Ebuild name:

kde-plasma/plasma-desktop-5.24.6-r2

Description

KDE Plasma desktop

Added to portage

2022-08-08

rocprofiler - 4.3.0-r1
Ebuild name:

dev-util/rocprofiler-4.3.0-r1

Description

Callback/Activity Library for Performance tracing AMD GPU's

Added to portage

2022-08-08

rocprofiler - 5.0.2-r1
Ebuild name:

dev-util/rocprofiler-5.0.2-r1

Description

Callback/Activity Library for Performance tracing AMD GPU's

Added to portage

2022-08-08

rocprofiler - 5.1.3-r1
Ebuild name:

dev-util/rocprofiler-5.1.3-r1

Description

Callback/Activity Library for Performance tracing AMD GPU's

Added to portage

2022-08-08

roctracer - 4.3.0-r3
Ebuild name:

dev-util/roctracer-4.3.0-r3

Description

Callback/Activity Library for Performance tracing AMD GPU's

Added to portage

2022-08-08

roctracer - 5.0.2-r1
Ebuild name:

dev-util/roctracer-5.0.2-r1

Description

Callback/Activity Library for Performance tracing AMD GPU's

Added to portage

2022-08-08

roctracer - 5.1.3-r1
Ebuild name:

dev-util/roctracer-5.1.3-r1

Description

Callback/Activity Library for Performance tracing AMD GPU's

Added to portage

2022-08-08

rqlite - 7.6.1
Ebuild name:

dev-db/rqlite-7.6.1

Description

Replicated SQLite using the Raft consensus protocol

Added to portage

2022-08-08

schismtracker - 20220807
Ebuild name:

media-sound/schismtracker-20220807

Description

Free implementation of Impulse Tracker, a tool used to create hi

Added to portage

2022-08-08

webkit-gtk - 2.36.6
Ebuild name:

net-libs/webkit-gtk-2.36.6

Description

Open source web browser engine

Added to portage

2022-08-08

xdg-desktop-portal - 1.14.6
Ebuild name:

sys-apps/xdg-desktop-portal-1.14.6

Description

Desktop integration portal

Added to portage

2022-08-08

zen-sources - 5.18.16
Ebuild name:

sys-kernel/zen-sources-5.18.16

Description

The Zen Kernel Live Sources

Added to portage

2022-08-08

2022-08-07
adodb - 5.22.2
Ebuild name:

dev-php/adodb-5.22.2

Description

Database abstraction layer for PHP

Added to portage

2022-08-07

anyqt - 0.2.0
Ebuild name:

dev-python/anyqt-0.2.0

Description

PyQt4/PyQt5 compatibility layer

Added to portage

2022-08-07

chrome-binary-plugins - 106.0.5216.6_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-106.0.5216.6_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2022-08-07

coverage - 6.4.3
Ebuild name:

dev-python/coverage-6.4.3

Description

Code coverage measurement for Python

Added to portage

2022-08-07

django - 4.1
Ebuild name:

dev-python/django-4.1

Description

High-level Python web framework

Added to portage

2022-08-07

electrum - 4.3.0
Ebuild name:

net-misc/electrum-4.3.0

Description

User friendly Bitcoin client

Added to portage

2022-08-07

ensurepip-wheels - 63.4.2.22.2.2
Ebuild name:

dev-python/ensurepip-wheels-63.4.2.22.2.2

Description

Shared wheels for ensurepip Python module

Added to portage

2022-08-07

eog - 42.3
Ebuild name:

media-gfx/eog-42.3

Description

The Eye of GNOME image viewer

Added to portage

2022-08-07

gajim - 1.4.7
Ebuild name:

net-im/gajim-1.4.7

Description

Jabber client written in PyGTK

Added to portage

2022-08-07

gcc - 10.4.1_p20220804
Ebuild name:

sys-devel/gcc-10.4.1_p20220804

Description

The GNU Compiler Collection

Added to portage

2022-08-07

gcc - 11.3.1_p20220805
Ebuild name:

sys-devel/gcc-11.3.1_p20220805

Description

The GNU Compiler Collection

Added to portage

2022-08-07

gcc - 12.1.1_p20220806
Ebuild name:

sys-devel/gcc-12.1.1_p20220806

Description

The GNU Compiler Collection

Added to portage

2022-08-07

gcc - 13.0.0_pre20220731
Ebuild name:

sys-devel/gcc-13.0.0_pre20220731

Description

The GNU Compiler Collection

Added to portage

2022-08-07

gnome-remote-desktop - 42.4
Ebuild name:

net-misc/gnome-remote-desktop-42.4

Description

Remote desktop daemon for GNOME using pipewire

Added to portage

2022-08-07

google-chrome - 104.0.5112.79-r1
Ebuild name:

www-client/google-chrome-104.0.5112.79-r1

Description

The web browser from Google

Added to portage

2022-08-07

google-chrome-beta - 105.0.5195.19-r1
Ebuild name:

www-client/google-chrome-beta-105.0.5195.19-r1

Description

The web browser from Google

Added to portage

2022-08-07

google-chrome-unstable - 106.0.5216.6
Ebuild name:

www-client/google-chrome-unstable-106.0.5216.6

Description

The web browser from Google

Added to portage

2022-08-07

hg-evolve - 10.5.2
Ebuild name:

dev-vcs/hg-evolve-10.5.2

Description

enables the changeset evolution feature of Mercurial

Added to portage

2022-08-07

ibus-table - 1.16.11
Ebuild name:

app-i18n/ibus-table-1.16.11

Description

Tables engines for IBus

Added to portage

2022-08-07

intel-compute-runtime - 22.31.23852
Ebuild name:

dev-libs/intel-compute-runtime-22.31.23852

Description

Intel Graphics Compute Runtime for oneAPI Level Zero and

Added to portage

2022-08-07

jupyterlab-desktop-bin - 3.4.4.1
Ebuild name:

sci-misc/jupyterlab-desktop-bin-3.4.4.1

Description

JupyterLab desktop application, based on Electron

Added to portage

2022-08-07

kgb - 7.1.1
Ebuild name:

dev-python/kgb-7.1.1

Description

Python function spy support for unit tests

Added to portage

2022-08-07

kubo - 0.14.0
Ebuild name:

net-p2p/kubo-0.14.0

Description

Main implementation of IPFS

Added to portage

2022-08-07

lutris - 0.5.11_beta1
Ebuild name:

games-util/lutris-0.5.11_beta1

Description

An open source gaming platform for GNU/Linux

Added to portage

2022-08-07

mercurial - 6.2.1
Ebuild name:

dev-vcs/mercurial-6.2.1

Description

Scalable distributed SCM

Added to portage

2022-08-07

microsoft-edge - 104.0.1293.47
Ebuild name:

www-client/microsoft-edge-104.0.1293.47

Description

The web browser from Microsoft

Added to portage

2022-08-07

nushell - 0.66.2
Ebuild name:

app-shells/nushell-0.66.2

Description

A new type of shell, written in Rust

Added to portage

2022-08-07

pdm-pep517 - 1.0.4
Ebuild name:

dev-python/pdm-pep517-1.0.4

Description

A PEP 517 backend for PDM that supports PEP 621 metadata

Added to portage

2022-08-07

pf-sources - 5.19_p1
Ebuild name:

sys-kernel/pf-sources-5.19_p1

Description

Linux kernel fork that includes the pf-kernel patchset and Gentoo's g

Added to portage

2022-08-07

php - 7.4.30-r1
Ebuild name:

dev-lang/php-7.4.30-r1

Description

The PHP language runtime engine

Added to portage

2022-08-07

pyxDamerauLevenshtein - 1.7.1
Ebuild name:

dev-python/pyxDamerauLevenshtein-1.7.1

Description

Implements the Damerau-Levenshtein edit distance algorithm f

Added to portage

2022-08-07

racket - 8.6
Ebuild name:

dev-scheme/racket-8.6

Description

General purpose, multi-paradigm Lisp-Scheme programming language

Added to portage

2022-08-07

readme_renderer - 36.0
Ebuild name:

dev-python/readme_renderer-36.0

Description

a library for rendering

Added to portage

2022-08-07

recaptcha - 1.2.4
Ebuild name:

dev-php/recaptcha-1.2.4

Description

PHP client library for Google's reCAPTCHA service

Added to portage

2022-08-07

setuptools - 63.4.2
Ebuild name:

dev-python/setuptools-63.4.2

Description

Collection of extensions to Distutils

Added to portage

2022-08-07

stripe - 4.0.2
Ebuild name:

dev-python/stripe-4.0.2

Description

Stripe python bindings

Added to portage

2022-08-07

stripe-mock - 0.141.0
Ebuild name:

dev-util/stripe-mock-0.141.0

Description

Mock HTTP server that responds like the real Stripe API

Added to portage

2022-08-07

tali - 40.8
Ebuild name:

games-board/tali-40.8

Description

Beat the odds in a poker-style dice game

Added to portage

2022-08-07

tgt - 1.0.84
Ebuild name:

sys-block/tgt-1.0.84

Description

Linux SCSI target framework (tgt)

Added to portage

2022-08-07

ubelt - 1.2.1
Ebuild name:

dev-python/ubelt-1.2.1

Description

A stdlib like feel, and extra batteries. Hashing, Caching, Timing, Progress

Added to portage

2022-08-07

yubikey-manager - 4.0.9
Ebuild name:

app-crypt/yubikey-manager-4.0.9

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2022-08-07

yubikey-manager-qt - 1.2.4
Ebuild name:

app-crypt/yubikey-manager-qt-1.2.4

Description

Cross-platform application for configuring any YubiKey over all

Added to portage

2022-08-07

znc - 1.8.2-r2
Ebuild name:

net-irc/znc-1.8.2-r2

Description

An advanced IRC Bouncer

Added to portage

2022-08-07

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: 49.8 ms