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:

61507

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

4. Startup File


Having explored vi commands somewhat, we are now ready to create
a default editing environment through the use of .exrc,
the configuration file which resides in user's home directory.


.exrc typically contains at least three types of entries:



  1. set commands to create preferred editing environment
  2. map commands to assign functions or macros to keys
  3. ab commands to either map abbreviations or automatically
    correct common spelling errors

When mapping escape sequences of some keys, we may need to
quote them, that is, to insert them literally. This can
be accomplished in vi by issuing a text input command and pressing
Ctrl-V before the key we wish to quote is pressed.


Now let's look at a sample .exrc:



set autoindent
set wrapmargin=8
set ignorecase
map #4 !}fmt^M
ab teh the
ab cutsomer customer

Lines 1 and 2 set autoindent mode on and turn on wordwrap at column
72. Line 3 specifies that all searches are to be case insensitive.
Line 4 maps function key 4 to reformat from the cursor position
to the end of the paragraph
. Finally, lines 5 and 6 map some
common misspellings to the correct spelling. Note that ^M
on lines 4 and 5 are created by pressing Ctrl-V and then
hitting Ctrl-M.


With a little creativity you can make vi look as personal as you wish.


NOTE: After creating .exrc make sure that EXINIT
environment variable is not set as it would overwrite whatever
settings you entered into .exrc. You can verify whether
the EXINIT variable is set using this command from the UNIX command
prompt:



$ set | grep EXINIT

If you see no output, you're fine.


Make sure that .exrc contains no blank lines - they
are not allowed.



