TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: JohnK on May 11, 2010, 12:32:05 PM

Title: Would you like my Vim lisp syntax file
Post by: JohnK on May 11, 2010, 12:32:05 PM
Would anyone be interested in my Lisp Syntax file? Ive tweaked the default Lisp syntax file to include all the VL and AL functions i could find, ive also done some fixing to the ATOMS, COMMENTS, and LISTS sections of the file.

I know there are not that many Vim users amongst us (Mark and I are most likely the only ones) but i would imagine that those of you using other text editors besides Vim could use the 1800 or so function names i gathered up and added to the file.

If there is interest I'll post it.

P.S. Please don't just say "yeah post it". Please check your syntax file, if you don't have ~1800 functions or so then i will post it otherwise i wont waste our time (by not spending the time removing my custom stuff and or re-formatting or etc.).
Title: Re: Would you like my Vim lisp syntax file
Post by: Krushert on May 11, 2010, 12:42:24 PM
Ahhhh I don't want your stinkin Vim lisp syntax file.  So I really wish you WOULD NOT post it.  :lol: :evil:

I don't know why I felt like saying that but I felt like I had to say it, so I said it. But seriously I do not want that file.  Really I do not want it.
Title: Re: Would you like my Vim lisp syntax file
Post by: gskelly on May 11, 2010, 01:14:06 PM
Sure, if it is not an effort... I use vim occasionally but not enough to be worth much effort on your part cleaning up.
Title: Re: Would you like my Vim lisp syntax file
Post by: JohnK on May 11, 2010, 01:16:29 PM
There wouldnt be much effort at all if you are using Vim (All i would have to do is remove one section that i added for a project or two - 30seconds?).
Title: Re: Would you like my Vim lisp syntax file
Post by: JohnK on May 11, 2010, 04:25:50 PM
Here is the lisp.vim file
Title: Re: Would you like my Vim lisp syntax file
Post by: t-bear on May 11, 2010, 04:48:00 PM
Dag-nab-it Se7en, you were asked not to post that stuff!  Now folks are gonna haffta USE it!  Trouble-maker!  S**t-stirrer!  Sheeeesh! :pissed: :realmad:
Title: Re: Would you like my Vim lisp syntax file
Post by: JohnK on May 11, 2010, 10:52:27 PM
*gack*  ...bear, Ive known you for a LONG time (before thesamp.org. wow, even before bigswamp.org.)  ...Is it bad that now i kinda cant wait for you to start fishing more?


:D
Gonna miss ya.
Title: Re: Would you like my Vim lisp syntax file
Post by: HasanCAD on May 12, 2010, 11:16:33 AM
Hi Se7en

Could I ask, what is this file?
Title: Re: Would you like my Vim lisp syntax file
Post by: JohnK on May 12, 2010, 12:45:49 PM
Hi Se7en

Could I ask, what is this file?

Do you know how in the VLIDE a built in command function name turns yellow? Basiclly, this file is for that (and other things) in my text editor Vim.

Just so that you can have something to see for yourself, here is a "screenshot" of my editor. This is how I see a lisp file (the blue line is a folded up region of code--a whole sub function folded up so its out of my way-).  

I program (in Lisp and C++) in my editor. When I work on a lisp project and I have to debug or test code I can open the VLIDE to a completed ready to test lisp file.
Title: Re: Would you like my Vim lisp syntax file
Post by: HasanCAD on May 12, 2010, 07:28:48 PM
Sound is good

let me give a try
Thanks
Title: Re: Would you like my Vim lisp syntax file
Post by: GDF on May 14, 2010, 10:17:48 AM
Thank you for the list of vla- functions. I have already made use of it.
There is no function vla-get-font and vla-put-font that I read from another forum.
Code: [Select]
(defun c:test ();does not work
  (vl-load-com)
  (vlax-for objTextStyle (vla-get-textstyles
                          (vla-get-activedocument
                           (vlax-get-acad-object)))
   (if (= (vla-get-font objTextStyle) "ARIAL.TTF")
    (vla-put-font objTextStyle "MULTPLNL.shx")
   )
  )
)


(defun c:test ()
  (vl-load-com)
  (vlax-for objTextStyle (vla-get-textstyles
                        (vla-get-activedocument
                         (vlax-get-acad-object)))
   (if (= (vla-get-fontfile objTextStyle) "ARIAL.TTF")
    (vla-put-fontfile objTextStyle "MULTPLNL.shx")
   )
  )
)

[edit.kdub:codeTagsAdded]
Title: Re: Would you like my Vim lisp syntax file
Post by: JohnK on May 14, 2010, 10:57:47 AM
I dont understand.
Quote
error: no function definition: VLA-GET-FONT
Title: Re: Would you like my Vim lisp syntax file
Post by: Mark on May 14, 2010, 11:16:06 AM
looks good! Thanks for sharing John.
Title: Re: Would you like my Vim lisp syntax file
Post by: Lee Mac on May 14, 2010, 11:26:04 AM
There are

Code: [Select]
vla-getfont

vla-setfont

Perhaps thats the confusion.  :wink:
Title: Re: Would you like my Vim lisp syntax file
Post by: JohnK on May 14, 2010, 11:32:46 AM
There are
Code: [Select]
vla-getfont
vla-setfont
Perhaps thats the confusion.  :wink:

Those are in the syntax file.  ?
Title: Re: Would you like my Vim lisp syntax file
Post by: Lee Mac on May 14, 2010, 11:34:34 AM
There are
Code: [Select]
vla-getfont
vla-setfont
Perhaps thats the confusion.  :wink:

Those are in the syntax file.  ?


I don't doubt they are - but perhaps GDF was getting confused between those and the non-existent vla-get-font etc.
Title: Re: Would you like my Vim lisp syntax file
Post by: GDF on May 14, 2010, 02:34:27 PM
"vla-get-font" should be "vla-get-fontfile"
"vla-set-font" should be "vla-set-fontfile"

I learned of this fron se7en's list of vla- functions
Title: Re: Would you like my Vim lisp syntax file
Post by: JohnK on May 14, 2010, 03:18:07 PM
Ah, good. Glad i was able to help.
Title: Re: Would you like my Vim lisp syntax file
Post by: aaa120 on March 27, 2011, 08:22:20 PM
I found this page with the help of Google ,
I study the visual lisp language of AutoCAD recently because I think it will help me if I master
the language of visual lisp ,but I also found that I do not have a good syntax file of visual lisp
for vim ,so I come here with the help of Google .
I registered this forum for several times (my register request was
take as spam for several times )and I success  :-D

maybe you can not understand my words very well ,because my native language is not
English
Title: Re: Would you like my Vim lisp syntax file
Post by: aaa120 on March 27, 2011, 08:25:36 PM
thank to Se7en's syntax file ,he does a good job ,
I think he should upload his file to www.vim.org
then more persons will get the help
Title: Re: Would you like my Vim lisp syntax file
Post by: JohnK on March 28, 2011, 09:55:35 AM
you are very welcome aaa120. I am glad you can use the sytax file. I have several other Vim rerlated items posted here you may also like.  I will try to upload my stuff to vim.org soon.
Title: Re: Would you like my Vim lisp syntax file
Post by: aaa120 on April 10, 2014, 12:49:27 AM
you are very welcome aaa120. I am glad you can use the sytax file. I have several other Vim rerlated items posted here you may also like.  I will try to upload my stuff to vim.org soon.
I have several other Vim rerlated items posted here you may also like
...............................
I am back again ,three years later .
where can I download all your  Vim rerlated items?