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:

45360

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-04-23
alacritty - 0.3.2
Ebuild name:

x11-terms/alacritty-0.3.2

Description

GPU-accelerated terminal emulator

Added to portage

2019-04-23

atftp - 0.7.2
Ebuild name:

net-ftp/atftp-0.7.2

Description

Advanced TFTP implementation client/server

Added to portage

2019-04-23

calibre - 3.41.3
Ebuild name:

app-text/calibre-3.41.3

Description

Ebook management application

Added to portage

2019-04-23

cdw - 0.8.1-r1
Ebuild name:

app-cdr/cdw-0.8.1-r1

Description

An ncurses based console frontend for cdrtools and dvd+rw-tools

Added to portage

2019-04-23

cmake - 3.14.3
Ebuild name:

dev-util/cmake-3.14.3

Description

Cross platform Make

Added to portage

2019-04-23

eduke32 - 20190419.7615
Ebuild name:

games-fps/eduke32-20190419.7615

Description

An open source engine port of the classic PC first person shooter D

Added to portage

2019-04-23

elfix - 0.9.5
Ebuild name:

sys-apps/elfix-0.9.5

Description

A suite of tools to work with ELF objects on Hardened Gentoo

Added to portage

2019-04-23

fuse-python - 0.3.1
Ebuild name:

dev-python/fuse-python-0.3.1

Description

Python FUSE bindings

Added to portage

2019-04-23

gnuradio - 3.7.13.5
Ebuild name:

net-wireless/gnuradio-3.7.13.5

Description

Toolkit that provides signal processing blocks to implement software

Added to portage

2019-04-23

gssproxy - 0.7.0-r1
Ebuild name:

net-nds/gssproxy-0.7.0-r1

Description

daemon to proxy GSSAPI context establishment and channel handling

Added to portage

2019-04-23

gssproxy - 0.8.0
Ebuild name:

net-nds/gssproxy-0.8.0

Description

daemon to proxy GSSAPI context establishment and channel handling

Added to portage

2019-04-23

gssproxy - 0.8.2
Ebuild name:

net-nds/gssproxy-0.8.2

Description

daemon to proxy GSSAPI context establishment and channel handling

Added to portage

2019-04-23

hashdiff - 0.3.9
Ebuild name:

dev-ruby/hashdiff-0.3.9

Description

Simple Hash extension to make working with nested hashes easier

Added to portage

2019-04-23

karma-bin - 0.33
Ebuild name:

www-apps/karma-bin-0.33

Description

Alerts dashboard for Prometheus Alertmanager

Added to portage

2019-04-23

libfilezilla - 0.16.0
Ebuild name:

dev-libs/libfilezilla-0.16.0

Description

C++ library offering some basic functionality for platform-independent

Added to portage

2019-04-23

libgpg-error - 1.36
Ebuild name:

dev-libs/libgpg-error-1.36

Description

Contains error handling functions used by GnuPG software

Added to portage

2019-04-23

maim - 5.5.3
Ebuild name:

media-gfx/maim-5.5.3

Description

Commandline tool to take screenshots of the desktop

Added to portage

2019-04-23

mercurial - 4.9.1
Ebuild name:

dev-vcs/mercurial-4.9.1

Description

Scalable distributed SCM

Added to portage

2019-04-23

multipath-tools - 0.8.1
Ebuild name:

sys-fs/multipath-tools-0.8.1

Description

Device mapper target autoconfig

Added to portage

2019-04-23

pypax - 0.9.5
Ebuild name:

dev-python/pypax-0.9.5

Description

Python module to get or set either PT_PAX and/or XATTR_PAX flags

Added to portage

2019-04-23

rinku - 2.0.6
Ebuild name:

dev-ruby/rinku-2.0.6

Description

A Ruby library that does autolinking

Added to portage

2019-04-23

signal-desktop-bin - 1.24.1
Ebuild name:

net-im/signal-desktop-bin-1.24.1

Description

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

Added to portage

2019-04-23

tortoisehg - 4.9.1
Ebuild name:

dev-vcs/tortoisehg-4.9.1

Description

Set of graphical tools for Mercurial

Added to portage

2019-04-23

unifi - 5.10.22
Ebuild name:

net-wireless/unifi-5.10.22

Description

A Management Controller for Ubiquiti Networks UniFi APs

Added to portage

2019-04-23

userspace-rcu - 0.10.2
Ebuild name:

dev-libs/userspace-rcu-0.10.2

Description

userspace RCU (read-copy-update) library

Added to portage

2019-04-23

wsmake - 0.6.4-r1
Ebuild name:

www-misc/wsmake-0.6.4-r1

Description

Website pre-processor features tag substitution and page ordering

