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:

37014

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-03-26
adns - 1.4-r2
Ebuild name:

net-libs/adns-1.4-r2

Description

Advanced, easy to use, asynchronous-capable DNS client library and utilities

Added to portage

2017-03-26

apparmor-utils - 2.11.0-r1
Ebuild name:

sys-apps/apparmor-utils-2.11.0-r1

Description

Additional userspace utils to assist with AppArmor profile manage

Added to portage

2017-03-26

aufs-sources - 4.4.56
Ebuild name:

sys-kernel/aufs-sources-4.4.56

Description

Full sources including the Gentoo patchset for the linux kernel tree

Added to portage

2017-03-26

aufs-sources - 4.4.57
Ebuild name:

sys-kernel/aufs-sources-4.4.57

Description

Full sources including the Gentoo patchset for the linux kernel tree

Added to portage

2017-03-26

aufs-sources - 4.9.17
Ebuild name:

sys-kernel/aufs-sources-4.9.17

Description

Full sources including the Gentoo patchset for the linux kernel tree

Added to portage

2017-03-26

aufs-sources - 4.9.18
Ebuild name:

sys-kernel/aufs-sources-4.9.18

Description

Full sources including the Gentoo patchset for the linux kernel tree

Added to portage

2017-03-26

bittornado - 0.4.1_p20160925-r1
Ebuild name:

net-p2p/bittornado-0.4.1_p20160925-r1

Description

John Hoffman's fork of the original bittorrent

Added to portage

2017-03-26

childprocess - 0.6.3
Ebuild name:

dev-ruby/childprocess-0.6.3

Description

Solution for controlling external programs running in the background

Added to portage

2017-03-26

did_you_mean - 1.1.2
Ebuild name:

dev-ruby/did_you_mean-1.1.2

Description

'did you mean?'experience in Ruby

Added to portage

2017-03-26

efibootmgr - 15
Ebuild name:

sys-boot/efibootmgr-15

Description

User-space application to modify the EFI boot manager

Added to portage

2017-03-26

gentoo-sources - 4.4.57
Ebuild name:

sys-kernel/gentoo-sources-4.4.57

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-03-26

gkrellmss - 2.6-r3
Ebuild name:

x11-plugins/gkrellmss-2.6-r3

Description

A plugin for GKrellM2 that has a VU meter and a sound chart

Added to portage

2017-03-26

gkwebmon - 0.2-r2
Ebuild name:

x11-plugins/gkwebmon-0.2-r2

Description

A web monitor plugin for GKrellM2

Added to portage

2017-03-26

gnupg - 2.1.19-r2
Ebuild name:

app-crypt/gnupg-2.1.19-r2

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2017-03-26

hdbc-sqlite3 - 2.3.3.1-r1
Ebuild name:

dev-haskell/hdbc-sqlite3-2.3.3.1-r1

Description

Sqlite v3 driver for HDBC

Added to portage

2017-03-26

lazarus - 1.6.4
Ebuild name:

dev-lang/lazarus-1.6.4

Description

Lazarus IDE is a feature rich visual programming environment emulating Delph

Added to portage

2017-03-26

mutt - 1.8.0-r1
Ebuild name:

mail-client/mutt-1.8.0-r1

Description

A small but very powerful text-based mail client

Added to portage

2017-03-26

pecl-memcached - 3.0.3
Ebuild name:

dev-php/pecl-memcached-3.0.3

Description

Interface PHP with memcached via libmemcached library

Added to portage

2017-03-26

perl-cleaner - 2.25
Ebuild name:

app-admin/perl-cleaner-2.25

Description

User land tool for cleaning up old perl installs

Added to portage

2017-03-26

qconf - 2.3
Ebuild name:

sys-devel/qconf-2.3

Description

./configure like generator for qmake-based projects

Added to portage

2017-03-26

ruby - 2.4.1
Ebuild name:

dev-lang/ruby-2.4.1

