sponsor Vim development Vim logo Vim Book Ad

verilog_emacsauto.vim : verilog filetype plugin to enable emacs verilog-mode autos

 script karma  Rating 148/66, Downloaded by 5065  Comments, bugs, improvements  Vim wiki

created by
Seong Kang
 
script type
ftplugin
 
description
Two emacs verilog-mode functions are mapped.
\a expands all the verilog-mode autos (similar to C-c C-a in emacs).
\d collapses all the verilog-mode autos (similar to C-c C-d in emacs).

Previously if I wanted to update verilog-mode autos, I would
   save and quit vim
   fire up emacs
   do the auto commands
   save and close emacs
   fire up vim.
And in doing so, I would lose all the edit history in vim.
With this I can just type \a and keep all the previous edit history for undos.

This is my first attempt at writing a vim plugin. Code should be simple enough for an average Verilog user to take and fix/enhance according to needs. Doing :he plugin, :he write-plugin, or :he plugin-details should reveal how simple this really is.
 
install details
Download this script and put it in your ~/.vim/ftplugin/ directory, creating the directories if necessary.

You need to get the verilog-mode.el file from the http://www.verilog.com/verilog-mode.html site.
You can follow the installation instruction there, but to use it with this script all you need to do is place the uncompressed file in your ~/elisp directory. You can also place the file in other locations as long as you change the path to the file in this script.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
verilog_emacsauto.vim 0.4 2007-08-29 6.0 Seong Kang moved setlocals outside of loaded check so it works properly when opening multiple files
verilog_emacsauto.vim 0.3 2007-04-30 6.0 Seong Kang Made emacs stderr output to show to help debugging any problems.
Made removal of temporary file standard.
verilog_emacsauto.vim 0.2 2007-04-27 6.0 Seong Kang Added folding of emacs autos. I.e. 'zo' and 'zc' can be used to open and close folds.
Do :he fold for more about foldings
verilog_emacsauto.vim 0.1 2007-04-26 6.0 Seong Kang Initial upload
ip used for rating: 3.236.112.101

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github