/* 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 (17 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
2022-07-07
acr38u - 1.7.11-r4
Ebuild name:

app-crypt/acr38u-1.7.11-r4

Description

Non CCID driver for ACR38 AC1038-based Smart Card Reader

Added to portage

2022-07-07

gzdoom - 4.8.2
Ebuild name:

games-fps/gzdoom-4.8.2

Description

A modder-friendly OpenGL source port based on the DOOM engine

Added to portage

2022-07-07

htmlize - 1.56
Ebuild name:

app-emacs/htmlize-1.56

Description

HTML-ize font-lock buffers in Emacs

Added to portage

2022-07-07

makemkv - 1.17.0
Ebuild name:

media-video/makemkv-1.17.0

Description

Tool for ripping and streaming Blu-ray, HD-DVD and DVD discs

Added to portage

2022-07-07

prusaslicer - 2.5.0_alpha2-r1
Ebuild name:

media-gfx/prusaslicer-2.5.0_alpha2-r1

Description

A mesh slicer to generate G-code for fused-filament-fabricati

Added to portage

2022-07-07

prusaslicer - 2.6.0_pre20220601-r2
Ebuild name:

media-gfx/prusaslicer-2.6.0_pre20220601-r2

Description

A mesh slicer to generate G-code for fused-filament-fabr

Added to portage

2022-07-07

prusaslicer - 2.6.0_pre20220620-r2
Ebuild name:

media-gfx/prusaslicer-2.6.0_pre20220620-r2

Description

A mesh slicer to generate G-code for fused-filament-fabr

Added to portage

2022-07-07

testfixtures - 7.0.0
Ebuild name:

dev-python/testfixtures-7.0.0

Description

A collection of helpers and mock objects for unit tests and doc tests

Added to portage

2022-07-07

vivaldi - 5.3.2679.68
Ebuild name:

www-client/vivaldi-5.3.2679.68

Description

A browser for our friends

Added to portage

2022-07-07

yq - 3.0.2
Ebuild name:

app-misc/yq-3.0.2

Description

Command-line YAML processor - jq wrapper for YAML documents

Added to portage

2022-07-07

2022-07-06
apt-cacher-ng - 3.7.4_p1-r1
Ebuild name:

net-misc/apt-cacher-ng-3.7.4_p1-r1

Description

Yet another caching HTTP proxy for Debian/Ubuntu software packag

Added to portage

2022-07-06

awscli - 1.25.23
Ebuild name:

app-admin/awscli-1.25.23

Description

Universal Command Line Environment for AWS

Added to portage

2022-07-06

boto3 - 1.24.23
Ebuild name:

dev-python/boto3-1.24.23

Description

The AWS SDK for Python

Added to portage

2022-07-06

botocore - 1.27.23
Ebuild name:

dev-python/botocore-1.27.23

Description

Low-level, data-driven core of boto 3

Added to portage

2022-07-06

broot - 1.14.0
Ebuild name:

app-misc/broot-1.14.0

Description

A new way to see and navigate directory trees

Added to portage

2022-07-06

catkin_pkg - 0.5.2
Ebuild name:

dev-python/catkin_pkg-0.5.2

Description

Standalone Python library for the catkin package system

Added to portage

2022-07-06

cmus - 2.10.0
Ebuild name:

media-sound/cmus-2.10.0

Description

Ncurses based music player with plugin support for many formats

Added to portage

2022-07-06

difftastic - 0.30.0
Ebuild name:

dev-util/difftastic-0.30.0

Description

A structural diff that understands syntax.

Added to portage

2022-07-06

dlib - 19.24
Ebuild name:

sci-libs/dlib-19.24

Description

Numerical and networking C++ library

Added to portage

2022-07-06

dogpile-cache - 1.1.7
Ebuild name:

dev-python/dogpile-cache-1.1.7

Description

A locking API for expiring values while a single thread generates a

Added to portage

2022-07-06

dropbox - 152.4.4880
Ebuild name:

net-misc/dropbox-152.4.4880

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2022-07-06

dwarf-fortress - 0.47.05
Ebuild name:

games-roguelike/dwarf-fortress-0.47.05

Description

Single-player fantasy game

Added to portage

2022-07-06

eisl - 2.50
Ebuild name:

dev-lang/eisl-2.50

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2022-07-06

httpd - 1.1
Ebuild name:

app-emacs/httpd-1.1

Description

A HTTP server embedded in the Emacs

Added to portage

2022-07-06

hydra - 0.15.0
Ebuild name:

app-emacs/hydra-0.15.0

Description

Make Emacs bindings that stick around

Added to portage

2022-07-06

hypothesis - 6.49.1
Ebuild name:

dev-python/hypothesis-6.49.1

Description

A library for property based testing

Added to portage

2022-07-06

jc - 1.20.2
Ebuild name:

dev-python/jc-1.20.2

Description

Converts the output of popular command-line tools and file-types to JSON

Added to portage

2022-07-06

jupyter_server - 1.18.1
Ebuild name:

dev-python/jupyter_server-1.18.1

Description

Core services, APIs, and REST endpoints to Jupyter web application

Added to portage

2022-07-06

lhapdf - 6.5.1
Ebuild name:

sci-physics/lhapdf-6.5.1

Description

Les Houches Parton Density Function unified library

Added to portage

2022-07-06

libfmt - 9.0.0
Ebuild name:

dev-libs/libfmt-9.0.0

Description

Small, safe and fast formatting library

Added to portage

2022-07-06

minitest - 5.16.2
Ebuild name:

dev-ruby/minitest-5.16.2

Description

minitest/unit is a small and fast replacement for ruby's huge and slow tes

Added to portage

2022-07-06

mmtf-python - 1.1.3
Ebuild name:

dev-python/mmtf-python-1.1.3

Description

The python implementation of the MMTF API, decoder and encoder

Added to portage

2022-07-06

msgpack - 1.5.3
Ebuild name:

dev-ruby/msgpack-1.5.3

Description

Binary-based efficient data interchange format for ruby binding

Added to portage

2022-07-06

octokit - 4.25.1
Ebuild name:

dev-ruby/octokit-4.25.1

Description

Ruby toolkit for the Github API

Added to portage

2022-07-06

openssl - 1.1.1q
Ebuild name:

dev-libs/openssl-1.1.1q

Description

Full-strength general purpose cryptography library (including SSL and TLS)

Added to portage

2022-07-06

openssl - 3.0.5
Ebuild name:

dev-libs/openssl-3.0.5

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2022-07-06

paint - 2.3.0
Ebuild name:

dev-ruby/paint-2.3.0

Description

Terminal painter

Added to portage

2022-07-06

pikepdf - 5.3.1
Ebuild name:

dev-python/pikepdf-5.3.1

Description

Python library to work with pdf files based on qpdf

Added to portage

2022-07-06

pip-run - 8.8.1
Ebuild name:

dev-python/pip-run-8.8.1

Description

Install packages and run Python with them

Added to portage

2022-07-06

pipewire - 0.3.53_p20220704-r1
Ebuild name:

media-video/pipewire-0.3.53_p20220704-r1

Description

Multimedia processing graphs

Added to portage

2022-07-06

pipewire - 0.3.53_p20220705-r1
Ebuild name:

media-video/pipewire-0.3.53_p20220705-r1

Description

Multimedia processing graphs

Added to portage

2022-07-06

postgresql - 15_beta2
Ebuild name:

dev-db/postgresql-15_beta2

Description

PostgreSQL RDBMS

Added to portage

2022-07-06

propka - 3.4.0
Ebuild name:

sci-chemistry/propka-3.4.0

Description

pKa-value prediction of ionizable groups in protein and protein-ligand c

Added to portage

2022-07-06

pytest-mock - 3.8.2
Ebuild name:

dev-python/pytest-mock-3.8.2

Description

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

Added to portage

2022-07-06

python - 3.11.0_beta3_p1
Ebuild name:

dev-lang/python-3.11.0_beta3_p1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2022-07-06

pyzotero - 1.5.5
Ebuild name:

dev-python/pyzotero-1.5.5

Description

A Python client for the Zotero API

Added to portage

2022-07-06

stagit - 1.1
Ebuild name:

dev-vcs/stagit-1.1

Description

Generates static HTML pages for a Git repository

Added to portage

2022-07-06

syzygy - 1.0.2
Ebuild name:

games-puzzle/syzygy-1.0.2

Description

Narrative meta-puzzle game

Added to portage

2022-07-06

uglifyjs - 3.16.2
Ebuild name:

dev-util/uglifyjs-3.16.2

Description

JavaScript parser, minifier, compressor and beautifier toolkit

Added to portage

2022-07-06

virtualbox - 6.1.34-r3
Ebuild name:

app-emulation/virtualbox-6.1.34-r3

Description

Family of powerful x86 virtualization products for enterprise an

Added to portage

2022-07-06

virtualbox - 6.1.34-r5
Ebuild name:

app-emulation/virtualbox-6.1.34-r5

Description

Family of powerful x86 virtualization products for enterprise an

Added to portage

2022-07-06

virtualbox-guest-additions - 6.1.34-r2
Ebuild name:

app-emulation/virtualbox-guest-additions-6.1.34-r2

Description

VirtualBox kernel modules and user-space tools f

Added to portage

2022-07-06

vivaldi-snapshot - 5.4.2722.3
Ebuild name:

www-client/vivaldi-snapshot-5.4.2722.3

Description

A browser for our friends

Added to portage

2022-07-06

zabbix - 6.2.0
Ebuild name:

net-analyzer/zabbix-6.2.0

Description

ZABBIX is software for monitoring of your applications, network and serve

Added to portage

2022-07-06

zotero-bin - 6.0.9
Ebuild name:

app-text/zotero-bin-6.0.9

Description

Helps you collect, organize, cite, and share your research sources

Added to portage

2022-07-06

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