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:

42680

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-09-21
android-ndk - 18
Ebuild name:

dev-util/android-ndk-18

Description

Open Handset Alliance's Android NDK (Native Dev Kit)

Added to portage

2018-09-21

gst-plugins-meta - 1.14.3
Ebuild name:

media-plugins/gst-plugins-meta-1.14.3

Description

Meta ebuild to pull in gst plugins for apps

Added to portage

2018-09-21

gtk+ - 3.24.1
Ebuild name:

x11-libs/gtk+-3.24.1

Description

Gimp ToolKit +

Added to portage

2018-09-21

puppetserver - 6.0.0-r1
Ebuild name:

app-admin/puppetserver-6.0.0-r1

Description

Puppet Server is the next-generation application for managing Puppe

Added to portage

2018-09-21

2018-09-20
asciimatics - 1.10.0
Ebuild name:

dev-python/asciimatics-1.10.0

Description

Pythonic library to create text UIs and ASCII art animations

Added to portage

2018-09-20

bitstream-cyberbit - 2.0-r2
Ebuild name:

media-fonts/bitstream-cyberbit-2.0-r2

Description

Cyberbit Unicode (including CJK) font

Added to portage

2018-09-20

ca-bundle - 1.1.2
Ebuild name:

dev-php/ca-bundle-1.1.2

Description

Find the system CA bundle or fall back to the Mozilla one

Added to portage

2018-09-20

chrony - 3.4
Ebuild name:

net-misc/chrony-3.4

Description

NTP client and server programs

Added to portage

2018-09-20

clang - 7.0.0
Ebuild name:

sys-devel/clang-7.0.0

Description

C language family frontend for LLVM

Added to portage

2018-09-20

clang-common - 7.0.0
Ebuild name:

sys-devel/clang-common-7.0.0

Description

Common files shared between multiple slots of clang

Added to portage

2018-09-20

clang-python - 7.0.0
Ebuild name:

dev-python/clang-python-7.0.0

Description

Python bindings for sys-devel/clang

Added to portage

2018-09-20

clang-runtime - 7.0.0
Ebuild name:

sys-devel/clang-runtime-7.0.0

Description

Meta-ebuild for clang runtime libraries

Added to portage

2018-09-20

compiler-rt - 7.0.0
Ebuild name:

sys-libs/compiler-rt-7.0.0

Description

Compiler runtime library for clang (built-in part)

Added to portage

2018-09-20

compiler-rt-sanitizers - 7.0.0
Ebuild name:

sys-libs/compiler-rt-sanitizers-7.0.0

Description

Compiler runtime libraries for clang (sanitizers & xray)

Added to portage

2018-09-20

composer - 1.7.2
Ebuild name:

dev-php/composer-1.7.2

Description

Dependency Manager for PHP

Added to portage

2018-09-20

debugedit - 4.14.2
Ebuild name:

dev-util/debugedit-4.14.2

Description

Stand-alone debugedit from RPM

Added to portage

2018-09-20

displaycal - 3.6.2.0
Ebuild name:

media-gfx/displaycal-3.6.2.0

Description

Display calibration and characterization powered by Argyll CMS

Added to portage

2018-09-20

dracut - 048
Ebuild name:

sys-kernel/dracut-048

Description

Generic initramfs generation tool

Added to portage

2018-09-20

erlang - 20.3.8.9
Ebuild name:

dev-lang/erlang-20.3.8.9

Description

Erlang programming language, runtime environment and libraries (OTP)

Added to portage

2018-09-20

erlang - 21.0.9
Ebuild name:

dev-lang/erlang-21.0.9

Description

Erlang programming language, runtime environment and libraries (OTP)

Added to portage

2018-09-20

f2fs-tools - 1.11.0-r1
Ebuild name:

sys-fs/f2fs-tools-1.11.0-r1

Description

Tools for Flash-Friendly File System (F2FS)

Added to portage

2018-09-20

fugitive - 2.4
Ebuild name:

app-vim/fugitive-2.4

Description

vim plugin a git wrapper for vim

Added to portage

2018-09-20

gentoo-sources - 4.14.71
Ebuild name:

sys-kernel/gentoo-sources-4.14.71

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.18.9
Ebuild name:

sys-kernel/gentoo-sources-4.18.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.4.157
Ebuild name:

sys-kernel/gentoo-sources-4.4.157

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gentoo-sources - 4.9.128
Ebuild name:

sys-kernel/gentoo-sources-4.9.128

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-09-20

gvim - 8.1.0412
Ebuild name:

app-editors/gvim-8.1.0412

Description

GUI version of the Vim text editor

Added to portage

2018-09-20

hylafaxplus - 5.6.1
Ebuild name:

net-misc/hylafaxplus-5.6.1

Description

Enterprise client-server fax package for class 1 and 2 fax modems

Added to portage

2018-09-20

json-schema - 5.2.7
Ebuild name:

dev-php/json-schema-5.2.7

Description

PHP implementation of JSON schema

Added to portage

2018-09-20

jsonlint - 1.7.1
Ebuild name:

dev-php/jsonlint-1.7.1

Description

JSON Lint for PHP

Added to portage

2018-09-20

lazarus - 1.8.4-r1
Ebuild name:

dev-lang/lazarus-1.8.4-r1

Description

Lazarus IDE is a feature rich visual programming environment emulating De

Added to portage

2018-09-20

libcxx - 7.0.0
Ebuild name:

sys-libs/libcxx-7.0.0

Description

New implementation of the C++ standard library, targeting C++11

Added to portage

2018-09-20

libcxxabi - 7.0.0
Ebuild name:

sys-libs/libcxxabi-7.0.0

Description

Low level support for a standard C++ library

Added to portage

2018-09-20

libomp - 7.0.0
Ebuild name:

sys-libs/libomp-7.0.0

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2018-09-20

lit - 7.0.0
Ebuild name:

dev-python/lit-7.0.0

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2018-09-20

lld - 7.0.0
Ebuild name:

sys-devel/lld-7.0.0

Description

The LLVM linker (link editor)

Added to portage

2018-09-20

lldb - 7.0.0
Ebuild name:

dev-util/lldb-7.0.0

Description

The LLVM debugger

Added to portage

2018-09-20

llvm - 7.0.0
Ebuild name:

sys-devel/llvm-7.0.0

Description

Low Level Virtual Machine

Added to portage

2018-09-20

llvm-common - 7.0.0
Ebuild name:

sys-devel/llvm-common-7.0.0

Description

Common files shared between multiple slots of LLVM

Added to portage

2018-09-20

llvm-libunwind - 7.0.0
Ebuild name:

sys-libs/llvm-libunwind-7.0.0

Description

C++ runtime stack unwinder from LLVM

Added to portage

2018-09-20

llvm-ocaml - 7.0.0
Ebuild name:

dev-ml/llvm-ocaml-7.0.0

Description

OCaml bindings for LLVM

Added to portage

2018-09-20

mbpfan - 2.1.0
Ebuild name:

app-laptop/mbpfan-2.1.0

Description

A simple daemon to control fan speed on all Macbook/Macbook Pros

Added to portage

2018-09-20

mgetty - 1.2.1
Ebuild name:

net-dialup/mgetty-1.2.1

Description

fax and voice modem programs

Added to portage

2018-09-20

nix - 2.1.2
Ebuild name:

sys-apps/nix-2.1.2

Description

A purely functional package manager

Added to portage

2018-09-20

numix-icon-theme-circle - 18.09.19
Ebuild name:

x11-themes/numix-icon-theme-circle-18.09.19

Description

An icon theme for Linux from the Numix project

Added to portage

2018-09-20

nvidia-drivers - 410.57
Ebuild name:

x11-drivers/nvidia-drivers-410.57

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2018-09-20

phar-utils - 1.0.1
Ebuild name:

dev-php/phar-utils-1.0.1

Description

PHAR file format utilities, for when PHP phars you up

Added to portage

2018-09-20

pycountry - 18.5.26
Ebuild name:

dev-python/pycountry-18.5.26

Description

Database of countries, subdivisions, languages, currencies and script

