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:

44741

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-02-23
arabeyes-fonts - 2.0-r1
Ebuild name:

media-fonts/arabeyes-fonts-2.0-r1

Description

Arabeyes Arabic TrueType fonts

Added to portage

2019-02-23

buildah - 1.7
Ebuild name:

app-emulation/buildah-1.7

Description

A tool that facilitates building OCI images

Added to portage

2019-02-23

clamav - 0.101.1
Ebuild name:

app-antivirus/clamav-0.101.1

Description

Clam Anti-Virus Scanner

Added to portage

2019-02-23

commoncpp2 - 1.8.1-r4
Ebuild name:

dev-cpp/commoncpp2-1.8.1-r4

Description

C++ library offering portable support for system-related services

Added to portage

2019-02-23

dbf - 4.1.2
Ebuild name:

dev-ruby/dbf-4.1.2

Description

a small fast library for reading dBase, xBase, Clipper and FoxPro database files

Added to portage

2019-02-23

dconf - 0.30.1
Ebuild name:

gnome-base/dconf-0.30.1

Description

Simple low-level configuration system

Added to portage

2019-02-23

dotenv - 2.7.0
Ebuild name:

dev-ruby/dotenv-2.7.0

Description

Loads environment variables from .env into ENV

Added to portage

2019-02-23

firefox - 60.5.2
Ebuild name:

www-client/firefox-60.5.2

Description

Firefox Web Browser

Added to portage

2019-02-23

firefox-bin - 60.5.2
Ebuild name:

www-client/firefox-bin-60.5.2

Description

Firefox Web Browser

Added to portage

2019-02-23

ftnchek - 3.3.1-r2
Ebuild name:

dev-util/ftnchek-3.3.1-r2

Description

Static analyzer a la 'lint' for Fortran 77

Added to portage

2019-02-23

gcc - 8.3.0
Ebuild name:

sys-devel/gcc-8.3.0

Description

The GNU Compiler Collection

Added to portage

2019-02-23

gnome-desktop - 3.30.2.1
Ebuild name:

gnome-base/gnome-desktop-3.30.2.1

Description

Library with common API for various GNOME modules

Added to portage

2019-02-23

gsettings-desktop-schemas - 3.28.1
Ebuild name:

gnome-base/gsettings-desktop-schemas-3.28.1

Description

Collection of GSettings schemas for GNOME desktop

Added to portage

2019-02-23

hyperscan - 5.1.0
Ebuild name:

dev-libs/hyperscan-5.1.0

Description

High-performance regular expression matching library

Added to portage

2019-02-23

interbench - 0.31
Ebuild name:

app-benchmarks/interbench-0.31

Description

A Linux interactivity benchmark

Added to portage

2019-02-23

json_schema - 0.20.3
Ebuild name:

dev-ruby/json_schema-0.20.3

Description

A JSON Schema V4 and Hyperschema V4 parser and validator

Added to portage

2019-02-23

kgcc64 - 8.3.0
Ebuild name:

sys-devel/kgcc64-8.3.0

Description

64bit kernel compiler

Added to portage

2019-02-23

ldb - 1.3.7
Ebuild name:

sys-libs/ldb-1.3.7

Description

An LDAP-like embedded database

Added to portage

2019-02-23

ldb - 1.4.5
Ebuild name:

sys-libs/ldb-1.4.5

Description

An LDAP-like embedded database

Added to portage

2019-02-23

ldb - 1.5.3
Ebuild name:

sys-libs/ldb-1.5.3

Description

An LDAP-like embedded database

Added to portage

2019-02-23

ncp - 1.2.4-r1
Ebuild name:

net-misc/ncp-1.2.4-r1

Description

Utility for copying files in a LAN (npoll, npush)

Added to portage

2019-02-23

nokogumbo - 2.0.1
Ebuild name:

dev-ruby/nokogumbo-2.0.1

Description

A Nokogiri interface to the Gumbo HTML5 parser

Added to portage

2019-02-23

openrc - 0.41
Ebuild name:

sys-apps/openrc-0.41

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2019-02-23

openvpn - 2.4.7
Ebuild name:

net-vpn/openvpn-2.4.7

Description

Robust and highly flexible tunneling application compatible with many OSes

Added to portage

2019-02-23

pecl-timezonedb - 2018.9
Ebuild name:

dev-php/pecl-timezonedb-2018.9

Description

Timezone Database to be used with PHP's date and time functions

Added to portage

2019-02-23

proftpd - 1.3.6-r3
Ebuild name:

net-ftp/proftpd-1.3.6-r3

Description

An advanced and very configurable FTP server

Added to portage

2019-02-23

pyopenssl - 19.0.0
Ebuild name:

dev-python/pyopenssl-19.0.0

Description

Python interface to the OpenSSL library

Added to portage

2019-02-23

restart-services - 0.14.3
Ebuild name:

app-admin/restart-services-0.14.3

Description

Tool to manage OpenRC services that need to be restarted

Added to portage

2019-02-23

safe_yaml - 1.0.5
Ebuild name:

dev-ruby/safe_yaml-1.0.5

Description

Parse YAML safely, alternative implementation of YAML.load

Added to portage

2019-02-23

samba - 4.10.0_rc3
Ebuild name:

net-fs/samba-4.10.0_rc3

Description

Samba Suite Version 4

Added to portage

2019-02-23

sanitize - 5.0.0
Ebuild name:

dev-ruby/sanitize-5.0.0

Description

Sanitize is a whitelist-based HTML sanitizer

Added to portage

2019-02-23

skim - 0.5.5
Ebuild name:

app-misc/skim-0.5.5

Description

a command-line fuzzy finder

Added to portage

2019-02-23

spreadsheet - 1.2.0
Ebuild name:

dev-ruby/spreadsheet-1.2.0

Description

Ruby library to read and write spreadsheet documents

Added to portage

2019-02-23

ssss - 0.5
Ebuild name:

app-crypt/ssss-0.5

Description

Shamir's Secret Sharing Scheme

Added to portage

2019-02-23

sway - 1.0_rc1-r1
Ebuild name:

gui-wm/sway-1.0_rc1-r1

Description

i3-compatible Wayland window manager

Added to portage

2019-02-23

sway - 1.0_rc2
Ebuild name:

gui-wm/sway-1.0_rc2

Description

i3-compatible Wayland window manager

Added to portage

2019-02-23

sway - 1.0_rc3
Ebuild name:

gui-wm/sway-1.0_rc3

Description

i3-compatible Wayland window manager

Added to portage

2019-02-23

sway - 9999
Ebuild name:

gui-wm/sway-9999

Description

i3-compatible Wayland window manager

Added to portage

2019-02-23

swayidle - 1.2
Ebuild name:

gui-apps/swayidle-1.2

Description

Idle management daemon for Wayland

Added to portage

2019-02-23

swayidle - 9999
Ebuild name:

gui-apps/swayidle-9999

Description

Idle management daemon for Wayland

Added to portage

2019-02-23

swaylock - 1.3
Ebuild name:

gui-apps/swaylock-1.3

Description

Screen locker for Wayland

Added to portage

2019-02-23

swaylock - 9999
Ebuild name:

gui-apps/swaylock-9999

Description

Screen locker for Wayland

Added to portage

2019-02-23

tcpdf - 6.2.26
Ebuild name:

dev-php/tcpdf-6.2.26

Description

TCPDF is a FLOSS PHP class for generating PDF documents

Added to portage

2019-02-23

wlroots - 0.2
Ebuild name:

gui-libs/wlroots-0.2

Description

Pluggable, composable, unopinionated modules for building a Wayland compositor

Added to portage

2019-02-23

wlroots - 0.3
Ebuild name:

gui-libs/wlroots-0.3

Description

Pluggable, composable, unopinionated modules for building a Wayland compositor

Added to portage

2019-02-23

wlroots - 9999
Ebuild name:

gui-libs/wlroots-9999

Description

Pluggable, composable, unopinionated modules for building a Wayland composito

Added to portage

2019-02-23

xapian - 1.4.10
Ebuild name:

dev-libs/xapian-1.4.10

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2019-02-23

xapian-omega - 1.4.10
Ebuild name:

app-text/xapian-omega-1.4.10

Description

An application built on Xapian, consisting of indexers and a CGI searc

Added to portage

2019-02-23

2019-02-22
PEAR-Net_IPv4 - 1.3.5
Ebuild name:

dev-php/PEAR-Net_IPv4-1.3.5

Description

PEAR class for IP v4 calculations

Added to portage

2019-02-22

PHPMailer - 5.2.27
Ebuild name:

dev-php/PHPMailer-5.2.27

Description

Full-featured email creation and transfer class for PHP

Added to portage

2019-02-22

PHPMailer - 6.0.7
Ebuild name:

dev-php/PHPMailer-6.0.7

Description

Full-featured email creation and transfer class for PHP

Added to portage

2019-02-22

albert - 0.16.1
Ebuild name:

x11-misc/albert-0.16.1

Description

Desktop agnostic launcher

Added to portage

2019-02-22

ansible - 2.6.14
Ebuild name:

app-admin/ansible-2.6.14

Description

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

Added to portage

2019-02-22

ansible - 2.7.8
Ebuild name:

app-admin/ansible-2.7.8

Description

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

Added to portage

2019-02-22

asciinema - 2.0.2
Ebuild name:

app-misc/asciinema-2.0.2

Description

Command line recorder for asciinema.org service

Added to portage

2019-02-22

carbon-c-relay - 3.5
Ebuild name:

app-misc/carbon-c-relay-3.5

Description

Enhanced C version of Carbon relay, aggregator and rewriter

Added to portage

2019-02-22

checkbashisms - 2.19.3
Ebuild name:

dev-util/checkbashisms-2.19.3

Description

Perl script to check for commonly used bash features not defined by P

Added to portage

2019-02-22

dbus - 1.12.12-r1
Ebuild name:

sys-apps/dbus-1.12.12-r1

Description

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

Added to portage

2019-02-22

drone-cli - 1.0.7
Ebuild name:

dev-util/drone-cli-1.0.7

Description

Command-line interface for Drone

Added to portage

2019-02-22

eiciel - 0.9.12.1
Ebuild name:

gnome-extra/eiciel-0.9.12.1

Description

ACL editor for GNOME, with Nautilus extension

Added to portage

2019-02-22

evolution - 3.30.5
Ebuild name:

mail-client/evolution-3.30.5

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2019-02-22

evolution-data-server - 3.30.5
Ebuild name:

gnome-extra/evolution-data-server-3.30.5

Description

Evolution groupware backend

Added to portage

2019-02-22

evolution-ews - 3.30.5
Ebuild name:

gnome-extra/evolution-ews-3.30.5

Description

Evolution module for connecting to Microsoft Exchange Web Services

Added to portage

2019-02-22

fakefs - 0.19.2
Ebuild name:

dev-ruby/fakefs-0.19.2

Description

A fake filesystem. Use it in your tests

Added to portage

2019-02-22

file - 5.36
Ebuild name:

sys-apps/file-5.36

Description

identify a file's format by scanning binary data for patterns

Added to portage

2019-02-22

gsoap - 2.8.80
Ebuild name:

net-libs/gsoap-2.8.80

Description

A cross-platform open source C and C++ SDK for SOAP/XML Web services

Added to portage

2019-02-22

ibm-plex - 1.2.3
Ebuild name:

media-fonts/ibm-plex-1.2.3

Description

The package of IBM's typeface

Added to portage

2019-02-22

igbinary - 3.0.0
Ebuild name:

dev-php/igbinary-3.0.0

Description

A fast drop-in replacement for the standard PHP serialize

Added to portage

2019-02-22

joystick - 1.6.1
Ebuild name:

games-util/joystick-1.6.1

Description

joystick testing utilities

Added to portage

2019-02-22

js8call - 1.0.0_rc1
Ebuild name:

media-radio/js8call-1.0.0_rc1

Description

Weak signal ham radio communication

Added to portage

2019-02-22

json - 2.2.0
Ebuild name:

dev-ruby/json-2.2.0

Description

A JSON implementation as a Ruby extension

Added to portage

2019-02-22

json-schema - 5.2.8
Ebuild name:

dev-php/json-schema-5.2.8

Description

PHP implementation of JSON schema

Added to portage

2019-02-22

kafka-bin - 2.1.1
Ebuild name:

net-misc/kafka-bin-2.1.1

Description

A high-throughput distributed messaging system

Added to portage

2019-02-22

linux-firmware - 20190221
Ebuild name:

sys-kernel/linux-firmware-20190221

Description

Linux firmware files

Added to portage

2019-02-22

mbuffer - 20190127
Ebuild name:

sys-block/mbuffer-20190127

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2019-02-22

netdata - 1.12.1
Ebuild name:

net-analyzer/netdata-1.12.1

Description

Linux real time system monitoring, done right

Added to portage

2019-02-22

nnn - 2.3
Ebuild name:

app-misc/nnn-2.3

Description

The missing terminal file browser for X

Added to portage

2019-02-22

openldap - 2.4.47-r1
Ebuild name:

net-nds/openldap-2.4.47-r1

Description

LDAP suite of application and development tools

Added to portage

2019-02-22

pecl-apcu - 5.1.17
Ebuild name:

dev-php/pecl-apcu-5.1.17

Description

Stripped down version of APC supporting only user cache

Added to portage

2019-02-22

pecl-lzf - 1.6.7
Ebuild name:

dev-php/pecl-lzf-1.6.7

Description

This package handles LZF de/compression

Added to portage

2019-02-22

phar-io-manifest - 1.0.3
Ebuild name:

dev-php/phar-io-manifest-1.0.3

Description

Reading phar.io manifest information from a PHP Archive (PHAR)

Added to portage

2019-02-22

phar-io-version - 2.0.1
Ebuild name:

dev-php/phar-io-version-2.0.1

Description

Library for handling version information and constraints

Added to portage

2019-02-22

phpspec-prophecy - 1.8.0
Ebuild name:

dev-php/phpspec-prophecy-1.8.0

Description

Highly opinionated mocking framework

Added to portage

2019-02-22

postfix - 3.4.0_rc3
Ebuild name:

mail-mta/postfix-3.4.0_rc3

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2019-02-22

prometheus_client - 0.6.0
Ebuild name:

dev-python/prometheus_client-0.6.0

Description

Python client for the Prometheus monitoring system

Added to portage

2019-02-22

puppet - 6.3.0
Ebuild name:

app-admin/puppet-6.3.0

Description

A system automation and configuration management software.

Added to portage

2019-02-22

puppet-agent - 6.3.0
Ebuild name:

app-admin/puppet-agent-6.3.0

Description

general puppet client utils along with hiera and facter

Added to portage

2019-02-22

puppetserver - 6.2.1
Ebuild name:

app-admin/puppetserver-6.2.1

Description

Puppet Server is the next-generation application for managing Puppet a

Added to portage

2019-02-22

rar - 5.7.0_beta2_p20190221
Ebuild name:

app-arch/rar-5.7.0_beta2_p20190221

Description

RAR compressor/uncompressor

Added to portage

2019-02-22

stress-ng - 0.09.53
Ebuild name:

app-benchmarks/stress-ng-0.09.53

Description

Stress test for a computer system with various selectable ways

Added to portage

2019-02-22

swoole - 4.2.13
Ebuild name:

dev-php/swoole-4.2.13

Description

Event-driven asynchronous & concurrent & coroutine networking engine

Added to portage

2019-02-22

teamspeak-client - 3.2.3-r1
Ebuild name:

media-sound/teamspeak-client-3.2.3-r1

Description

A client software for quality voice communication via the int

Added to portage

2019-02-22

unrar - 5.7.2
Ebuild name:

app-arch/unrar-5.7.2

Description

Uncompress rar files

Added to portage

2019-02-22

xdebug - 2.7.0_rc2
Ebuild name:

dev-php/xdebug-2.7.0_rc2

Description

A PHP debugging and profiling extension

Added to portage

2019-02-22

xdebug-client - 2.7.0_rc2
Ebuild name:

dev-php/xdebug-client-2.7.0_rc2

Description

Xdebug client for the Common Debugger Protocol (DBGP)

Added to portage

2019-02-22

xf86-video-intel - 2.99.917_p20180214-r2
Ebuild name:

x11-drivers/xf86-video-intel-2.99.917_p20180214-r2

Description

X.Org driver for Intel cards

Added to portage

2019-02-22

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