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:

38904

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-08-17
activemodel-serializers-xml - 1.0.2
Ebuild name:

dev-ruby/activemodel-serializers-xml-1.0.2

Description

XML serialization for your Active Model objects and Acti

Added to portage

2017-08-17

batteries - 2.7.0
Ebuild name:

dev-ml/batteries-2.7.0

Description

The community-maintained foundation library for your OCaml projects

Added to portage

2017-08-17

bijiben - 3.24.1
Ebuild name:

app-misc/bijiben-3.24.1

Description

Note editor designed to remain simple to use

Added to portage

2017-08-17

brasero - 3.12.2
Ebuild name:

app-cdr/brasero-3.12.2

Description

CD/DVD burning application for the GNOME desktop

Added to portage

2017-08-17

class_loader - 0.3.7
Ebuild name:

dev-ros/class_loader-0.3.7

Description

ROS-independent package for loading plugins

Added to portage

2017-08-17

ddcutil - 0.8.4
Ebuild name:

app-misc/ddcutil-0.8.4

Description

Program for querying and changing monitor settings

Added to portage

2017-08-17

electrum - 2.9.3
Ebuild name:

net-misc/electrum-2.9.3

Description

User friendly Bitcoin client

Added to portage

2017-08-17

facter - 3.8.0
Ebuild name:

dev-ruby/facter-3.8.0

Description

A cross-platform ruby library for retrieving facts from operating systems

Added to portage

2017-08-17

freeipmi - 1.5.7
Ebuild name:

sys-libs/freeipmi-1.5.7

Description

Provides Remote-Console and System Management Software as per IPMI v1.5/2.0

Added to portage

2017-08-17

gentoo-sources - 4.12.8
Ebuild name:

sys-kernel/gentoo-sources-4.12.8

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-08-17

gentoo-sources - 4.4.83
Ebuild name:

sys-kernel/gentoo-sources-4.4.83

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-08-17

gentoo-sources - 4.9.44
Ebuild name:

sys-kernel/gentoo-sources-4.9.44

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-08-17

gnome-directory-thumbnailer - 0.1.9
Ebuild name:

gnome-extra/gnome-directory-thumbnailer-0.1.9

Description

Thumbnail generator for directories

Added to portage

2017-08-17

http - 0.9.8-r2
Ebuild name:

dev-ruby/http-0.9.8-r2

Description

An easy-to-use client library for making requests from Ruby

Added to portage

2017-08-17

jenkins-bin - 2.60.3
Ebuild name:

dev-util/jenkins-bin-2.60.3

Description

Extensible continuous integration server

Added to portage

2017-08-17

jira-ruby - 1.4.1
Ebuild name:

dev-ruby/jira-ruby-1.4.1

Description

API for JIRA

Added to portage

2017-08-17

lastpass-binary-component - 4.1.44
Ebuild name:

app-admin/lastpass-binary-component-4.1.44

Description

Binary component required by the LastPass Password Manag

Added to portage

2017-08-17

libgee - 0.20.0
Ebuild name:

dev-libs/libgee-0.20.0

Description

GObject-based interfaces and classes for commonly used data structures

Added to portage

2017-08-17

libgxps - 0.3.0
Ebuild name:

app-text/libgxps-0.3.0

Description

Library for handling and rendering XPS documents

Added to portage

2017-08-17

libmediaart - 1.9.4
Ebuild name:

media-libs/libmediaart-1.9.4

Description

Manages, extracts and handles media art caches

Added to portage

2017-08-17

lua - 5.1.5-r101
Ebuild name:

dev-lang/lua-5.1.5-r101

Description

A powerful light-weight programming language designed for extending applica

Added to portage

2017-08-17

lua - 5.2.3-r2
Ebuild name:

dev-lang/lua-5.2.3-r2

Description

A powerful light-weight programming language designed for extending applicati

Added to portage

2017-08-17

lua - 5.3.3-r1
Ebuild name:

dev-lang/lua-5.3.3-r1

Description

A powerful light-weight programming language designed for extending applicati

Added to portage

2017-08-17

mcollective - 2.11.2
Ebuild name:

app-admin/mcollective-2.11.2

Description

Framework to build server orchestration or parallel job execution syst

Added to portage

2017-08-17

message_filters - 1.13.2
Ebuild name:

dev-ros/message_filters-1.13.2

Description

Set of message filters which take in messages and may output those m

Added to portage

2017-08-17

par - 1.52-r1
Ebuild name:

app-text/par-1.52-r1

Description

a paragraph reformatter, vaguely similar to fmt, but better

Added to portage

2017-08-17

portage - 2.3.8
Ebuild name:

sys-apps/portage-2.3.8

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2017-08-17

qdirstat - 1.4
Ebuild name:

sys-apps/qdirstat-1.4

Description

Qt app to show where your disk space has gone and to help you clean it up

Added to portage

2017-08-17

redis - 4.0.1
Ebuild name:

dev-db/redis-4.0.1

Description

A persistent caching system, key-value and data structures database

Added to portage

2017-08-17

redis - 4.0.1-r1
Ebuild name:

dev-db/redis-4.0.1-r1

Description

A persistent caching system, key-value and data structures database

Added to portage

2017-08-17

rosbag - 1.13.2
Ebuild name:

dev-ros/rosbag-1.13.2

Description

Set of tools for recording from and playing back to ROS topics

Added to portage

2017-08-17

rosbag_storage - 1.13.2
Ebuild name:

dev-ros/rosbag_storage-1.13.2

Description

Set of tools for recording from and playing back ROS message

Added to portage

2017-08-17

rosconsole - 1.13.2
Ebuild name:

dev-ros/rosconsole-1.13.2

Description

ROS console output library

Added to portage

2017-08-17

roscpp - 1.13.2
Ebuild name:

dev-ros/roscpp-1.13.2

Description

C++ implementation of ROS

Added to portage

2017-08-17

rosgraph - 1.13.2
Ebuild name:

dev-ros/rosgraph-1.13.2

Description

Prints information about the ROS Computation Graph

Added to portage

2017-08-17

roslaunch - 1.13.2
Ebuild name:

dev-ros/roslaunch-1.13.2

Description

Tool for easily launching multiple ROS nodes

Added to portage

2017-08-17

roslz4 - 1.13.2
Ebuild name:

dev-ros/roslz4-1.13.2

Description

Python and C++ implementation of the LZ4 streaming format

Added to portage

2017-08-17

rosmaster - 1.13.2
Ebuild name:

dev-ros/rosmaster-1.13.2

Description

ROS Master implementation

Added to portage

2017-08-17

rosmsg - 1.13.2
Ebuild name:

dev-ros/rosmsg-1.13.2

Description

Command-line tools for displaying information about message and services

Added to portage

2017-08-17

rosnode - 1.13.2
Ebuild name:

dev-ros/rosnode-1.13.2

Description

Command-line tool for displaying debug information about ROS nodes

Added to portage

2017-08-17

rosout - 1.13.2
Ebuild name:

dev-ros/rosout-1.13.2

Description

System-wide logging mechanism for messages sent to the /rosout topic

Added to portage

2017-08-17

rosparam - 1.13.2
Ebuild name:

dev-ros/rosparam-1.13.2

Description

Command-line tool for getting and setting ROS Parameters on the parameter s

Added to portage

2017-08-17

rospy - 1.13.2
Ebuild name:

dev-ros/rospy-1.13.2

Description

Python client library for ROS

Added to portage

2017-08-17

scikits_learn - 0.19.0
Ebuild name:

sci-libs/scikits_learn-0.19.0

Description

Python modules for machine learning and data mining

Added to portage

2017-08-17

sudo - 1.8.21_beta3
Ebuild name:

app-admin/sudo-1.8.21_beta3

Description