Added to portage

2018-09-20

pycryptodome - 3.6.6
Ebuild name:

dev-python/pycryptodome-3.6.6

Description

A self-contained cryptographic library for Python

Added to portage

2018-09-20

pyfiglet - 0.7.5
Ebuild name:

dev-python/pyfiglet-0.7.5

Description

An implementation of figlet written in Python

Added to portage

2018-09-20

pyocr - 0.5.3
Ebuild name:

dev-python/pyocr-0.5.3

Description

An optical character recognition (OCR) tool wrapper for python

Added to portage

2018-09-20

qbittorrent - 4.1.3
Ebuild name:

net-p2p/qbittorrent-4.1.3

Description

BitTorrent client in C++ and Qt

Added to portage

2018-09-20

recommonmark - 0.5.0_pre20180907
Ebuild name:

dev-python/recommonmark-0.5.0_pre20180907

Description

Python docutils-compatibility bridge to CommonMark

Added to portage

2018-09-20

rng-tools - 6.4
Ebuild name:

sys-apps/rng-tools-6.4

Description

Daemon to use hardware random number generators

Added to portage

2018-09-20

signal-desktop-bin - 1.16.1
Ebuild name:

net-im/signal-desktop-bin-1.16.1

Description

Allows you to send and receive messages of Signal Messenger on you

Added to portage

2018-09-20

spdx-licenses - 1.4.0-r1
Ebuild name:

dev-php/spdx-licenses-1.4.0-r1

Description

Tools for working with and validating SPDX licenses

Added to portage

2018-09-20

symbola - 11.00-r1
Ebuild name:

media-fonts/symbola-11.00-r1

Description

Unicode font for Latin, IPA Extensions, Greek, Cyrillic and many Symbo

Added to portage

2018-09-20

symfony-console - 2.8.43
Ebuild name:

dev-php/symfony-console-2.8.43

Description

Subtree split of the Symfony Console Component

Added to portage

2018-09-20

ubuntu-keyring - 2018.09.18.1
Ebuild name:

app-crypt/ubuntu-keyring-2018.09.18.1

Description

GnuPG archive keys of the Ubuntu archive

Added to portage

2018-09-20

vanilla-sources - 4.14.71
Ebuild name:

sys-kernel/vanilla-sources-4.14.71

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.18.9
Ebuild name:

sys-kernel/vanilla-sources-4.18.9

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.4.157
Ebuild name:

sys-kernel/vanilla-sources-4.4.157

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vanilla-sources - 4.9.128
Ebuild name:

sys-kernel/vanilla-sources-4.9.128

Description

Full sources for the Linux kernel

Added to portage

2018-09-20

vim - 8.1.0412
Ebuild name:

app-editors/vim-8.1.0412

Description

Vim, an improved vi-style text editor

Added to portage

2018-09-20

vim-core - 8.1.0412
Ebuild name:

app-editors/vim-core-8.1.0412

Description

vim and gvim shared files

Added to portage

2018-09-20

vivaldi-snapshot - 2.0.1309.3_p2
Ebuild name:

www-client/vivaldi-snapshot-2.0.1309.3_p2

Description

A browser for our friends

Added to portage

2018-09-20

wmcalc - 0.7
Ebuild name:

x11-plugins/wmcalc-0.7

Description

A WindowMaker DockApp calculator

Added to portage

2018-09-20

x11fonts-jmk - 3.0-r3
Ebuild name:

media-fonts/x11fonts-jmk-3.0-r3

Description

This package contains character-cell fonts for use with X

Added to portage

2018-09-20

xdebug-handler - 1.3.0
Ebuild name:

dev-php/xdebug-handler-1.3.0

Description

Restart a CLI process without loading the xdebug extension

Added to portage

2018-09-20

xflux-gui - 1.1.10_p20180910
Ebuild name:

x11-misc/xflux-gui-1.1.10_p20180910

Description

A GUI for f.lux

Added to portage

2018-09-20

youtube-dl - 2018.09.18
Ebuild name:

net-misc/youtube-dl-2018.09.18

Description

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

Added to portage

2018-09-20

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