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:

81690

userrating:

average rating: 1.2 (52 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-10-27
bcmail - 1.82
Ebuild name:

dev-java/bcmail-1.82

Description

The Bouncy Castle Java S/MIME APIs for handling S/MIME protocols

Added to portage

2025-10-27

bcpg - 1.82
Ebuild name:

dev-java/bcpg-1.82

Description

Java cryptography APIs

Added to portage

2025-10-27

bcpkix - 1.82
Ebuild name:

dev-java/bcpkix-1.82

Description

Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation

Added to portage

2025-10-27

bcprov - 1.82
Ebuild name:

dev-java/bcprov-1.82

Description

Java cryptography APIs

Added to portage

2025-10-27

bcutil - 1.82
Ebuild name:

dev-java/bcutil-1.82

Description

Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctl

Added to portage

2025-10-27

biglybt - 3.9.0.0-r1
Ebuild name:

net-p2p/biglybt-3.9.0.0-r1

Description

Feature-filled Bittorrent client based on Azureus

Added to portage

2025-10-27

cairosvg - 2.8.2-r1
Ebuild name:

media-gfx/cairosvg-2.8.2-r1

Description

CLI and library to export SVG to PDF, PostScript, and PNG

Added to portage

2025-10-27

cargo-nextest - 0.9.108
Ebuild name:

dev-util/cargo-nextest-0.9.108

Description

Next-generation test runner for Rust

Added to portage

2025-10-27

cargo-tarpaulin - 0.34.1
Ebuild name:

dev-util/cargo-tarpaulin-0.34.1

Description

Cargo-Tarpaulin is a tool to determine code coverage achieved via t

Added to portage

2025-10-27

click-plugins - 1.1.1.2
Ebuild name:

dev-python/click-plugins-1.1.1.2

Description

Module for click to enable registering CLI commands via entry poin

Added to portage

2025-10-27

confuse - 2.0.1-r1
Ebuild name:

dev-python/confuse-2.0.1-r1

Description

A configuration library for Python that uses YAML

Added to portage

2025-10-27

courier-imap - 5.3.1
Ebuild name:

net-mail/courier-imap-5.3.1

Description

An IMAP daemon designed specifically for maildirs

Added to portage

2025-10-27

csvkit - 2.1.0-r1
Ebuild name:

dev-python/csvkit-2.1.0-r1

Description

A suite of utilities for converting to and working with CSV

Added to portage

2025-10-27

jupyter-console - 6.6.3-r1
Ebuild name:

dev-python/jupyter-console-6.6.3-r1

Description

A terminal-based console frontend for Jupyter kernels

Added to portage

2025-10-27

jupyter-lsp - 2.3.0-r1
Ebuild name:

dev-python/jupyter-lsp-2.3.0-r1

Description

Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab

Added to portage

2025-10-27

jupyter-server-mathjax - 0.2.6-r1
Ebuild name:

dev-python/jupyter-server-mathjax-0.2.6-r1

Description

MathJax resources as a Jupyter Server Extension

Added to portage

2025-10-27

libblockdev - 3.4.0
Ebuild name:

sys-libs/libblockdev-3.4.0

Description

Library for manipulating block devices

Added to portage

2025-10-27

libnbd - 1.22.5-r1
Ebuild name:

sys-libs/libnbd-1.22.5-r1

Description

NBD client library in userspace

Added to portage

2025-10-27

libnbd - 1.23.4-r2
Ebuild name:

sys-libs/libnbd-1.23.4-r2

Description

NBD client library in userspace

Added to portage

2025-10-27

libnbd - 1.23.9-r1
Ebuild name:

sys-libs/libnbd-1.23.9-r1

Description

NBD client library in userspace

Added to portage

2025-10-27

musescore - 4.6.3
Ebuild name:

media-sound/musescore-4.6.3

Description

WYSIWYG Music Score Typesetter

Added to portage

2025-10-27

onlyoffice-bin - 9.1.0
Ebuild name:

app-office/onlyoffice-bin-9.1.0

Description

A free and open source office and productivity suite (binary versio

Added to portage

2025-10-27

openbsd-netcat - 1.234_p1
Ebuild name:

net-analyzer/openbsd-netcat-1.234_p1

Description

The OpenBSD network swiss army knife

Added to portage

2025-10-27

pgLatLon - 0.16
Ebuild name:

dev-db/pgLatLon-0.16

Description

Spatial database extension for the PostgreSQL

Added to portage

2025-10-27

sbc - 2.1
Ebuild name:

media-libs/sbc-2.1

Description

Audio codec to connect bluetooth HQ audio devices as headphones or loudspeakers

Added to portage

2025-10-27

signal-desktop-bin - 7.75.1
Ebuild name:

net-im/signal-desktop-bin-7.75.1

Description

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

Added to portage

2025-10-27

2025-10-26
action_text-trix - 2.1.15
Ebuild name:

dev-ruby/action_text-trix-2.1.15

Description

A rich text editor for everyday writing

Added to portage

2025-10-26

actioncable - 8.1.0
Ebuild name:

dev-ruby/actioncable-8.1.0

Description

Integrated WebSockets for Rails

Added to portage

2025-10-26

actionmailbox - 8.1.0
Ebuild name:

dev-ruby/actionmailbox-8.1.0

Description

Framework for designing email-service layers

Added to portage

2025-10-26

actionmailer - 8.1.0
Ebuild name:

dev-ruby/actionmailer-8.1.0

Description

Framework for designing email-service layers

Added to portage

2025-10-26

actionpack - 8.1.0
Ebuild name:

dev-ruby/actionpack-8.1.0

Description

Eases web-request routing, handling, and response

Added to portage

2025-10-26

actiontext - 8.1.0
Ebuild name:

dev-ruby/actiontext-8.1.0

Description

Edit and display rich text in Rails applications

Added to portage

2025-10-26

actionview - 8.1.0
Ebuild name:

dev-ruby/actionview-8.1.0

Description

Simple, battle-tested conventions and helpers for building web pages

Added to portage

2025-10-26

activejob - 8.1.0
Ebuild name:

dev-ruby/activejob-8.1.0

Description

Job framework with pluggable queues

Added to portage

2025-10-26

activemodel - 8.1.0
Ebuild name:

dev-ruby/activemodel-8.1.0

Description

Toolkit for building modeling frameworks like Active Record and Active R

Added to portage

2025-10-26

activerecord - 8.1.0
Ebuild name:

dev-ruby/activerecord-8.1.0

Description

Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM

Added to portage

2025-10-26

activestorage - 8.1.0
Ebuild name:

dev-ruby/activestorage-8.1.0

Description

Attach cloud and local files in Rails applications

Added to portage

2025-10-26

activesupport - 8.1.0
Ebuild name:

dev-ruby/activesupport-8.1.0

Description

Utility Classes and Extension to the Standard Library

Added to portage

2025-10-26

atuin - 18.10.0
Ebuild name:

app-shells/atuin-18.10.0

Description

Shell history manager supporting encrypted synchronisation

Added to portage

2025-10-26

b2sdk - 2.10.1
Ebuild name:

dev-python/b2sdk-2.10.1

Description

Library to access Backblaze B2 cloud storage

Added to portage

2025-10-26

batteries - 3.10.0
Ebuild name:

dev-ml/batteries-3.10.0

Description

A community-maintained standard library extension

Added to portage

2025-10-26

beartype - 0.22.4
Ebuild name:

dev-python/beartype-0.22.4

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2025-10-26

berkeleydb - 18.1.15
Ebuild name:

dev-python/berkeleydb-18.1.15

Description

Python bindings for Oracle Berkeley DB

Added to portage

2025-10-26

boxfort - 0.1.5
Ebuild name:

dev-libs/boxfort-0.1.5

Description

Convenient & cross-platform sandboxing C library

Added to portage

2025-10-26

courier-imap - 5.2.11-r2
Ebuild name:

net-mail/courier-imap-5.2.11-r2

Description

An IMAP daemon designed specifically for maildirs

Added to portage

2025-10-26

criterion - 2.4.3
Ebuild name:

dev-libs/criterion-2.4.3

Description

Cross platform unit testing framework for C and C++

Added to portage

2025-10-26

croc - 10.2.7
Ebuild name:

net-misc/croc-10.2.7

Description

Easily and securely send things from one computer to another

Added to portage

2025-10-26

django-otp - 1.6.3
Ebuild name:

dev-python/django-otp-1.6.3

Description

Django framework adding two-factor authentication using one-time passwo

Added to portage

2025-10-26

exaile - 4.2.0
Ebuild name:

media-sound/exaile-4.2.0

Description

GTK+ based media player aiming to be similar to Amarok

Added to portage

2025-10-26

fasthenry - 3.0.24.03.14
Ebuild name:

sci-electronics/fasthenry-3.0.24.03.14

Description

Three dimensional inductance computation program, Whiteley R

Added to portage

2025-10-26

fwupd-efi - 1.8
Ebuild name:

sys-apps/fwupd-efi-1.8

Description

EFI executable for fwupd

Added to portage

2025-10-26

gcc - 15.2.1_p20251025
Ebuild name:

sys-devel/gcc-15.2.1_p20251025

Description

The GNU Compiler Collection

Added to portage

2025-10-26

ghostty - 1.2.3
Ebuild name:

x11-terms/ghostty-1.2.3

Description

Fast, feature-rich, and cross-platform terminal emulator

Added to portage

2025-10-26

ghostty-terminfo - 1.2.3
Ebuild name:

x11-terms/ghostty-terminfo-1.2.3

Description

Terminfo for ghostty, a fast, feature-rich, and cross-platform ter

Added to portage

2025-10-26

glib - 2.86.1
Ebuild name:

dev-libs/glib-2.86.1

Description

The GLib library of C routines

Added to portage

2025-10-26

gnome-control-center - 48.3-r1
Ebuild name:

gnome-base/gnome-control-center-48.3-r1

Description

GNOME's main interface to configure various aspects of the

Added to portage

2025-10-26

gnome-control-center - 48.4-r1
Ebuild name:

gnome-base/gnome-control-center-48.4-r1

Description

GNOME's main interface to configure various aspects of the

Added to portage

2025-10-26

gpyutils - 0.15.3
Ebuild name:

app-portage/gpyutils-0.15.3

Description

Utitilies for maintaining Python packages

Added to portage

2025-10-26

highway - 1.3.0
Ebuild name:

dev-cpp/highway-1.3.0

Description

Performance-portable, length-agnostic SIMD with runtime dispatch

Added to portage

2025-10-26

hypothesis - 6.142.4
Ebuild name:

dev-python/hypothesis-6.142.4

Description

A library for property based testing

Added to portage

2025-10-26

iminuit - 2.31.3
Ebuild name:

dev-python/iminuit-2.31.3

Description

Minuit numerical function minimization in Python

Added to portage

2025-10-26

klayout - 0.30.4
Ebuild name:

sci-electronics/klayout-0.30.4

Description

Viewer and editor for GDS and OASIS integrated circuit layouts

Added to portage

2025-10-26

kwin - 6.5.0-r1
Ebuild name:

kde-plasma/kwin-6.5.0-r1

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2025-10-26

libdbusmenu - 16.04.0-r4
Ebuild name:

dev-libs/libdbusmenu-16.04.0-r4

Description

Library to pass menu structure across DBus

Added to portage

2025-10-26

libheif - 1.20.2
Ebuild name:

media-libs/libheif-1.20.2

Description

ISO/IEC 23008-12 HEIF file format decoder and encoder

Added to portage

2025-10-26

libinput - 1.29.2
Ebuild name:

dev-libs/libinput-1.29.2

Description

Library to handle input devices in Wayland

Added to portage

2025-10-26

libjcat - 0.2.5
Ebuild name:

dev-libs/libjcat-0.2.5

Description

Library and tool for reading and writing Jcat files

Added to portage

2025-10-26

librdkafka - 2.12.1
Ebuild name:

dev-libs/librdkafka-2.12.1

Description

Apache Kafka C/C++ client library

Added to portage

2025-10-26

libxkbcommon - 1.12.2
Ebuild name:

x11-libs/libxkbcommon-1.12.2

Description

Keymap handling library for toolkits and window systems

Added to portage

2025-10-26

libxmlb - 0.3.24
Ebuild name:

dev-libs/libxmlb-0.3.24

Description

Library to help create and query binary XML blobs

Added to portage

2025-10-26

linux-firmware - 20251021
Ebuild name:

sys-kernel/linux-firmware-20251021

Description

Linux firmware files

Added to portage

2025-10-26

live - 2025.10.13
Ebuild name:

media-plugins/live-2025.10.13

Description

Libraries for standards-based RTP/RTCP/RTSP multimedia streaming

Added to portage

2025-10-26

maildrop - 3.1.8-r1
Ebuild name:

mail-filter/maildrop-3.1.8-r1

Description

Mail delivery agent/filter

Added to portage

2025-10-26

maildrop - 3.2.1
Ebuild name:

mail-filter/maildrop-3.2.1

Description

Mail delivery agent/filter

Added to portage

2025-10-26

merlin - 5.6
Ebuild name:

dev-ml/merlin-5.6

Description

Context sensitive completion for OCaml in Vim and Emacs

Added to portage

2025-10-26

minify-html - 0.18.1
Ebuild name:

dev-python/minify-html-0.18.1

Description

Extremely fast and smart HTML + JS + CSS minifier

Added to portage

2025-10-26

neko - 2.4.1
Ebuild name:

dev-lang/neko-2.4.1

Description

Neko is a high-level dynamically typed programming language

Added to portage

2025-10-26

nut - 2.8.4
Ebuild name:

sys-power/nut-2.8.4

Description

Network-UPS Tools

Added to portage

2025-10-26

openconnect - 9.12-r2
Ebuild name:

net-vpn/openconnect-9.12-r2

Description

Free client for Cisco AnyConnect SSL VPN software

Added to portage

2025-10-26

openhab-bin - 5.0.2
Ebuild name:

app-misc/openhab-bin-5.0.2

Description

An open-source automation software for your home

Added to portage

2025-10-26

openmpi - 4.1.6-r1
Ebuild name:

sys-cluster/openmpi-4.1.6-r1

Description

A high-performance message passing library (MPI)

Added to portage

2025-10-26

openmpi - 5.0.6-r1
Ebuild name:

sys-cluster/openmpi-5.0.6-r1

Description

A high-performance message passing library (MPI)

Added to portage

2025-10-26

openmpi - 5.0.8
Ebuild name:

sys-cluster/openmpi-5.0.8

Description

A high-performance message passing library (MPI)

Added to portage

2025-10-26

pikepdf - 10.0.0
Ebuild name:

dev-python/pikepdf-10.0.0

Description

Python library to work with pdf files based on qpdf

Added to portage

2025-10-26

pipewire - 1.4.7-r3
Ebuild name:

media-video/pipewire-1.4.7-r3

Description

Multimedia processing graphs

Added to portage

2025-10-26

pipewire - 1.4.8-r3
Ebuild name:

media-video/pipewire-1.4.8-r3

Description

Multimedia processing graphs

Added to portage

2025-10-26

pipewire - 1.4.9-r1
Ebuild name:

media-video/pipewire-1.4.9-r1

Description

Multimedia processing graphs

Added to portage

2025-10-26

portage - 3.0.69.3-r1
Ebuild name:

sys-apps/portage-3.0.69.3-r1

Description

The package management and distribution system for Gentoo

Added to portage

2025-10-26

psycopg - 3.2.12
Ebuild name:

dev-python/psycopg-3.2.12

Description

PostgreSQL database adapter for Python

Added to portage

2025-10-26

pwndbg - 20251020
Ebuild name:

dev-debug/pwndbg-20251020

Description

A GDB plug-in that makes debugging with GDB suck less

Added to portage

2025-10-26

python-dotenv - 1.2.1
Ebuild name:

dev-python/python-dotenv-1.2.1

Description

Manage .env files

Added to portage

2025-10-26

pytorch - 2.9.0
Ebuild name:

sci-ml/pytorch-2.9.0

Description

Tensors and Dynamic neural networks in Python

Added to portage

2025-10-26

qemu - 10.0.6
Ebuild name:

app-emulation/qemu-10.0.6

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2025-10-26

qemu - 10.1.2
Ebuild name:

app-emulation/qemu-10.1.2

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2025-10-26

rails - 8.1.0
Ebuild name:

dev-ruby/rails-8.1.0

Description

ruby on rails is a web-application and persistence framework

Added to portage

2025-10-26

railties - 8.1.0
Ebuild name:

dev-ruby/railties-8.1.0

Description

Tools for creating, working with, and running Rails applications

Added to portage

2025-10-26

re2 - 2025.08.12
Ebuild name:

dev-libs/re2-2025.08.12

Description

An efficient, principled regular expression library

Added to portage

2025-10-26

reformatter - 0.6
Ebuild name:

app-emacs/reformatter-0.6

Description

Define commands which run reformatters on the Emacs buffers

Added to portage

2025-10-26

signal-desktop-bin - 7.72.1
Ebuild name:

net-im/signal-desktop-bin-7.72.1

Description

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

Added to portage

2025-10-26

signal-desktop-bin - 7.76.0
Ebuild name:

net-im/signal-desktop-bin-7.76.0

Description

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

Added to portage

2025-10-26

socket_wrapper - 1.5.1
Ebuild name:

net-libs/socket_wrapper-1.5.1

Description

Library passing all socket communications through unix sockets

Added to portage

2025-10-26

strawberry - 1.2.14
Ebuild name:

media-sound/strawberry-1.2.14

Description

Modern music player and library organizer based on Clementine and Qt

Added to portage

2025-10-26

syslog-ng - 4.10.2
Ebuild name:

app-admin/syslog-ng-4.10.2

Description

syslog replacement with advanced filtering features

Added to portage

2025-10-26

systemd - 257.10
Ebuild name:

sys-apps/systemd-257.10

Description

System and service manager for Linux

Added to portage

2025-10-26

termcolor - 3.2.0
Ebuild name:

dev-python/termcolor-3.2.0

Description

ANSI Color formatting for output in terminal

Added to portage

2025-10-26

zfs - 2.4.0_rc3
Ebuild name:

sys-fs/zfs-2.4.0_rc3

Description

Linux kernel module and userland utilities for ZFS

Added to portage

2025-10-26

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