The Museum of HP Calculators

HP Forum Archive 15

[ Return to Index | Top of Index ]

VIM: HP-41 syntax and file type plugin
Message #1 Posted by Geir Isene on 20 Sept 2005, 2:59 p.m.

For those who use VIM to write HP-41 programs.

The syntax highlighting file:
http://www.vim.org/scripts/script.php?script_id=1360

The file type plugin:
http://www.vim.org/scripts/script.php?script_id=1361

      
Re: VIM: HP-41 syntax and file type plugin
Message #2 Posted by Howard Owen on 20 Sept 2005, 4:12 p.m.,
in response to message #1 by Geir Isene

Great! A Linux geek in love with the 41. I identify! 8)

Now, how about an emacs minor mode? 8)

            
Re: VIM: HP-41 syntax and file type plugin
Message #3 Posted by Geir Isene on 21 Sept 2005, 3:59 a.m.,
in response to message #2 by Howard Owen

emacs? Are you trying to start a flame war here?

>:-)

                  
Re: VIM: HP-41 syntax and file type plugin
Message #4 Posted by Howard Owen on 21 Sept 2005, 11:08 p.m.,
in response to message #3 by Geir Isene

Perish the thought!

No one could seriously argue that the One True Editor could be compared to something as trite as vi.



8)

Edited: 21 Sept 2005, 11:09 p.m.

                        
Re: VIM: HP-41 syntax and file type plugin
Message #5 Posted by Geir Isene on 22 Sept 2005, 3:25 a.m.,
in response to message #4 by Howard Owen

VIM is the power of simplicity compared to the bloated mammoth Escape-Meta-Alt-Control-Space ;)

                              
Re: VIM: HP-41 syntax and file type plugin
Message #6 Posted by Howard Owen on 22 Sept 2005, 10:22 a.m.,
in response to message #5 by Geir Isene

I'm going to stop now. 8)

My background is as a systems administrator. In that role I've had to become proficient at both vi and emacs. I may be somewhat unusual in that I will use one or the other editor depending on what I want to do. So, for example, when I need a quick edit of a text file or script, I use vi. (VIM, elvis, nvi, "real" vi, depending on OS.) If I'm writing a larger Perl or C application, I use xemacs for the perldb and gdb integration. So I actually don't participate in the editor flame wars.

                        
Re: VIM: HP-41 syntax and file type plugin
Message #7 Posted by Mike T. on 22 Sept 2005, 7:09 p.m.,
in response to message #4 by Howard Owen

The 'one true editor' was of course TECO...

Mike T. (Ducking quickly!)

                              
Re: VIM: HP-41 syntax and file type plugin
Message #8 Posted by Howard Owen on 22 Sept 2005, 9:08 p.m.,
in response to message #7 by Mike T.

Yes, and Gosling wrote an EMACS version in TECO. I used TECO briefly on a VAX at school. I think you are right about the One True Editor appelation being applied to it first. But EMACS is at least the spiritual heir of TECO, since it's an editor you can write as you use it. Nowadays I don't spend my entire online life in EMACS like I used to. USENET, mail, shell, c compiler. debugger, what more could you ask for? But, like I say, I was a sysadmin, so I had to use vi in order to support vi users. And I needed to know ex and ed also, in case I ended up in single user mode on a Sun 3 or BSD|Ultrix VAX. So I got into the habit of using vi for quick edits. It did start up a lot faster than EMACS. I also found the regex implementation more to my taste. But I didn't start to seriously dig into it until it wasn't really vi anymore, but one of several vi clones. Mainly, that was vim. Vim has lots of interesting stuff hidden inside. I like their syntax highlighting in Perl better than the standard emacs scheme. But highlighting the searched for text in obnoxious brown everywhere it appears on the screen is bogus. ":nohl" does away with it, but I haven't discovered how to turn it off entirely, or preferably modify it to be less intrusive.

Oh, gosh, that's a long ramble on Unix editors on an HP calculator site! But there is a calculator angle, besides Geir's worthy vim mode for the HP41. That has to do with another vi clone - elvis. This is the defult vi on Slackware, which I have installed on my old Compaq Pentium 75 box. That's where I have my HP-IL card and where I run EMU41 and EMU71 to interface my various HP-IL capable machines. Elvis has a great hex/ascii mode it turns out, that it invokes by default whenever there is 8-bit content in the file you edit. So I've been using it to study the HP-75 BASIC file format.

There, the OB calculator reference is accomplished! 8)

                                    
Re: VIM: HP-41 syntax and file type plugin
Message #9 Posted by Geir Isene on 25 Sept 2005, 3:30 p.m.,
in response to message #8 by Howard Owen

The VIM syntax and ftplugin are now a tad more worthy (version 0.2 adds support for alpha labels).

      
Re: VIM: HP-41 syntax and file type plugin
Message #10 Posted by don wallace on 20 Sept 2005, 5:40 p.m.,
in response to message #1 by Geir Isene

Hi Geir. Why not use "Forth in a can"? (check my website).

DW

            
Re: VIM: HP-41 syntax and file type plugin
Message #11 Posted by Geir Isene on 21 Sept 2005, 3:58 a.m.,
in response to message #10 by don wallace

We've had "Starting Forth" and "Thinking Forth". Now we have "Canning Forth". I'm running to the post office...

                  
Re: VIM: HP-41 syntax and file type plugin
Message #12 Posted by Howard Owen on 21 Sept 2005, 11:11 p.m.,
in response to message #11 by Geir Isene

Coming Forth,
Back and Forth
Excessive Forth (LISP required for that one.)


[ Return to Index | Top of Index ]

Go back to the main exhibit hall