- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: comment command in VI editor
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:41 AM
07-23-2002 10:41 AM
comment command in VI editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:45 AM
07-23-2002 10:45 AM
Re: comment command in VI editor
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:45 AM
07-23-2002 10:45 AM
Re: comment command in VI editor
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:50 AM
07-23-2002 10:50 AM
Re: comment command in VI editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:53 AM
07-23-2002 10:53 AM
Re: comment command in VI editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:55 AM
07-23-2002 10:55 AM
Re: comment command in VI editor
This may be a long shot, but I think maybe worth mentioning. Some applications, for example, measureware, use an asterisk (*) as a comment marker in certain files. You should consult the docs concerning the application to see if this is the case.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 12:12 PM
07-23-2002 12:12 PM
Re: comment command in VI editor
since I do not get your point, I may be wrong...
If you have a ".exrc" file to be *executed* by your "VI" and you are looking for a way to have comments in there, then the character your search is the double-quote.
As an example:
$HOME/.exrc
:set autoindent showmode
":set number
:map #1 :!man vi^V^M
If you have that in your $HOM E directory and start "VI", then it will run with automatic indentation, will show wether it is insert mode or not, but will NOT show line-numbers. And funciton key "F1" will map to "man vi" (only in command mode, of course).
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 12:59 PM
07-23-2002 12:59 PM
Re: comment command in VI editor
Files are intended to be read by different utilities or applications. Each utility or application has been programmed to accept some sequence of characters as a "remark" or "comment" (meaning "ignore this line or part of the line").
Some common characters:
- C/Bourne/Korn shell uses the pound/number/hash sign #
- named.conf uses a semicolon ;
- SQl uses "rem"
- C uses /* */
In response to your reply, I guess the answer is find out what comment string the programmers used for your application.