Allows users or groups to run commands as other users

Added to portage

2017-08-17

symengine - 0.3.0-r1
Ebuild name:

sci-libs/symengine-0.3.0-r1

Description

Fast symbolic manipulation library, written in C++

Added to portage

2017-08-17

tabler - 2-r1
Ebuild name:

app-text/tabler-2-r1

Description

A utility to create text art tables from delimited input

Added to portage

2017-08-17

vanilla-sources - 4.12.8
Ebuild name:

sys-kernel/vanilla-sources-4.12.8

Description

Full sources for the Linux kernel

Added to portage

2017-08-17

vanilla-sources - 4.4.83
Ebuild name:

sys-kernel/vanilla-sources-4.4.83

Description

Full sources for the Linux kernel

Added to portage

2017-08-17

vanilla-sources - 4.9.44
Ebuild name:

sys-kernel/vanilla-sources-4.9.44

Description

Full sources for the Linux kernel

Added to portage

2017-08-17

2017-08-16
at-spi2-atk - 2.24.1
Ebuild name:

app-accessibility/at-spi2-atk-2.24.1

Description

Gtk module for bridging AT-SPI to Atk

Added to portage

2017-08-16

at-spi2-core - 2.24.1
Ebuild name:

app-accessibility/at-spi2-core-2.24.1

Description

D-Bus accessibility specifications and registration daemon

Added to portage

2017-08-16

atk - 2.24.0
Ebuild name:

dev-libs/atk-2.24.0

Description

GTK+ & GNOME Accessibility Toolkit

Added to portage

2017-08-16

chrome-binary-plugins - 60.0.3112.101
Ebuild name:

www-plugins/chrome-binary-plugins-60.0.3112.101

Description

Binary plugins from Google Chrome for use in Chromi

Added to portage

2017-08-16

claws-mail - 3.15.0-r2
Ebuild name:

mail-client/claws-mail-3.15.0-r2

Description

An email client (and news reader) based on GTK+

Added to portage

2017-08-16

clutter-gtk - 1.8.4
Ebuild name:

media-libs/clutter-gtk-1.8.4

Description

Library for embedding a Clutter canvas (stage) in GTK+

Added to portage

2017-08-16

cryptography - 2.0.3
Ebuild name:

dev-python/cryptography-2.0.3

Description

Library providing cryptographic recipes and primitives

Added to portage

2017-08-16

cryptography-vectors - 2.0.3
Ebuild name:

dev-python/cryptography-vectors-2.0.3

Description

Test vectors for the cryptography package

Added to portage

2017-08-16

curl - 7.55.1
Ebuild name:

net-misc/curl-7.55.1

Description

A Client that groks URLs

Added to portage

2017-08-16

db4o-jdk11 - 7.4-r1
Ebuild name:

dev-java/db4o-jdk11-7.4-r1

Description

Core files for the object database for Java

Added to portage

2017-08-16

db4o-jdk12 - 7.4-r1
Ebuild name:

dev-java/db4o-jdk12-7.4-r1

Description

Core files for the object database for Java

Added to portage

2017-08-16

db4o-jdk5 - 7.4-r1
Ebuild name:

dev-java/db4o-jdk5-7.4-r1

Description

Core files for the object database for Java

Added to portage

2017-08-16

dbusmock - 0.16.9
Ebuild name:

dev-python/dbusmock-0.16.9

Description

Easily create mock objects on D-Bus for software testing

Added to portage

2017-08-16

dogpile-cache - 0.6.4
Ebuild name:

dev-python/dogpile-cache-0.6.4

Description

A locking API for expiring values while a single thread generates a

Added to portage

2017-08-16

firefox - 55.0.1
Ebuild name:

www-client/firefox-55.0.1

Description

Firefox Web Browser

Added to portage

2017-08-16

flacon - 3.1.1
Ebuild name:

media-sound/flacon-3.1.1

Description

Extracts audio tracks from an audio CD image to separate tracks

