Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - VHDL comments in Vim?

 
Thread Tools Search this Thread
Old 12-18-2003, 04:16 AM   #1
Default VHDL comments in Vim?


Hi folks,

I'm getting tired of commenting large blocks of VHDL code by hand.

Anyone know of any Vim scripts that can comment/un-comment a VHDL
block?

A cursory Google search brings up either nothing or way too much stuff
to sift through depending on my search terms ("vhdl vim comment").

-- Pete


Peter Sommerfeld
  Reply With Quote
Old 12-18-2003, 06:13 AM   #2
Allan Herriman
 
Posts: n/a
Default Re: VHDL comments in Vim?
On 17 Dec 2003 20:16:14 -0800, (Peter
Sommerfeld) wrote:

>Hi folks,
>
>I'm getting tired of commenting large blocks of VHDL code by hand.
>
>Anyone know of any Vim scripts that can comment/un-comment a VHDL
>block?
>
>A cursory Google search brings up either nothing or way too much stuff
>to sift through depending on my search terms ("vhdl vim comment").


From Hamish Moffatt:

"Commenting lines. Visual select the block required and type ,c
vmap ,c :s/^/--/
vmap ,d :s/^--//

Here's the Verilog equivalent:

"Commenting lines. Visual select the block required and type ,c
vmap ,c :s/^/\/\//
vmap ,d :s/^\/\///

Hmmm. These lines had an escape after the last character, but that
won't appear in this post. You could probably substitute '<CR>'
(without the quotes) instead.
Add the lines to the appropriate file type plugin file.

Regards,
Allan.


Allan Herriman
  Reply With Quote
Old 12-18-2003, 01:47 PM   #3
Herwig Dietl
 
Posts: n/a
Default Re: VHDL comments in Vim?
Peter Sommerfeld wrote:
> Hi folks,
>
> I'm getting tired of commenting large blocks of VHDL code by hand.
>
> Anyone know of any Vim scripts that can comment/un-comment a VHDL
> block?
>
> A cursory Google search brings up either nothing or way too much stuff
> to sift through depending on my search terms ("vhdl vim comment").
>
> -- Pete


Try Emacs if you can. It has a very comfortable VHDL electric mode.

If you write -- at the beginning of a line and then press Enter, the
next line will also be commented.


--
Dietl Herwig

I am Murphy of Borg: Anything that can be assimilated will be.



Herwig Dietl
  Reply With Quote
Old 12-18-2003, 04:39 PM   #4
PO Laprise
 
Posts: n/a
Default Re: VHDL comments in Vim?
> If you write -- at the beginning of a line and then press Enter, the
> next line will also be commented.


Not to start an emacs vs. vim war, but a properly set-up vhdl plug-in in
vim will do this as well.


--
Pierre-Olivier

-- to email me directly, remove all _N0SP4M_ from my address --



PO Laprise
  Reply With Quote
Old 12-18-2003, 07:35 PM   #5
Jos De Laender
 
Posts: n/a
Default Re: VHDL comments in Vim?
PO Laprise wrote:

>> If you write -- at the beginning of a line and then press Enter, the
>> next line will also be commented.

>
> Not to start an emacs vs. vim war, but a properly set-up vhdl plug-in in
> vim will do this as well.
>
>


Don't , emacs people won't like :-p

--
Jos De Laender


Jos De Laender
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute an external software from VHDL? And how to interface VHDL with JAVA? becool_nikks Software 0 03-06-2009 07:08 PM
Vending machine using VHDL arie General Help Related Topics 0 03-05-2009 05:45 AM
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM
ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL freitass Hardware 0 11-01-2007 03:44 PM
vhdl code amirster Hardware 0 05-10-2007 07:28 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46