01-29-2017
The map command works only in command mode, after you have typed the colon :
If your current map command worked from text input mode you would be typing text and all of a sudden the program would quit. Bad choice, if it worked.
To debug your .exrc file try starting ex because the error message from .exrc errors is only visible for a very short time. q! quits ex.
ab works only in text-input mode when the abbreviation or keystroke map you created is typed standalone - it has to be a word all by itself - no characters except space, tab, or return.
So your ab is okay, just a learning curve issue. Do not create an abbreviation of simple text that will take you out of text mode and do a force quit.
This User Gave Thanks to jim mcnamara For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All,
I had a request to delete filed under a directory that was 35 days old . And they asked me to scedule it in CRON . I have done that .
I have use find and delete with mtime to perfrom this task .
But my script is not deleting this .cshrc,.exrc,.login,.profile,.sh_history file... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
2. UNIX for Dummies Questions & Answers
if test -z "$1"
then echo "you must give a filename or filepath"
else path=`dirname $1`
f_name =`basename $1`
if path="."
then path=`pwd`
fi
fi
cat $f_name $path >> index.txt
The only problem I am encountering with this is writing $path to index.txt
Keeps going gaga:
cat:... (1 Reply)
Discussion started by: Vintage_hegoog
1 Replies
3. UNIX for Dummies Questions & Answers
Hi
I want to customise my vi environment.So i have created a a .exrc file in my working directory and written all set commands.But when i am invoking vi ,it is not taking any effect of the vi.
Can anybody have any idea what is happening
Thanks in advance
Regds
Sas (12 Replies)
Discussion started by: SasDutta
12 Replies
4. UNIX for Advanced & Expert Users
I need to convert a password protected excel file which will be in UNIX server to a comma separated file. For this I need to open the excel file in UNIX box but the UNIX box doesn't prompt for password instead it is opened in an encrypted manner.
I could manually ftp the excel file to local... (2 Replies)
Discussion started by: Devivish
2 Replies
5. Shell Programming and Scripting
I have created some custom commands (using the map macro feature) and have those map commands in my $HOME/.exrc file (I am using bash) Here are the commands, which I have in my $HOME/.exrc
map! F /user\.base\.scope^V^Mk4ddF
map! L /user\.base\.search^V^Mk4ddL
map! V... (1 Reply)
Discussion started by: inditopgun
1 Replies
6. Shell Programming and Scripting
Hi,
I would like to ask if someone know how to test a files if exist the file is a nfs mount ufsdump archive file..
i used the test operator -f -a h almost all test operator but i failed
file1=ufs_root_image.dump
|| echo "files doesn't exist && exit 1
the false file1 is working but... (0 Replies)
Discussion started by: jao_madn
0 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a file on Sunos with permissions:
-rw-r--r--
When I 'more' it...I get the message:
*** filename: directory ***
And it is acutally a directory. How come there is no 'd' shpwing on the file permission settings?
Thanks (2 Replies)
Discussion started by: Grueben
2 Replies
8. Shell Programming and Scripting
Dear All,
this is my first post on this Forum, glad to be here.
I'm trying to fix an .ods file. Yes, I had a backup, but it's also corrupted.
When opening the document I get this EM:
read error
format error discovered in the file in sub-document content.xml at
2,337040(row,col).
So I... (3 Replies)
Discussion started by: jameslast
3 Replies
9. Shell Programming and Scripting
What is the difference between .vimrc and .exrc? I google it but didn't find the brief explanation?
Regards
ADI (2 Replies)
Discussion started by: adisky123
2 Replies
10. AIX
There's no Vim in AIX (6 and 7), but Vi is natively available.
I want to save my configuration for Vi like `set nu` to number lines in files.
I couldn't find configuration related to Vi in /etc/ or /usr/etc/ folders.
Please help me with that. (4 Replies)
Discussion started by: Chinggis6
4 Replies
PAPS(1) General Commands Manual PAPS(1)
NAME
paps - UTF-8 to PostScript converter using Pango
SYNOPSIS
paps [options] files...
DESCRIPTION
paps reads a UTF-8 encoded file and generates a PostScript language rendering of the file. The rendering is done by creating outline curves
through the pango ft2 backend.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below.
--landscape
Landscape output. Default is portrait.
--columns=cl
Number of columns output. Default is 1.
Please notice this option isn't related to the terminal length as in a "80 culums terminal".
--font=desc
Set the font description. Default is Monospace 12.
--rtl Do right to left (RTL) layout.
--paper ps
Choose paper size. Known paper sizes are legal, letter and A4. Default is A4.
Postscript points
Each postscript point equals to 1/72 of an inch. 36 points are 1/2 of an inch.
--bottom-margin=bm
Set bottom margin. Default is 36 postscript points.
--top-margin=tm
Set top margin. Default is 36 postscript points.
--left-margin=lm
Set left margin. Default is 36 postscript points.
--right-margin=rm
Set right margin. Default is 36 postscript points.
--gutter-width=gw
Set gutter width. Default is 40 postscript points.
--help Show summary of options.
--header
Draw page header for each page.
--markup
Interpret the text as pango markup.
--lpi Set the lines per inch. This determines the line spacing.
--cpi Set the characters per inch. This is an alternative method of specifying the font size.
--stretch-chars
Indicates that characters should be stretched in the y-direction to fill up their vertical space. This is similar to the texttops
behaviour.
AUTHOR
paps was written by Dov Grobgeld <dov.grobgeld@gmail.com>.
This manual page was written by Lior Kaplan <kaplan@debian.org>, for the Debian project (but may be used by others).
April 17, 2006 PAPS(1)