Added to portage

2017-08-16

gcalcli - 3.4.0
Ebuild name:

app-misc/gcalcli-3.4.0

Description

Google Calendar Command Line Interface

Added to portage

2017-08-16

gcalcli - 4.0.0_alpha3-r1
Ebuild name:

app-misc/gcalcli-4.0.0_alpha3-r1

Description

Google Calendar Command Line Interface

Added to portage

2017-08-16

geocode-glib - 3.24.0
Ebuild name:

sci-geosciences/geocode-glib-3.24.0

Description

GLib geocoding library that uses the Yahoo Place Finder service

Added to portage

2017-08-16

gnome - 3.24.0
Ebuild name:

gnome-base/gnome-3.24.0

Description

Meta package for GNOME 3, merge this package to install

Added to portage

2017-08-16

gnome-color-manager - 3.24.0
Ebuild name:

gnome-extra/gnome-color-manager-3.24.0

Description

Color profile manager for the GNOME desktop

Added to portage

2017-08-16

gnome-core-apps - 3.24.0
Ebuild name:

gnome-base/gnome-core-apps-3.24.0

Description

Sub-meta package for the core applications integrated with GNOME

Added to portage

2017-08-16

gnome-core-libs - 3.24.0
Ebuild name:

gnome-base/gnome-core-libs-3.24.0

Description

Sub-meta package for the core libraries of GNOME 3

Added to portage

2017-08-16

gnome-extra-apps - 3.24.0
Ebuild name:

gnome-base/gnome-extra-apps-3.24.0

Description

Sub-meta package for the applications of GNOME 3

Added to portage

2017-08-16

gnome-light - 3.24.0
Ebuild name:

gnome-base/gnome-light-3.24.0

Description

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

Added to portage

2017-08-16

google-chrome - 60.0.3112.101
Ebuild name:

www-client/google-chrome-60.0.3112.101

Description

The web browser from Google

Added to portage

2017-08-16

gvfs - 1.32.1
Ebuild name:

gnome-base/gvfs-1.32.1

Description

Virtual filesystem implementation for gio

Added to portage

2017-08-16

ibus-chewing - 1.5.1-r1
Ebuild name:

app-i18n/ibus-chewing-1.5.1-r1

Description

Chinese Chewing engine for IBus

Added to portage

2017-08-16

ibus-chewing - 1.6.1
Ebuild name:

app-i18n/ibus-chewing-1.6.1

Description

Chinese Chewing engine for IBus

Added to portage

2017-08-16

ibus-table - 1.9.18
Ebuild name:

app-i18n/ibus-table-1.9.18

Description

Tables engines for IBus

Added to portage

2017-08-16

ibus-table-chinese - 1.8.2
Ebuild name:

app-i18n/ibus-table-chinese-1.8.2

Description

Chinese tables for IBus-Table

Added to portage

2017-08-16

ibus-table-others - 1.3.9
Ebuild name:

app-i18n/ibus-table-others-1.3.9

Description

Various tables for IBus-Table

Added to portage

2017-08-16

kibana-bin - 5.5.1
Ebuild name:

www-apps/kibana-bin-5.5.1

Description

Analytics and search dashboard for Elasticsearch

Added to portage

2017-08-16

latexila - 3.24.2
Ebuild name:

app-editors/latexila-3.24.2

Description

Integrated LaTeX environment for GNOME

Added to portage

2017-08-16

libchewing - 0.3.3
Ebuild name:

app-i18n/libchewing-0.3.3

Description

Library for Chinese Phonetic input method

Added to portage

2017-08-16

libchewing - 0.4.0-r1
Ebuild name:

app-i18n/libchewing-0.4.0-r1

Description

Library for Chinese Phonetic input method

Added to portage

2017-08-16

libchewing - 0.5.1
Ebuild name:

app-i18n/libchewing-0.5.1

Description

Library for Chinese Phonetic input method

Added to portage

2017-08-16