Added to portage

2019-04-23

xchm - 1.29
Ebuild name:

app-text/xchm-1.29

Description

Utility for viewing Compiled HTML Help (CHM) files

Added to portage

2019-04-23

xfce4-notifyd - 0.4.4
Ebuild name:

xfce-extra/xfce4-notifyd-0.4.4

Description

Notification daemon for the Xfce desktop environment

Added to portage

2019-04-23

2019-04-22
acme-client - 2.0.2
Ebuild name:

dev-ruby/acme-client-2.0.2

Description

A Ruby client for the letsencrypt's ACME protocol.

Added to portage

2019-04-22

amule - 2.3.2-r3
Ebuild name:

net-p2p/amule-2.3.2-r3

Description

aMule, the all-platform eMule p2p client

Added to portage

2019-04-22

asio - 1.12.2
Ebuild name:

dev-cpp/asio-1.12.2

Description

Asynchronous Network Library

Added to portage

2019-04-22

asio - 1.13.0
Ebuild name:

dev-cpp/asio-1.13.0

Description

Asynchronous Network Library

Added to portage

2019-04-22

blogc - 0.16.1
Ebuild name:

app-text/blogc-0.16.1

Description

A blog compiler

Added to portage

2019-04-22

bmon - 999
Ebuild name:

net-analyzer/bmon-999

Description

interface bandwidth monitor

Added to portage

2019-04-22

bwping - 1.12
Ebuild name:

net-analyzer/bwping-1.12

Description

A tool to measure bandwidth and RTT between two hosts using ICMP

Added to portage

2019-04-22

ckb - 0.2.9-r1
Ebuild name:

app-misc/ckb-0.2.9-r1

Description

Corsair K65/K70/K95 Driver

Added to portage

2019-04-22

creduce - 2.9.0_pre20190414-r1
Ebuild name:

dev-util/creduce-2.9.0_pre20190414-r1

Description

C-Reduce - a plugin-based C program reducer

Added to portage

2019-04-22

curses - 1.3.1
Ebuild name:

dev-ruby/curses-1.3.1

Description

Ruby binding for curses, ncurses, and PDCurses

Added to portage

2019-04-22

drupal - 8.5.15
Ebuild name:

www-apps/drupal-8.5.15

Description

PHP-based open-source platform and content management system

Added to portage

2019-04-22

dvisvgm - 2.7
Ebuild name:

app-text/dvisvgm-2.7

Description

Converts DVI files to SVG

Added to portage

2019-04-22

efl - 1.22.1
Ebuild name:

dev-libs/efl-1.22.1

Description

Enlightenment Foundation Libraries all-in-one package

Added to portage

2019-04-22

fetchcommandwrapper - 0.8.1-r1
Ebuild name:

app-portage/fetchcommandwrapper-0.8.1-r1

Description

Wrapper integrating aria2 into portage's FETCHCOMMAND

Added to portage

2019-04-22

fraqtive - 0.4.8-r1
Ebuild name:

x11-misc/fraqtive-0.4.8-r1

Description

Open source, multi-platform generator of the Mandelbrot family fractals

Added to portage

2019-04-22

gertty - 9999
Ebuild name:

dev-util/gertty-9999

Description

Gertty is a console-based interface to the Gerrit Code Review system.

Added to portage

2019-04-22

gimp - 2.10.10
Ebuild name:

media-gfx/gimp-2.10.10

Description

GNU Image Manipulation Program

Added to portage

2019-04-22

git-remote-hg - 1.0.0
Ebuild name:

dev-vcs/git-remote-hg-1.0.0

Description

Semi-official Mercurial bridge from Git project

Added to portage

2019-04-22

git-sources - 5.1_rc6
Ebuild name:

sys-kernel/git-sources-5.1_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2019-04-22

gitea - 1.7.6
Ebuild name:

www-apps/gitea-1.7.6

Description

A painless self-hosted Git service

Added to portage

2019-04-22

go-bindata - 1.0.0
Ebuild name:

dev-go/go-bindata-1.0.0

Description

A small utility which generates Go code from any file

Added to portage

2019-04-22

i2p - 0.9.39
Ebuild name:

net-vpn/i2p-0.9.39

Description

A privacy-centric, anonymous network

Added to portage

2019-04-22

kdeclarative - 5.57.0-r1
Ebuild name:

kde-frameworks/kdeclarative-5.57.0-r1

Description

Framework providing integration of QML and KDE work spaces

Added to portage

2019-04-22

kmymoney - 5.0.4
Ebuild name:

app-office/kmymoney-5.0.4

Description

Personal finance manager based on KDE Frameworks

Added to portage

2019-04-22

kodi - 18.2
Ebuild name:

