Sponsored Content
Full Discussion: Vi map command
Operating Systems HP-UX Vi map command Post 302313428 by sumansatpathy on Tuesday 5th of May 2009 03:15:03 PM
Old 05-05-2009
Vi map command

Hi, I'm trying to map a vi editor key to some commands. I'm using HP-UX 11.11. the command looks like

map ~cmnt o * Suman Satpathy : <Esc> :r! date "\%d\%m\%y" <Esc> j$J

basically my idea is to map a shortcut for my commentlines.

but when I run the shortcut it inserts the line as below
* Suman Satpathy : <Esc> :r! date "\%d\%m\%y" <Esc> j$J

I have tried ^[ in place of <Esc> no effect Smilie..

Anybody have any idea why this is not working?? I have checked there are no map keys for esc..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix map?

There is a "Map"? of Unix and all its varients somewhere on the net. I used to have the link , but can't find it now. Anyone out there have a clue???? A good magician never reveals his secret; the unbelievable trick becomes simple and obvious once it is explained. So too with... (3 Replies)
Discussion started by: Bodhi
3 Replies

2. UNIX for Dummies Questions & Answers

Could not reverse map address

Hello, I am tring to connect with putty for pocket pc to my server with ssh ver2 but i am rejecting with the password. on the logs /var/log/secure i get the error: Could not reverse map address I am tring to connect from lan behind a router to a lan behind a router. I have set the option ... (2 Replies)
Discussion started by: nadav
2 Replies

3. UNIX for Dummies Questions & Answers

Unix command in mind map

I found this link that might be useful for a newbie to remember unix commands. It use mind map technique and summarize everything within one page. http://mind-map-you.blogspot.com/2006/12/unix-command-in-mind-map.html (0 Replies)
Discussion started by: bani100
0 Replies

4. UNIX for Advanced & Expert Users

map comparsion

Hi all I have to compare maps/files on two seperate boxes and the output must be as following: 1)list the maps/file on box1 2)list the maps/file on box2 3)List maps in both the environments a) which are same b)which are different pls any ideas are appreciated thnks (2 Replies)
Discussion started by: bkan77
2 Replies

5. Programming

STL map

Hi there, I am using the STL map and I print the map using: map <string, float> ngram_token_index ; map <string, float>::iterator map_iter ; //read the map ... // print the map for ( map_iter = ngram_token_index.begin() ; map_iter != ngram_token_index.end() ; map_iter++ ) cout << ... (2 Replies)
Discussion started by: superuser84
2 Replies

6. Shell Programming and Scripting

Grep and map in perl

Hi guys, I'm trying to learn grep and map and having a little problem. Let's say I have a file which contains: Apple: abcdcabdadddbac I want to replace any combinations of three of abcd, thus when I do this: print grep {s/{3}/X/g} <F>; # will do the subtitution fine, output XXXX ... (1 Reply)
Discussion started by: new bie
1 Replies

7. UNIX for Advanced & Expert Users

How to map on a Windows disk ?

Hi, I have installed ubuntu. -how to see the disk on Windows machine ? I should copy some files from a Windows machien which is on the same network to my ubuntu machine. Thank you. (4 Replies)
Discussion started by: big123456
4 Replies

8. Programming

Map Question C++

Hello All, I am having an issue of putting a Boolean value in the maps as the 3rd parameter. Something like the following : int value; std::map<String str, int x, bool bl> where bool returns false if x>value else true. All I see in the map examples is that I can add the... (2 Replies)
Discussion started by: mind@work
2 Replies

9. AIX

How can I map hdisk# to rhdisk#?

Some storage/disks have been added to an existing AIX 6.1 server. The admin sent me the list of hdisk#'s for the new disks, but I need the corresponding rhdisk# for the same hdisk. (I know from past experience that the rhdisk that maps to an hdisk is not always the same number. For instance,... (5 Replies)
Discussion started by: sbrower
5 Replies
ypmatch(1)						      General Commands Manual							ypmatch(1)

NAME
ypmatch - print the values of one or more keys from a NIS map SYNOPSYS
ypmatch [ -kt ] [ -d domain ] key ... mapname ypmatch -x DESCRIPTION
ypmatch prints the values of one or more keys from the NIS database specified by mapname, which may be a map name or a map nickname. OPTIONS
-d domain Specify a domain other than the default domain as returned by domainname(1). -k Display map keys. This option is useful with maps in which the values are null or the key is not part of the value. -t This option inhibits map nickname translation. -x Display the map nickname translation table. FILES
/var/yp/nicknames map nickname translation table. SEE ALSO
domainname(8), nicknames(5), ypbind(8), ypcat(1), yppoll(8), ypserv(8), yset(8), ypwhich(1) AUTHOR
ypmatch is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@suse.de>. YP Tools 2.7 May 1999 ypmatch(1)
All times are GMT -4. The time now is 07:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy