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:

37667

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
Please read "Why adblockers are bad".



other Ads
Trace My Cash
Wenn Sie sich schon immer mal gefragt haben, wo eigentlich Ihr geliebtes Bargeld geblieben ist, finden Sie hier vielleicht die Antwort.
www.tracemycash.com
Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2017-05-26
dcpomatic - 2.10.5
Ebuild name:

media-video/dcpomatic-2.10.5

Description

create Digital Cinema Packages (DCPs) from videos, images and sound fi

Added to portage

2017-05-26

dcpomatic - 2.11.7
Ebuild name:

media-video/dcpomatic-2.11.7

Description

create Digital Cinema Packages (DCPs) from videos, images and sound fi

Added to portage

2017-05-26

di - 4.44
Ebuild name:

sys-block/di-4.44

Description

Disk Information Utility

Added to portage

2017-05-26

firefox-bin - 52.1.2
Ebuild name:

www-client/firefox-bin-52.1.2

Description

Firefox Web Browser

Added to portage

2017-05-26

firefox-bin - 53.0.3
Ebuild name:

www-client/firefox-bin-53.0.3

Description

Firefox Web Browser

Added to portage

2017-05-26

gentoo-sources - 4.11.3
Ebuild name:

sys-kernel/gentoo-sources-4.11.3

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-05-26

gentoo-sources - 4.4.70
Ebuild name:

sys-kernel/gentoo-sources-4.4.70

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-05-26

gentoo-sources - 4.9.30
Ebuild name:

sys-kernel/gentoo-sources-4.9.30

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-05-26

khal - 0.9.5
Ebuild name:

app-misc/khal-0.9.5

Description

A CalDAV based calendar

Added to portage

2017-05-26

knot - 2.4.3
Ebuild name:

net-dns/knot-2.4.3

Description

High-performance authoritative-only DNS server

Added to portage

2017-05-26

libdcp - 9999
Ebuild name:

media-libs/libdcp-9999

Description

create and read Digital Cinema Packages using JPEG2000 and WAV files

Added to portage

2017-05-26

minted - 2.4.1
Ebuild name:

dev-tex/minted-2.4.1

Description

LaTeX package for source code syntax highlighting

Added to portage

2017-05-26

open-vcdiff - 0.8.4-r1
Ebuild name:

dev-util/open-vcdiff-0.8.4-r1

Description

An encoder/decoder for the VCDIFF (RFC3284) format

Added to portage

2017-05-26

openssl - 1.0.2l
Ebuild name:

dev-libs/openssl-1.0.2l

Description

full-strength general purpose cryptography library (including SSL and TLS)

Added to portage

2017-05-26

openssl - 1.1.0f
Ebuild name:

dev-libs/openssl-1.1.0f

Description

full-strength general purpose cryptography library (including SSL and TLS)

Added to portage

2017-05-26

opus - 1.2_beta
Ebuild name:

media-libs/opus-1.2_beta

Description

Open codec designed for internet transmission of interactive speech and au

Added to portage

2017-05-26

pypy3 - 5.7.1-r2
Ebuild name:

dev-python/pypy3-5.7.1-r2

Description

A fast, compliant alternative implementation of the Python (3.3) language

Added to portage

2017-05-26

python-efl - 1.18.0
Ebuild name:

dev-python/python-efl-1.18.0

Description

Python bindings for Enlightenment Fundation Libraries

Added to portage

2017-05-26

util-linux - 2.30_rc2
Ebuild name:

sys-apps/util-linux-2.30_rc2

Description

Various useful Linux utilities

Added to portage

2017-05-26

2017-05-25
PEAR-Spreadsheet_Excel_Writer - 0.9.4
Ebuild name:

dev-php/PEAR-Spreadsheet_Excel_Writer-0.9.4

Description

Package for generating Excel spreadsheets

Added to portage

2017-05-25

abcm2ps - 8.13.10
Ebuild name:

media-sound/abcm2ps-8.13.10

Description

A program to convert abc files to Postscript files

Added to portage

2017-05-25

bmake - 20170510
Ebuild name:

sys-devel/bmake-20170510

Description

NetBSD's portable make

Added to portage

2017-05-25

brython - 3.3.2
Ebuild name:

dev-python/brython-3.3.2

Description

A Python 3 implementation for client-side web programming

Added to portage

2017-05-25

c-capnproto - 0.3
Ebuild name:

dev-libs/c-capnproto-0.3

Description

C library/compiler for the Cap'n Proto serialization/RPC protocol

Added to portage

2017-05-25

cacti - 1.1.7
Ebuild name:

net-analyzer/cacti-1.1.7

Description

Cacti is a complete frontend to rrdtool

Added to portage

2017-05-25

cacti-spine - 1.1.7
Ebuild name:

net-analyzer/cacti-spine-1.1.7

Description

Spine is a fast poller for Cacti (formerly known as Cactid)

Added to portage

2017-05-25

catkin_pkg - 0.3.3
Ebuild name:

dev-python/catkin_pkg-0.3.3

Description

Standalone Python library for the catkin package system

Added to portage

2017-05-25

chrome-remote-desktop - 57.0.2987.37
Ebuild name:

net-misc/chrome-remote-desktop-57.0.2987.37

Description

access remote computers via Chrome

Added to portage

2017-05-25

coffee-rails - 4.2.2
Ebuild name:

dev-ruby/coffee-rails-4.2.2

Description

Coffee Script adapter for the Rails asset pipeline

Added to portage

2017-05-25

devilspie - 0.23-r1
Ebuild name:

x11-misc/devilspie-0.23-r1

Description

A Window Matching utility similar to Sawfish's Matched Windows feature

Added to portage

2017-05-25

diskimage-builder - 2.4.1
Ebuild name:

app-emulation/diskimage-builder-2.4.1

Description

Golden Disk Image builder.

Added to portage

2017-05-25

docker-machine-kvm - 0.10.0
Ebuild name:

app-emulation/docker-machine-kvm-0.10.0

Description

KVM driver for docker-machine

Added to portage

2017-05-25

dpkg - 1.18.24
Ebuild name:

app-arch/dpkg-1.18.24

Description

Package maintenance system for Debian

Added to portage

2017-05-25

duktape - 2.1.0
Ebuild name:

dev-lang/duktape-2.1.0

Description

Embeddable Javascript engine

Added to portage

2017-05-25

firebird - 3.0.2.32703.0-r1
Ebuild name:

dev-db/firebird-3.0.2.32703.0-r1

Description

Relational database offering many ANSI SQL and some SQL features

Added to portage

2017-05-25

go - 1.8.3
Ebuild name:

dev-lang/go-1.8.3

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2017-05-25

hackport - 0.5.3
Ebuild name:

app-portage/hackport-0.5.3

Description

Hackage and Portage integration tool

Added to portage

2017-05-25

hg-git - 0.8.6
Ebuild name:

dev-vcs/hg-git-0.8.6

Description

push to and pull from a Git repository using Mercurial

Added to portage

2017-05-25

kcoreaddons - 5.34.0-r1
Ebuild name:

kde-frameworks/kcoreaddons-5.34.0-r1

Description

Framework for solving common problems such as caching, randomi

Added to portage

2017-05-25

kodi-pvr-argustv - 2.5.6
Ebuild name:

media-plugins/kodi-pvr-argustv-2.5.6

Description

Kodi's ARGUS TV client addon

Added to portage

2017-05-25

kodi-pvr-demo - 2.4.6
Ebuild name:

media-plugins/kodi-pvr-demo-2.4.6

Description

Demo PVR for Kodi

Added to portage

2017-05-25

kodi-pvr-dvblink - 3.4.5
Ebuild name:

media-plugins/kodi-pvr-dvblink-3.4.5

