On 2010-03-12, Jeri Raye wrote:
> Hi
>
> Is it possible to make the = command file type dependend.
> For example if the file is called my_design.vhd the filteype is then VHDL
>
> End then the = command should 'clean up' the code into the VHDL style below
The = command _is_ file type dependent. You just need to enable it
by putting this in your vimrc:
:filetype indent on
See
:help filetype
for more.
There is already an indent plugin for VHDL,
$VIMRUNTIME/indent/vhdl.vim, so once you enable it as above, you may
get the indenting you want. If it isn't quite what you want, take a
look at that plugin file and see if there is anything in there you
can tweak to your liking.
Regards,
Gary
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php