media-tv/kodi-18.2

Description

A free and open source media-player and entertainment hub

Added to portage

2019-04-22

kstars - 3.2.0
Ebuild name:

sci-astronomy/kstars-3.2.0

Description

Desktop Planetarium

Added to portage

2019-04-22

ktexteditor - 5.57.0-r1
Ebuild name:

kde-frameworks/ktexteditor-5.57.0-r1

Description

Framework providing a full text editor component

Added to portage

2019-04-22

labplot - 2.6.0
Ebuild name:

sci-visualization/labplot-2.6.0

Description

Scientific data analysis and visualisation based on KDE Frameworks

Added to portage

2019-04-22

libmwaw - 0.3.15
Ebuild name:

app-text/libmwaw-0.3.15

Description

Library parsing many pre-OSX MAC text formats

Added to portage

2019-04-22

lxc - 3.1.0-r1
Ebuild name:

app-emulation/lxc-3.1.0-r1

Description

LinuX Containers userspace utilities

Added to portage

2019-04-22

meson - 0.50.1
Ebuild name:

dev-util/meson-0.50.1

Description

Open source build system

Added to portage

2019-04-22

mono - 5.20.1.19
Ebuild name:

dev-lang/mono-5.20.1.19

Description

Mono runtime and class libraries, a C compiler/interpreter

Added to portage

2019-04-22

munin - 2.0.47
Ebuild name:

net-analyzer/munin-2.0.47

Description

Munin Server Monitoring Tool

Added to portage

2019-04-22

net-scp - 2.0.0
Ebuild name:

dev-ruby/net-scp-2.0.0

Description

A pure Ruby implementation of the SCP client protocol

Added to portage

2019-04-22

opera - 60.0.3255.59
Ebuild name:

www-client/opera-60.0.3255.59

Description

A fast and secure web browser

Added to portage

2019-04-22

poppler - 0.76.0
Ebuild name:

app-text/poppler-0.76.0

Description

PDF rendering library based on the xpdf-3.0 code base

Added to portage

2019-04-22

qtgui - 5.12.3-r1
Ebuild name:

dev-qt/qtgui-5.12.3-r1

Description

The GUI module and platform plugins for the Qt5 framework

Added to portage

2019-04-22

rack-attack - 6.0.0
Ebuild name:

dev-ruby/rack-attack-6.0.0

Description

A DSL for blocking & throttling abusive clients

Added to portage

2019-04-22

rspec-expectations - 3.8.3
Ebuild name:

dev-ruby/rspec-expectations-3.8.3

Description

A Behaviour Driven Development (BDD) framework for Ruby

Added to portage

2019-04-22

solid - 5.57.0-r1
Ebuild name:

kde-frameworks/solid-5.57.0-r1

Description

Provider for platform independent hardware discovery, abstraction an

Added to portage

2019-04-22

targetcli-fb - 2.1.49
Ebuild name:

sys-block/targetcli-fb-2.1.49

Description

Command shell for managing Linux LIO kernel target

Added to portage

2019-04-22

telegram-desktop-bin - 1.6.7
Ebuild name:

net-im/telegram-desktop-bin-1.6.7

Description

Official desktop client for Telegram (binary package)

Added to portage

2019-04-22

tox - 0.2.9
Ebuild name:

net-libs/tox-0.2.9

Description

Encrypted P2P, messaging, and audio/video calling platform

Added to portage

2019-04-22

translate-shell - 0.9.6.10
Ebuild name:

app-i18n/translate-shell-0.9.6.10

Description

Online command-line translator

Added to portage

2019-04-22

unicode-data - 12.0.0
Ebuild name:

app-i18n/unicode-data-12.0.0

Description

Unicode data from unicode.org

Added to portage

2019-04-22

upmpdcli - 1.4.2
Ebuild name:

media-sound/upmpdcli-1.4.2

Description

UPnP Media Renderer front-end for MPD, the Music Player Daemon

Added to portage

2019-04-22

vanilla-sources - 4.14.113
Ebuild name:

sys-kernel/vanilla-sources-4.14.113

Description

Full sources for the Linux kernel

Added to portage

2019-04-22

vanilla-sources - 4.19.36
Ebuild name:

sys-kernel/vanilla-sources-4.19.36

Description

Full sources for the Linux kernel

Added to portage

2019-04-22

vanilla-sources - 4.9.170
Ebuild name:

sys-kernel/vanilla-sources-4.9.170

Description

Full sources for the Linux kernel

Added to portage

2019-04-22

vanilla-sources - 5.0.9
Ebuild name:

sys-kernel/vanilla-sources-5.0.9

Description

Full sources for the Linux kernel

Added to portage

2019-04-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: 51.6 ms