libgtop - 2.36.0
Ebuild name:

gnome-base/libgtop-2.36.0

Description

A library that provides top functionality to applications

Added to portage

2017-08-16

libgweather - 3.24.1
Ebuild name:

dev-libs/libgweather-3.24.1

Description

Library to access weather information from online services

Added to portage

2017-08-16

libpcre2 - 10.30
Ebuild name:

dev-libs/libpcre2-10.30

Description

Perl-compatible regular expression library

Added to portage

2017-08-16

libsoup - 2.58.2
Ebuild name:

net-libs/libsoup-2.58.2

Description

An HTTP library implementation in C

Added to portage

2017-08-16

libwnck - 3.24.1
Ebuild name:

x11-libs/libwnck-3.24.1

Description

A window navigation construction kit

Added to portage

2017-08-16

logstash-bin - 5.4.3-r1
Ebuild name:

app-admin/logstash-bin-5.4.3-r1

Description

Tool for managing events and logs

Added to portage

2017-08-16

nagios - 4.3.3
Ebuild name:

net-analyzer/nagios-4.3.3

Description

The Nagios metapackage

Added to portage

2017-08-16

nagios-core - 4.3.3
Ebuild name:

net-analyzer/nagios-core-4.3.3

Description

Nagios core - monitoring daemon, web GUI, and documentation

Added to portage

2017-08-16

nautilus - 3.24.2.1
Ebuild name:

gnome-base/nautilus-3.24.2.1

Description

A file manager for the GNOME desktop

Added to portage

2017-08-16

oauth2client - 4.1.2
Ebuild name:

dev-python/oauth2client-4.1.2

Description

Library for accessing resources protected by OAuth 2.0

Added to portage

2017-08-16

openrc - 0.29
Ebuild name:

sys-apps/openrc-0.29

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2017-08-16

pgagent - 3.4.0-r2
Ebuild name:

dev-db/pgagent-3.4.0-r2

Description

is a job scheduler for PostgreSQL

Added to portage

2017-08-16

pyatspi - 2.24.0
Ebuild name:

dev-python/pyatspi-2.24.0

Description

Python binding to at-spi library

Added to portage

2017-08-16

pygobject - 3.24.1
Ebuild name:

dev-python/pygobject-3.24.1

Description

GLib's GObject library bindings for Python

Added to portage

2017-08-16

python-slip - 0.6.5
Ebuild name:

dev-python/python-slip-0.6.5

Description

Miscellaneous convenience, extension and workaround code for Python

Added to portage

2017-08-16

rouge - 2.2.0
Ebuild name:

dev-ruby/rouge-2.2.0

Description

Yet-another-markdown-parser using a strict syntax definition in pure Ruby

Added to portage

2017-08-16

selenium-webdriver - 3.5.1
Ebuild name:

dev-ruby/selenium-webdriver-3.5.1

Description

This gem provides Ruby bindings for WebDriver

Added to portage

2017-08-16

sleuthkit - 4.4.2
Ebuild name:

app-forensics/sleuthkit-4.4.2

Description

A collection of file system and media management forensic analysis to

Added to portage

2017-08-16

spyder - 3.0.2-r2
Ebuild name:

dev-python/spyder-3.0.2-r2

Description

Python IDE with matlab-like features

Added to portage

2017-08-16

teamspeak-server-bin - 3.0.13.8
Ebuild name:

media-sound/teamspeak-server-bin-3.0.13.8

Description

Crystal Clear Cross-Platform Voice Communication Server

Added to portage

2017-08-16

vagrant - 1.9.7
Ebuild name:

app-emulation/vagrant-1.9.7

Description

A tool for building and distributing development environments

Added to portage

2017-08-16

vivaldi-snapshot - 1.12.933.3_p1
Ebuild name:

www-client/vivaldi-snapshot-1.12.933.3_p1

Description

A new browser for our friends

Added to portage

2017-08-16

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.2 ms
system status display