Description

Kodi's DVBLink client addon

Added to portage

2017-05-25

kodi-pvr-dvbviewer - 2.4.11
Ebuild name:

media-plugins/kodi-pvr-dvbviewer-2.4.11

Description

Kodi's DVBViewer client addon

Added to portage

2017-05-25

kodi-pvr-filmon - 1.4.8
Ebuild name:

media-plugins/kodi-pvr-filmon-1.4.8

Description

Kodi's Filmon client addon

Added to portage

2017-05-25

kodi-pvr-iptvsimple - 2.4.11
Ebuild name:

media-plugins/kodi-pvr-iptvsimple-2.4.11

Description

Kodi's IPTVSimple client addon

Added to portage

2017-05-25

kodi-pvr-mediaportal-tvserver - 2.4.19
Ebuild name:

media-plugins/kodi-pvr-mediaportal-tvserver-2.4.19

Description

Kodi's MediaPortal TVServer client addon

Added to portage

2017-05-25

kodi-pvr-nextpvr - 2.4.13
Ebuild name:

media-plugins/kodi-pvr-nextpvr-2.4.13

Description

Kodi's NextPVR client addon

Added to portage

2017-05-25

kodi-pvr-njoy - 2.4.3
Ebuild name:

media-plugins/kodi-pvr-njoy-2.4.3

Description

Kodi's Njoy N7 client addon

Added to portage

2017-05-25

kodi-pvr-pctv - 1.4.7
Ebuild name:

media-plugins/kodi-pvr-pctv-1.4.7

Description

Kodi's PCTV client addon

Added to portage

2017-05-25

kodi-pvr-stalker - 2.8.6
Ebuild name:

media-plugins/kodi-pvr-stalker-2.8.6

Description

Kodi's Stalker client addon

Added to portage

2017-05-25

kodi-pvr-vuplus - 2.4.10
Ebuild name:

media-plugins/kodi-pvr-vuplus-2.4.10

Description

Kodi's VuPlus client addon

Added to portage

2017-05-25

kodi-pvr-wmc - 1.4.9
Ebuild name:

media-plugins/kodi-pvr-wmc-1.4.9

Description

Kodi's Windows Media Center client addon

Added to portage

2017-05-25

libatomic_ops - 7.6.0
Ebuild name:

dev-libs/libatomic_ops-7.6.0

Description

Implementation for atomic memory update operations

Added to portage

2017-05-25

libupnp - 1.8.1
Ebuild name:

net-libs/libupnp-1.8.1

Description

An Portable Open Source UPnP Development Kit

Added to portage

2017-05-25

mkvtoolnix - 12.0.0
Ebuild name:

media-video/mkvtoolnix-12.0.0

Description

Tools to create, alter, and inspect Matroska files

Added to portage

2017-05-25

mp3blaster - 3.2.6
Ebuild name:

media-sound/mp3blaster-3.2.6

Description

Text console based program for playing audio files

Added to portage

2017-05-25

mysql-workbench - 6.3.9
Ebuild name:

dev-db/mysql-workbench-6.3.9

Description

MySQL Workbench

Added to portage

2017-05-25

ncmpcpp - 0.8
Ebuild name:

media-sound/ncmpcpp-0.8

Description

featureful ncurses based MPD client inspired by ncmpc

Added to portage

2017-05-25

ocaml-fileutils - 0.5.2
Ebuild name:

dev-ml/ocaml-fileutils-0.5.2

Description

Pure OCaml functions to manipulate real file (POSIX like) and filename

Added to portage

2017-05-25

ocaml-snappy - 0.1.0
Ebuild name:

dev-ml/ocaml-snappy-0.1.0

Description

OCaml bindings to snappy fast compression/decompression library

Added to portage

2017-05-25

opus - 1.1.5
Ebuild name:

media-libs/opus-1.1.5

Description

Open codec designed for internet transmission of interactive speech and audio

