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:

46443

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
2019-06-18
bazel - 0.27.0
Ebuild name:

dev-util/bazel-0.27.0

Description

Fast and correct automated build system

Added to portage

2019-06-18

chrpath - 0.16
Ebuild name:

app-admin/chrpath-0.16

Description

Chrpath can modify the rpath and runpath of ELF executables

Added to portage

2019-06-18

encodings - 1.0.5
Ebuild name:

media-fonts/encodings-1.0.5

Description

X.Org font encodings

Added to portage

2019-06-18

gentoo-sources - 4.14.127
Ebuild name:

sys-kernel/gentoo-sources-4.14.127

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-06-18

gentoo-sources - 4.19.52
Ebuild name:

sys-kernel/gentoo-sources-4.19.52

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-06-18

gentoo-sources - 4.4.182
Ebuild name:

sys-kernel/gentoo-sources-4.4.182

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-06-18

gentoo-sources - 4.9.182
Ebuild name:

sys-kernel/gentoo-sources-4.9.182

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-06-18

gentoo-sources - 5.1.11
Ebuild name:

sys-kernel/gentoo-sources-5.1.11

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-06-18

getopt - 1.1.6-r1
Ebuild name:

app-misc/getopt-1.1.6-r1

Description

getopt(1) replacement supporting GNU-style long options

Added to portage

2019-06-18

mutt - 1.12.1
Ebuild name:

mail-client/mutt-1.12.1

Description

A small but very powerful text-based mail client

Added to portage

2019-06-18

openssh - 8.0_p1-r2
Ebuild name:

net-misc/openssh-8.0_p1-r2

Description

Port of OpenBSD's free SSH release

Added to portage

2019-06-18

unbound - 1.9.2
Ebuild name:

net-dns/unbound-1.9.2

Description

A validating, recursive and caching DNS resolver

Added to portage

2019-06-18

vanilla-sources - 4.14.127
Ebuild name:

sys-kernel/vanilla-sources-4.14.127

Description

Full sources for the Linux kernel

Added to portage

2019-06-18

vanilla-sources - 4.19.52
Ebuild name:

sys-kernel/vanilla-sources-4.19.52

Description

Full sources for the Linux kernel

Added to portage

2019-06-18

vanilla-sources - 4.4.182
Ebuild name:

sys-kernel/vanilla-sources-4.4.182

Description

Full sources for the Linux kernel

Added to portage

2019-06-18

vanilla-sources - 4.9.182
Ebuild name:

sys-kernel/vanilla-sources-4.9.182

Description

Full sources for the Linux kernel

Added to portage

2019-06-18

vanilla-sources - 5.1.11
Ebuild name:

sys-kernel/vanilla-sources-5.1.11

Description

Full sources for the Linux kernel

Added to portage

2019-06-18

vine - 1.3.0
Ebuild name:

dev-python/vine-1.3.0

Description

Python Promises

Added to portage

2019-06-18

vivaldi-snapshot - 2.6.1566.35_p1
Ebuild name:

www-client/vivaldi-snapshot-2.6.1566.35_p1

Description

A browser for our friends

Added to portage

2019-06-18

2019-06-17
adjtimex - 1.29-r2
Ebuild name:

net-misc/adjtimex-1.29-r2

Description

display or set the kernel time variables

Added to portage

2019-06-17

aiorpcX - 0.18.3
Ebuild name:

dev-python/aiorpcX-0.18.3

Description

Generic async RPC implementation, including JSON-RPC

Added to portage

2019-06-17

alacritty - 0.3.3
Ebuild name:

x11-terms/alacritty-0.3.3

Description

GPU-accelerated terminal emulator

Added to portage

2019-06-17

alembic - 1.7.11
Ebuild name:

media-gfx/alembic-1.7.11

Description

Open framework for storing and sharing scene data

Added to portage

2019-06-17

buildah - 1.8.4
Ebuild name:

app-emulation/buildah-1.8.4

Description

A tool that facilitates building OCI images

Added to portage

2019-06-17

buildah - 1.9.0
Ebuild name:

app-emulation/buildah-1.9.0

Description

A tool that facilitates building OCI images

Added to portage

2019-06-17

catalyst - 3.0.5
Ebuild name:

dev-util/catalyst-3.0.5

Description

Release metatool used for creating releases based on Gentoo Linux

Added to portage

2019-06-17

cbatticon - 1.6.9
Ebuild name:

x11-misc/cbatticon-1.6.9

Description

A lightweight and fast battery icon that sits in your system tray

Added to portage

2019-06-17

comparator - 2.12
Ebuild name:

dev-util/comparator-2.12

Description

ESR's utility for making fast comparisons among large source trees

Added to portage

2019-06-17

cryfs - 0.10.2
Ebuild name:

sys-fs/cryfs-0.10.2

Description

Encrypted FUSE filesystem that conceals metadata

Added to portage

2019-06-17

dnetc - 2.9112.521
Ebuild name:

app-misc/dnetc-2.9112.521

Description

distributed.net client

Added to portage

2019-06-17

equatable - 0.6.0
Ebuild name:

dev-ruby/equatable-0.6.0

Description

Allows ruby objects to implement equality comparison and inspection method

Added to portage

2019-06-17