Description

An object-oriented scripting language

Added to portage

2017-03-26

rubygems - 13
Ebuild name:

virtual/rubygems-13

Description

Virtual ebuild for rubygems

Added to portage

2017-03-26

term-ansicolor - 1.4.1
Ebuild name:

dev-ruby/term-ansicolor-1.4.1

Description

Small Ruby library that colors strings using ANSI escape sequences

Added to portage

2017-03-26

tzinfo - 1.2.3
Ebuild name:

dev-ruby/tzinfo-1.2.3

Description

Daylight-savings aware timezone library

Added to portage

2017-03-26

xf86-input-mtrack - 0.4.1
Ebuild name:

x11-drivers/xf86-input-mtrack-0.4.1

Description

Xorg Driver for Multitouch Trackpads

Added to portage

2017-03-26

2017-03-25
Test-File - 1.442.0
Ebuild name:

dev-perl/Test-File-1.442.0

Description

Test file attributes

Added to portage

2017-03-25

Test-utf8 - 1.10.0
Ebuild name:

dev-perl/Test-utf8-1.10.0

Description

Handy utf8 tests

Added to portage

2017-03-25

ack - 2.18
Ebuild name:

sys-apps/ack-2.18

Description

ack is a tool like grep, optimized for programmers

Added to portage

2017-03-25

apt-cacher-ng - 3
Ebuild name:

net-misc/apt-cacher-ng-3

Description

Yet another caching HTTP proxy for Debian/Ubuntu software packages

Added to portage

2017-03-25

avogadro2 - 0.9.0
Ebuild name:

sci-chemistry/avogadro2-0.9.0

Description

Advanced molecule editor and visualizer 2

Added to portage

2017-03-25

avogadrolibs - 0.9.0
Ebuild name:

sci-libs/avogadrolibs-0.9.0

Description

Advanced molecule editor and visualizer 2 - libraries

Added to portage

2017-03-25

brainparty - 0.61-r1
Ebuild name:

games-puzzle/brainparty-0.61-r1

Description

A puzzle-solving, brain-stretching game for all ages

Added to portage

2017-03-25

btrfs-progs - 4.10
Ebuild name:

sys-fs/btrfs-progs-4.10

Description

Btrfs filesystem utilities

Added to portage

2017-03-25

btrfs-progs - 4.9.1
Ebuild name:

sys-fs/btrfs-progs-4.9.1

Description

Btrfs filesystem utilities

Added to portage

2017-03-25

capstone - 3.0.5_rc2
Ebuild name:

dev-libs/capstone-3.0.5_rc2

Description

disassembly/disassembler framework + bindings

Added to portage

2017-03-25

conky - 1.10.6-r2
Ebuild name:

app-admin/conky-1.10.6-r2

Description

An advanced, highly configurable system monitor for X

Added to portage

2017-03-25

dbus - 1.10.16-r1
Ebuild name:

sys-apps/dbus-1.10.16-r1

Description

A message bus system, a simple way for applications to talk to each other

Added to portage

2017-03-25

exiftool - 10.47
Ebuild name:

media-libs/exiftool-10.47

Description

Read and write meta information in image, audio and video files

Added to portage

2017-03-25

genymotion-bin - 2.8.1-r1
Ebuild name:

app-emulation/genymotion-bin-2.8.1-r1

Description

Complete set of tools that provide a virtual environment for

Added to portage

2017-03-25

gnome - 3.22.2
Ebuild name:

gnome-base/gnome-3.22.2

Description

Meta package for GNOME 3, merge this package to install

Added to portage

2017-03-25

gnome-extra-apps - 3.22.2
Ebuild name:

gnome-base/gnome-extra-apps-3.22.2

Description

Sub-meta package for the applications of GNOME 3

Added to portage

2017-03-25

gnome-light - 3.22.2
Ebuild name:

gnome-base/gnome-light-3.22.2

Description

