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:

40732

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



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
2018-05-24
bluez - 5.49-r1
Ebuild name:

net-wireless/bluez-5.49-r1

Description

Bluetooth Tools and System Daemons for Linux

Added to portage

2018-05-24

coolreader - 3.2.2.1
Ebuild name:

app-text/coolreader-3.2.2.1

Description

CoolReader - reader of eBook files (fb2,epub,htm,rtf,txt)

Added to portage

2018-05-24

dunst - 1.3.2
Ebuild name:

x11-misc/dunst-1.3.2

Description

Customizable and lightweight notification-daemon

Added to portage

2018-05-24

inconsolata-hellenic - 1.19-r1
Ebuild name:

media-fonts/inconsolata-hellenic-1.19-r1

Description

Hellenisation of the wonderful, monospace, open/free font

Added to portage

2018-05-24

intel-microcode - 20180426
Ebuild name:

sys-firmware/intel-microcode-20180426

Description

Intel IA32/IA64 microcode update data

Added to portage

2018-05-24

libreport - 2.9.5
Ebuild name:

dev-libs/libreport-2.9.5

Description

Generic library for reporting software bugs

Added to portage

2018-05-24

libxshmfence - 1.3-r1
Ebuild name:

x11-libs/libxshmfence-1.3-r1

Description

Shared memory fences using futexes

Added to portage

2018-05-24

stunnel - 5.45
Ebuild name:

net-misc/stunnel-5.45

Description

TLS/SSL - Port Wrapper

Added to portage

2018-05-24

2018-05-23
Humor-Sans - 1.0-r1
Ebuild name:

media-fonts/Humor-Sans-1.0-r1

Description

A sanserif typeface in the style of xkcd

Added to portage

2018-05-23

alegreya-sans - 2.008
Ebuild name:

media-fonts/alegreya-sans-2.008

Description

A humanist sans-serif typeface with a calligraphic, dynamic feeling

Added to portage

2018-05-23

alien - 8.95-r1
Ebuild name:

app-arch/alien-8.95-r1

Description

Converts between the rpm, dpkg, stampede slp, and slackware tgz file formats

Added to portage

2018-05-23

ansible - 2.5.3-r1
Ebuild name:

app-admin/ansible-2.5.3-r1

Description

Model-driven deployment, config management, and command execution framew

Added to portage

2018-05-23

commander - 4.4.5
Ebuild name:

dev-ruby/commander-4.4.5

Description

The complete solution for Ruby command-line executables

Added to portage

2018-05-23

gentoo-sources - 4.14.43
Ebuild name:

sys-kernel/gentoo-sources-4.14.43

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-05-23

gentoo-sources - 4.16.11
Ebuild name:

sys-kernel/gentoo-sources-4.16.11

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-05-23

gentoo-sources - 4.9.102
Ebuild name:

sys-kernel/gentoo-sources-4.9.102

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-05-23

google-auth - 1.4.1
Ebuild name:

dev-python/google-auth-1.4.1

Description

Google Authentication Library

Added to portage

2018-05-23

grafana-bin - 5.1.3
Ebuild name:

www-apps/grafana-bin-5.1.3

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenT

Added to portage

2018-05-23

kdevelop - 5.2.3
Ebuild name:

dev-util/kdevelop-5.2.3

Description

Integrated Development Environment, supporting KF5/Qt, C/C++ and much more

Added to portage

2018-05-23

kdevelop-php - 5.2.3
Ebuild name:

dev-util/kdevelop-php-5.2.3

Description

PHP plugin for KDevelop

Added to portage

2018-05-23

kdevelop-python - 5.2.3
Ebuild name:

dev-util/kdevelop-python-5.2.3

Description

Python plugin for KDevelop

Added to portage

2018-05-23

kube-apiserver - 1.10.3
Ebuild name:

sys-cluster/kube-apiserver-1.10.3

Description

Kubernetes API server

Added to portage

2018-05-23

kube-apiserver - 1.9.8
Ebuild name:

sys-cluster/kube-apiserver-1.9.8

Description

Kubernetes API server

Added to portage

2018-05-23

kube-controller-manager - 1.10.3
Ebuild name:

sys-cluster/kube-controller-manager-1.10.3

Description

Kubernetes Controller Manager

Added to portage

2018-05-23

kube-controller-manager - 1.9.8
Ebuild name:

sys-cluster/kube-controller-manager-1.9.8

Description

Kubernetes Controller Manager

Added to portage

2018-05-23

kube-proxy - 1.10.3
Ebuild name:

sys-cluster/kube-proxy-1.10.3

Description

Kubernetes Proxy service

Added to portage

2018-05-23

kube-proxy - 1.9.8
Ebuild name:

sys-cluster/kube-proxy-1.9.8

Description

Kubernetes Proxy service

Added to portage

2018-05-23

kube-scheduler - 1.10.3
Ebuild name:

sys-cluster/kube-scheduler-1.10.3

Description

Kubernetes Scheduler

Added to portage

2018-05-23

kube-scheduler - 1.9.8
Ebuild name:

sys-cluster/kube-scheduler-1.9.8

Description

Kubernetes Controller Manager

Added to portage

2018-05-23

kubectl - 1.10.3
Ebuild name:

sys-cluster/kubectl-1.10.3

Description

CLI to run commands against Kubernetes clusters

Added to portage

2018-05-23

kubectl - 1.9.8
Ebuild name:

sys-cluster/kubectl-1.9.8

Description

CLI to run commands against Kubernetes clusters

Added to portage

2018-05-23

kubelet - 1.10.3
Ebuild name:

sys-cluster/kubelet-1.10.3

Description

Kubernetes Node Agent

Added to portage

2018-05-23

kubelet - 1.9.8
Ebuild name:

sys-cluster/kubelet-1.9.8

Description

Kubernetes Node Agent

Added to portage

2018-05-23

libepoxy - 1.5.2
Ebuild name:

media-libs/libepoxy-1.5.2

Description

Epoxy is a library for handling OpenGL function pointer management for yo

Added to portage

2018-05-23

libreoffice - 5.4.7.2
Ebuild name:

app-office/libreoffice-5.4.7.2

Description

A full office productivity suite

Added to portage

2018-05-23

libreoffice-l10n - 5.4.7.2
Ebuild name:

app-office/libreoffice-l10n-5.4.7.2

Description

Translations for the Libreoffice suite

Added to portage

2018-05-23

lz4 - 1.8.2
Ebuild name:

app-arch/lz4-1.8.2

Description

Extremely Fast Compression algorithm

Added to portage

2018-05-23

micropython - 1.9.4
Ebuild name:

dev-lang/micropython-1.9.4

Description

Python implementation for microcontrollers

Added to portage

2018-05-23

mutt - 1.10.0
Ebuild name:

mail-client/mutt-1.10.0

Description

A small but very powerful text-based mail client

Added to portage

2018-05-23

osinfo-db - 20180514
Ebuild name:

sys-apps/osinfo-db-20180514

Description

osinfo database files

Added to portage

2018-05-23

paraview - 5.5.0
Ebuild name:

sci-visualization/paraview-5.5.0

Description

ParaView is a powerful scientific data visualization application

Added to portage

2018-05-23

pyasn1 - 0.4.2
Ebuild name:

dev-python/pyasn1-0.4.2

Description

ASN.1 library for Python

Added to portage

2018-05-23

pyasn1-modules - 0.2.1
Ebuild name:

dev-python/pyasn1-modules-0.2.1

Description

pyasn1 modules

Added to portage

2018-05-23

qgis - 3.0.3
Ebuild name:

sci-geosciences/qgis-3.0.3

Description

User friendly Geographic Information System

Added to portage

2018-05-23

radare2 - 2.6.0
Ebuild name:

dev-util/radare2-2.6.0

Description

unix-like reverse engineering framework and commandline tools

Added to portage

2018-05-23

shotwell - 0.29.2
Ebuild name:

media-gfx/shotwell-0.29.2

Description

Open source photo manager for GNOME

Added to portage

2018-05-23

thunderbird - 52.8.0
Ebuild name:

mail-client/thunderbird-52.8.0

Description

Thunderbird Mail Client

Added to portage

2018-05-23

thunderbird-bin - 52.8.0
Ebuild name:

mail-client/thunderbird-bin-52.8.0

Description

Thunderbird Mail Client

Added to portage

2018-05-23

tor - 0.3.3.6
Ebuild name:

net-vpn/tor-0.3.3.6

Description

Anonymizing overlay network for TCP

Added to portage

2018-05-23

vanilla-sources - 4.14.43
Ebuild name:

sys-kernel/vanilla-sources-4.14.43

Description

Full sources for the Linux kernel

Added to portage

2018-05-23

vanilla-sources - 4.16.11
Ebuild name:

sys-kernel/vanilla-sources-4.16.11

Description

Full sources for the Linux kernel

Added to portage

2018-05-23

vanilla-sources - 4.9.102
Ebuild name:

sys-kernel/vanilla-sources-4.9.102

Description

Full sources for the Linux kernel

Added to portage

2018-05-23

websocket - 1.2.7
Ebuild name:

dev-ruby/websocket-1.2.7

Description

Universal Ruby library to handle WebSocket protocol

Added to portage

2018-05-23

whois - 5.3.1
Ebuild name:

net-misc/whois-5.3.1

Description

improved Whois Client

Added to portage

2018-05-23

yubikey-manager-qt - 0.5.1
Ebuild name:

app-crypt/yubikey-manager-qt-0.5.1

Description

Cross-platform application for configuring any YubiKey over all

Added to portage

2018-05-23

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 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: 4.5 ms