fping - 4.2
Ebuild name:

net-analyzer/fping-4.2

Description

A utility to ping multiple hosts at once

Added to portage

2019-06-17

git-sources - 5.2_rc5
Ebuild name:

sys-kernel/git-sources-5.2_rc5

Description

The very latest -git version of the Linux kernel

Added to portage

2019-06-17

libX11 - 1.6.8
Ebuild name:

x11-libs/libX11-1.6.8

Description

X.Org X11 library

Added to portage

2019-06-17

mbr-gpt - 0.0.1-r1
Ebuild name:

sys-boot/mbr-gpt-0.0.1-r1

Description

An MBR that can handle BIOS-based boot on GPT

Added to portage

2019-06-17

mongo-tools - 3.6.13
Ebuild name:

app-admin/mongo-tools-3.6.13

Description

A high-performance, open source, schema-free document-oriented databas

Added to portage

2019-06-17

mongodb - 3.6.13
Ebuild name:

dev-db/mongodb-3.6.13

Description

A high-performance, open source, schema-free document-oriented database

Added to portage

2019-06-17

opera - 60.0.3255.170
Ebuild name:

www-client/opera-60.0.3255.170

Description

A fast and secure web browser

Added to portage

2019-06-17

opera-beta - 62.0.3331.10
Ebuild name:

www-client/opera-beta-62.0.3331.10

Description

A fast and secure web browser

Added to portage

2019-06-17

opera-developer - 63.0.3349.0
Ebuild name:

www-client/opera-developer-63.0.3349.0

Description

A fast and secure web browser

Added to portage

2019-06-17

pastel - 0.7.3
Ebuild name:

dev-ruby/pastel-0.7.3

Description

Terminal strings styling with intuitive and clean API

Added to portage

2019-06-17

prefix-toolkit - 4
Ebuild name:

app-portage/prefix-toolkit-4

Description

Utilities for users of Gentoo Prefix

Added to portage

2019-06-17

pychess - 0.99.4-r1
Ebuild name:

games-board/pychess-0.99.4-r1

Description

A chess client for Gnome

Added to portage

2019-06-17

pygresql - 5.1
Ebuild name:

dev-python/pygresql-5.1

Description

A Python interface for the PostgreSQL database

Added to portage

2019-06-17

pyroute2 - 0.5.5-r1
Ebuild name:

dev-python/pyroute2-0.5.5-r1

Description

A pure Python netlink and Linux network configuration library.

Added to portage

2019-06-17

rmagick - 3.2.0
Ebuild name:

dev-ruby/rmagick-3.2.0

Description

An interface between Ruby and the ImageMagick(TM) image processing library

Added to portage

2019-06-17

shadow - 4.7
Ebuild name:

sys-apps/shadow-4.7

Description

Utilities to deal with user accounts

Added to portage

2019-06-17

stunnel - 5.55
Ebuild name:

net-misc/stunnel-5.55

Description

TLS/SSL - Port Wrapper

Added to portage

2019-06-17

swi-prolog - 8.1.8
Ebuild name:

dev-lang/swi-prolog-8.1.8

Description

versatile implementation of the Prolog programming language

Added to portage

2019-06-17

systemd - 241-r2
Ebuild name:

sys-apps/systemd-241-r2

Description

System and service manager for Linux

Added to portage

2019-06-17

systemd - 242-r3
Ebuild name:

sys-apps/systemd-242-r3

Description

System and service manager for Linux

Added to portage

2019-06-17

texlive-langczechslovak - 2019-r1
Ebuild name:

dev-texlive/texlive-langczechslovak-2019-r1

Description

TeXLive Czech/Slovak

Added to portage

2019-06-17

texworks - 0.6.3
Ebuild name:

app-editors/texworks-0.6.3

Description

A simple interface for working with TeX documents

Added to portage

2019-06-17

tty-platform - 0.2.1
Ebuild name:

dev-ruby/tty-platform-0.2.1

Description

Query methods for detecting different operating systems

Added to portage

2019-06-17

tty-reader - 0.6.0-r1
Ebuild name:

dev-ruby/tty-reader-0.6.0-r1

Description

Methods for processing keyboard input in character, line and multiline

Added to portage

2019-06-17

udisks - 2.8.3
Ebuild name:

sys-fs/udisks-2.8.3

Description

Daemon providing interfaces to work with storage devices

Added to portage

2019-06-17

unsymlink-lib - 16
Ebuild name:

app-portage/unsymlink-lib-16

Description

Convert your system to SYMLINK_LIB=no

Added to portage

2019-06-17

util-linux - 2.34
Ebuild name:

sys-apps/util-linux-2.34

Description

Various useful Linux utilities

Added to portage

2019-06-17

vivaldi-snapshot - 2.6.1566.31_p1
Ebuild name:

www-client/vivaldi-snapshot-2.6.1566.31_p1

Description

A browser for our friends

Added to portage

2019-06-17

xterm - 346
Ebuild name:

x11-terms/xterm-346

Description

Terminal Emulator for X Windows

Added to portage

2019-06-17

xwallpaper - 0.6.0
Ebuild name:

x11-misc/xwallpaper-0.6.0

Description

Wallpaper setting utility for X

Added to portage

2019-06-17

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