Added to portage

2017-05-25

origin - 2.3.1
Ebuild name:

dev-ruby/origin-2.3.1

Description

Origin is a simple DSL for generating MongoDB selectors and options

Added to portage

2017-05-25

os-vif - 1.4.1
Ebuild name:

dev-python/os-vif-1.4.1

Description

OpenStack Cinder brick library for managing local volume attaches

Added to portage

2017-05-25

pdns - 4.0.3-r3
Ebuild name:

net-dns/pdns-4.0.3-r3

Description

The PowerDNS Daemon

Added to portage

2017-05-25

pdns-recursor - 4.0.4-r1
Ebuild name:

net-dns/pdns-recursor-4.0.4-r1

Description

The PowerDNS Recursor

Added to portage

2017-05-25

picard - 1.4.2
Ebuild name:

media-sound/picard-1.4.2

Description

A cross-platform music tagger

Added to portage

2017-05-25

pmacct - 1.5.2
Ebuild name:

net-analyzer/pmacct-1.5.2

Description

A network tool to gather IP traffic information

Added to portage

2017-05-25

pmacct - 1.5.3_pre20150925
Ebuild name:

net-analyzer/pmacct-1.5.3_pre20150925

Description

A network tool to gather IP traffic information

Added to portage

2017-05-25

pmacct - 1.5.3_pre20150925-r1
Ebuild name:

net-analyzer/pmacct-1.5.3_pre20150925-r1

Description

A network tool to gather IP traffic information

Added to portage

2017-05-25

pmacct - 1.6.0
Ebuild name:

net-analyzer/pmacct-1.6.0

Description

A network tool to gather IP traffic information

Added to portage

2017-05-25

pyswisseph - 2.05.01_pre20160529
Ebuild name:

dev-python/pyswisseph-2.05.01_pre20160529

Description

Python extension to the AstroDienst Swiss Ephemeris

Added to portage

2017-05-25

rss-glx - 0.9.1-r1
Ebuild name:

x11-misc/rss-glx-0.9.1-r1

Description

Really Slick OpenGL Screensavers for XScreenSaver

Added to portage

2017-05-25

rtabmap - 0.12.5
Ebuild name:

sci-libs/rtabmap-0.12.5

Description

Real-Time Appearance-Based Mapping (RGB-D Graph SLAM)

Added to portage

2017-05-25

smmap2 - 2.0.1
Ebuild name:

dev-python/smmap2-2.0.1

Description

A pure python implementation of a sliding window memory map manager

Added to portage

2017-05-25

sonic-visualiser - 3.0.2
Ebuild name:

media-sound/sonic-visualiser-3.0.2

Description

Music audio files viewer and analiser

Added to portage

2017-05-25

systemrescuecd-x86 - 5.0.1
Ebuild name:

app-admin/systemrescuecd-x86-5.0.1

Description

The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) vari

Added to portage

2017-05-25

tigervnc - 1.8.0
Ebuild name:

net-misc/tigervnc-1.8.0

Description

Remote desktop viewer display system

Added to portage

2017-05-25

tor - 0.3.1.1_alpha
Ebuild name:

net-vpn/tor-0.3.1.1_alpha

Description

Anonymizing overlay network for TCP

Added to portage

2017-05-25

xfce4-panel - 4.13.0
Ebuild name:

xfce-base/xfce4-panel-4.13.0

Description

Panel for the Xfce desktop environment

Added to portage

2017-05-25

xfce4-screenshooter - 1.8.99
Ebuild name:

xfce-extra/xfce4-screenshooter-1.8.99

Description

Xfce4 screenshooter application and panel plugin

Added to portage

2017-05-25

youtube-dl - 2017.05.23
Ebuild name:

net-misc/youtube-dl-2017.05.23

Description

Download videos from YouTube.com (and more sites...)

Added to portage

2017-05-25

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2017 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
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: 5.8 ms
system status display