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:

80886

userrating:

average rating: 1.2 (50 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.2 (35 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2025-09-17
aspell-af - 0.50.0-r1
Ebuild name:

app-dicts/aspell-af-0.50.0-r1

Description

Aspell () language dictionary

Added to portage

2025-09-17

aspell-am - 0.03.1-r1
Ebuild name:

app-dicts/aspell-am-0.03.1-r1

Description

Aspell () language dictionary

Added to portage

2025-09-17

aspell-ar - 1.2.0-r1
Ebuild name:

app-dicts/aspell-ar-1.2.0-r1

Description

Aspell () language dictionary

Added to portage

2025-09-17

awscli - 1.42.32
Ebuild name:

app-admin/awscli-1.42.32

Description

Universal Command Line Environment for AWS

Added to portage

2025-09-17

boto3 - 1.40.32
Ebuild name:

dev-python/boto3-1.40.32

Description

The AWS SDK for Python

Added to portage

2025-09-17

botocore - 1.40.32
Ebuild name:

dev-python/botocore-1.40.32

Description

Low-level, data-driven core of boto 3

Added to portage

2025-09-17

cmd2 - 3.0.0_beta1
Ebuild name:

dev-python/cmd2-3.0.0_beta1

Description

Extra features for standard library's cmd module

Added to portage

2025-09-17

cryptography - 46.0.1
Ebuild name:

dev-python/cryptography-46.0.1

Description

Library providing cryptographic recipes and primitives

Added to portage

2025-09-17

cython - 3.1.4
Ebuild name:

dev-python/cython-3.1.4

Description

A Python to C compiler

Added to portage

2025-09-17

dust - 1.2.3
Ebuild name:

sys-block/dust-1.2.3

Description

A more intuitive version of du

Added to portage

2025-09-17

expat - 2.7.2
Ebuild name:

dev-libs/expat-2.7.2

Description

Stream-oriented XML parser library

Added to portage

2025-09-17

folly - 2025.04.14.00-r2
Ebuild name:

dev-cpp/folly-2025.04.14.00-r2

Description

An open-source C++ library developed and used at Facebook

Added to portage

2025-09-17

gmmlib - 22.8.2
Ebuild name:

media-libs/gmmlib-22.8.2

Description

Intel Graphics Memory Management Library

Added to portage

2025-09-17

google-api-python-client - 2.182.0
Ebuild name:

dev-python/google-api-python-client-2.182.0

Description

Google API Client for Python

Added to portage

2025-09-17

grpcio - 1.75.0
Ebuild name:

dev-python/grpcio-1.75.0

Description

HTTP/2-based RPC framework

Added to portage

2025-09-17

grpcio-status - 1.75.0
Ebuild name:

dev-python/grpcio-status-1.75.0

Description

Reference package for GRPC Python status proto mapping

Added to portage

2025-09-17

hypothesis - 6.139.1
Ebuild name:

dev-python/hypothesis-6.139.1

Description

A library for property based testing

Added to portage

2025-09-17

libva-intel-media-driver - 25.3.4
Ebuild name:

media-libs/libva-intel-media-driver-25.3.4

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2025-09-17

log4cplus - 2.1.2-r1
Ebuild name:

dev-libs/log4cplus-2.1.2-r1

Description

C++ port of the Log for Java (log4j) logging library

Added to portage

2025-09-17

mvfst - 2025.04.14.00-r1
Ebuild name:

dev-cpp/mvfst-2025.04.14.00-r1

Description

An implementation of the QUIC transport protocol

Added to portage

2025-09-17

nbclassic - 1.3.3
Ebuild name:

dev-python/nbclassic-1.3.3

Description

Jupyter Notebook as a Jupyter Server Extension

Added to portage

2025-09-17

notus-scanner - 22.7.2
Ebuild name:

net-analyzer/notus-scanner-22.7.2

Description

Notus is a vulnerability scanner for creating results from local

Added to portage

2025-09-17

openjdk - 25_p36
Ebuild name:

dev-java/openjdk-25_p36

Description

Open source implementation of the Java programming language

Added to portage

2025-09-17

openpgp-keys-gentoo-developers - 20250915
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20250915

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2025-09-17

phonenumbers - 9.0.14
Ebuild name:

dev-python/phonenumbers-9.0.14

Description

Python port of Google's libphonenumber

Added to portage

2025-09-17

pymongo - 4.15.1
Ebuild name:

dev-python/pymongo-4.15.1

Description

Python driver for MongoDB

Added to portage

2025-09-17

pyopenssl - 25.3.0
Ebuild name:

dev-python/pyopenssl-25.3.0

Description

Python interface to the OpenSSL library

Added to portage

2025-09-17

pytest-lazy-fixtures - 1.4.0
Ebuild name:

dev-python/pytest-lazy-fixtures-1.4.0

Description

Allows you to use fixtures in @pytest.mark.parametrize

Added to portage

2025-09-17

pytest-mock - 3.15.1
Ebuild name:

dev-python/pytest-mock-3.15.1

Description

Thin-wrapper around the mock package for easier use with pytest

Added to portage

2025-09-17

qgpgme - 2.0.0-r2
Ebuild name:

dev-libs/qgpgme-2.0.0-r2

Description

GnuPG Made Easy is a library for making GnuPG easier to use (Qt bindings)

Added to portage

2025-09-17

subtitlecomposer - 0.8.2
Ebuild name:

media-video/subtitlecomposer-0.8.2

Description

Text-based subtitles editor

Added to portage

2025-09-17

tig - 2.6.0
Ebuild name:

dev-vcs/tig-2.6.0

Description

text mode interface for git

Added to portage

2025-09-17

wakeonlan - 0.42
Ebuild name:

net-misc/wakeonlan-0.42

Description

Client for Wake-On-LAN

Added to portage

2025-09-17

wiremix - 0.7.0
Ebuild name:

media-sound/wiremix-0.7.0

Description

A TUI mixer for PipeWire

Added to portage

2025-09-17

yubikey-manager - 5.8.0
Ebuild name:

app-crypt/yubikey-manager-5.8.0

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-09-17

yubioath-flutter-bin - 7.1.1
Ebuild name:

app-crypt/yubioath-flutter-bin-7.1.1

Description

Yubico Authenticator for TOTP

Added to portage

2025-09-17

yubioath-flutter-bin - 7.2.3
Ebuild name:

app-crypt/yubioath-flutter-bin-7.2.3

Description

Yubico Authenticator for TOTP

Added to portage

2025-09-17

zoom - 6.6.0.4410
Ebuild name:

net-im/zoom-6.6.0.4410

Description

Video conferencing and web conferencing service

Added to portage

2025-09-17

zulucrypt - 7.0.0
Ebuild name:

app-crypt/zulucrypt-7.0.0

Description

Front end to cryptsetup

Added to portage

2025-09-17

2025-09-16
apparmor-profiles - 4.1.1
Ebuild name:

sec-policy/apparmor-profiles-4.1.1

Description

A collection of profiles for the AppArmor application security s

Added to portage

2025-09-16

asciinema - 3.0.0
Ebuild name:

app-misc/asciinema-3.0.0

Description

Terminal session recorder, streamer, and player

Added to portage

2025-09-16

awscli - 1.42.31
Ebuild name:

app-admin/awscli-1.42.31

Description

Universal Command Line Environment for AWS

Added to portage

2025-09-16

blas - 3.8-r1
Ebuild name:

virtual/blas-3.8-r1

Description

Virtual for FORTRAN 77 BLAS implementation

Added to portage

2025-09-16

blessed - 1.22.0
Ebuild name:

dev-python/blessed-1.22.0

Description

Library for making terminal apps using colors, keyboard input and positio

Added to portage

2025-09-16

blis - 1.0-r1
Ebuild name:

sci-libs/blis-1.0-r1

Description

BLAS-like Library Instantiation Software Framework

Added to portage

2025-09-16

boost - 1.89.0
Ebuild name:

dev-libs/boost-1.89.0

Description

Boost Libraries for C++

Added to portage

2025-09-16

boto3 - 1.40.31
Ebuild name:

dev-python/boto3-1.40.31

Description

The AWS SDK for Python

Added to portage

2025-09-16

botocore - 1.40.31
Ebuild name:

dev-python/botocore-1.40.31

Description

Low-level, data-driven core of boto 3

Added to portage

2025-09-16

calamares - 3.3.14-r3
Ebuild name:

app-admin/calamares-3.3.14-r3

Description

Distribution-independent installer framework

Added to portage

2025-09-16

calamares-gentoo-livecd - 3.3.14_p20250915
Ebuild name:

app-misc/calamares-gentoo-livecd-3.3.14_p20250915

Description

Gentoo Linux Calamares installer configuration fo

Added to portage

2025-09-16

cblas - 3.8-r1
Ebuild name:

virtual/cblas-3.8-r1

Description

Virtual for BLAS C implementation

Added to portage

2025-09-16

ceph - 20.1.0-r1
Ebuild name:

sys-cluster/ceph-20.1.0-r1

Description

Ceph distributed filesystem

Added to portage

2025-09-16

claude-code - 1.0.115
Ebuild name:

dev-util/claude-code-1.0.115

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2025-09-16

discord - 0.0.110
Ebuild name:

net-im/discord-0.0.110

Description

All-in-one voice and text chat for gamers

Added to portage

2025-09-16

duckdb - 1.4.0
Ebuild name:

dev-db/duckdb-1.4.0

Description

high-performance analytical database system

Added to portage

2025-09-16

dulwich - 0.24.1
Ebuild name:

dev-python/dulwich-0.24.1

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2025-09-16

faker - 37.8.0
Ebuild name:

dev-python/faker-37.8.0

Description

A Python package that generates fake data for you

Added to portage

2025-09-16

fastbencode - 0.3.6
Ebuild name:

dev-python/fastbencode-0.3.6

Description

Implementation of bencode with Rust implementation

Added to portage

2025-09-16

firefox - 140.3.0
Ebuild name:

www-client/firefox-140.3.0

Description

Firefox Web Browser

Added to portage

2025-09-16

firefox - 143.0
Ebuild name:

www-client/firefox-143.0

Description

Firefox Web Browser

Added to portage

2025-09-16

firefox-bin - 140.3.0
Ebuild name:

www-client/firefox-bin-140.3.0

Description

Firefox Web Browser

Added to portage

2025-09-16

fitsio - 1.2.8
Ebuild name:

dev-python/fitsio-1.2.8

Description

Python library to read from and write to FITS files

Added to portage

2025-09-16

freeipmi - 1.6.16
Ebuild name:

sys-libs/freeipmi-1.6.16

Description

Provides Remote-Console and System Management Software as per IPMI v1.5/2.

Added to portage

2025-09-16

gocryptfs - 2.6.1-r1
Ebuild name:

app-crypt/gocryptfs-2.6.1-r1

Description

Encrypted overlay filesystem written in Go

Added to portage

2025-09-16

godot - 4.5
Ebuild name:

dev-games/godot-4.5

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2025-09-16

httplib2 - 0.31.0
Ebuild name:

dev-python/httplib2-0.31.0

Description

A comprehensive HTTP client library

Added to portage

2025-09-16

hypothesis - 6.138.17
Ebuild name:

dev-python/hypothesis-6.138.17

Description

A library for property based testing

Added to portage

2025-09-16

inline-snapshot - 0.29.0
Ebuild name:

dev-python/inline-snapshot-0.29.0

Description

Create and update inline snapshots in your Python tests

Added to portage

2025-09-16

innoextract - 1.10_pre20250206-r1
Ebuild name:

app-arch/innoextract-1.10_pre20250206-r1

Description

A tool to unpack installers created by Inno Setup

Added to portage

2025-09-16

iozone - 3.507
Ebuild name:

app-benchmarks/iozone-3.507

Description

Filesystem benchmarking program

Added to portage

2025-09-16

iozone - 3.508
Ebuild name:

app-benchmarks/iozone-3.508

Description

Filesystem benchmarking program

Added to portage

2025-09-16

kombu - 5.6.0_beta3
Ebuild name:

dev-python/kombu-5.6.0_beta3

Description

AMQP Messaging Framework for Python

Added to portage

2025-09-16

lapack - 3.10-r1
Ebuild name:

virtual/lapack-3.10-r1

Description

Virtual for Linear Algebra Package FORTRAN 77 (LAPACK) implementation

Added to portage

2025-09-16

lapacke - 3.8-r2
Ebuild name:

virtual/lapacke-3.8-r2

Description

Virtual for LAPACK C implementation

Added to portage

2025-09-16

lldpd - 1.0.20
Ebuild name:

net-misc/lldpd-1.0.20

Description

Implementation of IEEE 802.1ab (LLDP)

Added to portage

2025-09-16

mkdocs-material - 9.6.20
Ebuild name:

dev-python/mkdocs-material-9.6.20

Description

A Material Design theme for MkDocs

Added to portage

2025-09-16

nokogiri - 1.18.10
Ebuild name:

dev-ruby/nokogiri-1.18.10

Description

Nokogiri is an HTML, XML, SAX, and Reader parser

Added to portage

2025-09-16

openipmi - 2.0.37
Ebuild name:

sys-libs/openipmi-2.0.37

Description

Library interface to IPMI

Added to portage

2025-09-16

openpgp-keys-gocryptfs - 20250916
Ebuild name:

sec-keys/openpgp-keys-gocryptfs-20250916

Description

OpenPGP keys used to sign gocryptfs

Added to portage

2025-09-16

paramiko - 4.0.0-r1
Ebuild name:

dev-python/paramiko-4.0.0-r1

Description

SSH2 protocol library

Added to portage

2025-09-16

pixi - 0.55.0
Ebuild name:

dev-util/pixi-0.55.0

Description

A package management and workflow tool

Added to portage

2025-09-16

poetry - 2.2.0
Ebuild name:

dev-python/poetry-2.2.0

Description

A frontend for poetry - a python dependency management and packaging tool

Added to portage

2025-09-16

poetry-core - 2.2.0
Ebuild name:

dev-python/poetry-core-2.2.0

Description

Poetry PEP 517 Build Backend

Added to portage

2025-09-16

protobuf - 6.32.1-r1
Ebuild name:

dev-python/protobuf-6.32.1-r1

Description

Google's Protocol Buffers - Python bindings

Added to portage

2025-09-16

pyicu - 2.15.3
Ebuild name:

dev-python/pyicu-2.15.3

Description

Python bindings for dev-libs/icu

Added to portage

2025-09-16

pytest-check - 2.5.4
Ebuild name:

dev-python/pytest-check-2.5.4

Description

pytest plugin that allows multiple failures per test

Added to portage

2025-09-16

qtconsole - 5.7.0
Ebuild name:

dev-python/qtconsole-5.7.0

Description

Qt-based console for Jupyter with support for rich media output

Added to portage

2025-09-16

radicale - 3.5.6
Ebuild name:

www-apps/radicale-3.5.6

Description

A simple CalDAV calendar server

Added to portage

2025-09-16

regexp_parser - 2.11.3
Ebuild name:

dev-ruby/regexp_parser-2.11.3

Description

A library for tokenizing, lexing, and parsing Ruby regular expression

Added to portage

2025-09-16

ruby - 3.4.6
Ebuild name:

dev-lang/ruby-3.4.6

Description

An object-oriented scripting language

Added to portage

2025-09-16

schroot - 1.6.13_p7-r2
Ebuild name:

dev-util/schroot-1.6.13_p7-r2

Description

Utility to execute commands in a chroot environment

Added to portage

2025-09-16

sequel - 5.96.0
Ebuild name:

dev-ruby/sequel-5.96.0

Description

A lightweight database toolkit for Ruby

Added to portage

2025-09-16

simdjson - 4.0.3
Ebuild name:

dev-libs/simdjson-4.0.3

Description

SIMD accelerated C++ JSON library

Added to portage

2025-09-16

tuxedo-drivers - 4.15.4
Ebuild name:

app-laptop/tuxedo-drivers-4.15.4

Description

Kernel modules for TUXEDO laptops

Added to portage

2025-09-16

types-gdb - 16.3.0.20250915
Ebuild name:

dev-python/types-gdb-16.3.0.20250915

Description

Typing stubs for gdb

Added to portage

2025-09-16

urwid - 3.0.3
Ebuild name:

dev-python/urwid-3.0.3

Description

Curses-based user interface library for Python

Added to portage

2025-09-16

xlsxwriter - 3.2.9
Ebuild name:

dev-python/xlsxwriter-3.2.9

Description

Python module for creating Excel XLSX files

Added to portage

2025-09-16

xvfbwrapper - 0.2.14
Ebuild name:

dev-python/xvfbwrapper-0.2.14

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2025-09-16

yubikey-manager - 5.8.0
Ebuild name:

app-crypt/yubikey-manager-5.8.0

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-09-16

zeep - 4.3.2
Ebuild name:

dev-python/zeep-4.3.2

Description

A modern/fast Python SOAP client based on lxml / requests

Added to portage

2025-09-16

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
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: 49.3 ms