Meta package for GNOME-Light, merge this package to install

Added to portage

2017-03-25

gnome-shell-extensions-topicons-plus - 20
Ebuild name:

gnome-extra/gnome-shell-extensions-topicons-plus-20

Description

Moves legacy tray icons to top panel

Added to portage

2017-03-25

h5py - 2.7.0
Ebuild name:

dev-python/h5py-2.7.0

Description

Simple Python interface to HDF5 files

Added to portage

2017-03-25

kbibtex - 0.6.2
Ebuild name:

app-text/kbibtex-0.6.2

Description

BibTeX editor by KDE to edit bibliographies used with LaTeX

Added to portage

2017-03-25

kde4-l10n - 16.12.3-r1
Ebuild name:

kde-apps/kde4-l10n-16.12.3-r1

Description

KDE legacy internationalization package

Added to portage

2017-03-25

krfb - 16.12.3-r1
Ebuild name:

kde-apps/krfb-16.12.3-r1

Description

VNC-compatible server to share KDE desktops

Added to portage

2017-03-25

laf-plugin - 0.2-r2
Ebuild name:

dev-java/laf-plugin-0.2-r2

Description

Look'n'feel Java library

Added to portage

2017-03-25

laf-plugin - 1.1-r1
Ebuild name:

dev-java/laf-plugin-1.1-r1

Description

Look'n'feel Java library

Added to portage

2017-03-25

lilypond - 2.19.57
Ebuild name:

media-sound/lilypond-2.19.57

Description

GNU Music Typesetter

Added to portage

2017-03-25

marble - 16.12.3-r1
Ebuild name:

kde-apps/marble-16.12.3-r1

Description

Virtual Globe and World Atlas to learn more about Earth

Added to portage

2017-03-25

nm-applet - 1.4.6-r1
Ebuild name:

gnome-extra/nm-applet-1.4.6-r1

Description

GNOME applet for NetworkManager

Added to portage

2017-03-25

nmap - 7.40-r1
Ebuild name:

net-analyzer/nmap-7.40-r1

Description

A utility for network discovery and security auditing

Added to portage

2017-03-25

notmuch - 0.24
Ebuild name:

net-mail/notmuch-0.24

Description

Thread-based e-mail indexer, supporting quick search and tagging

Added to portage

2017-03-25

perl-cleaner - 2.24
Ebuild name:

app-admin/perl-cleaner-2.24

Description

User land tool for cleaning up old perl installs

Added to portage

2017-03-25

pouetchess - 0.2.0-r2
Ebuild name:

games-board/pouetchess-0.2.0-r2

Description

3D and open source chess game

Added to portage

2017-03-25

pysnmp - 4.3.5
Ebuild name:

dev-python/pysnmp-4.3.5

Description

Python SNMP library

Added to portage

2017-03-25

ripgrep - 0.5.0
Ebuild name:

sys-apps/ripgrep-0.5.0

Description

a command line search tool that combines usability with raw speed

Added to portage

2017-03-25

sddm - 0.14.0-r3
Ebuild name:

x11-misc/sddm-0.14.0-r3

Description

Simple Desktop Display Manager

Added to portage

2017-03-25

trayer - 1.0-r3
Ebuild name:

x11-misc/trayer-1.0-r3

Description

Lightweight GTK+ based systray for UNIX desktop

Added to portage

2017-03-25

vivaldi - 1.8.770.44_p1
Ebuild name:

www-client/vivaldi-1.8.770.44_p1

Description

A new browser for our friends

Added to portage

2017-03-25

wop - 0.4.3-r2
Ebuild name:

games-arcade/wop-0.4.3-r2

Description

Worms of Prey - A multi-player, real-time clone of Worms

Added to portage

2017-03-25

youtube-dl - 2017.03.24
Ebuild name:

net-misc/youtube-dl-2017.03.24

Description

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

Added to portage

2017-03-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: 6.1 ms
system status display