Author Topic: Would you like my Vim lisp syntax file  (Read 10529 times)

0 Members and 1 Guest are viewing this topic.

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Would you like my Vim lisp syntax file
« 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.).
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Would you like my Vim lisp syntax file
« Reply #1 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.
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

gskelly

  • Newt
  • Posts: 185
Re: Would you like my Vim lisp syntax file
« Reply #2 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.
Bricscad v12

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Would you like my Vim lisp syntax file
« Reply #3 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?).
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Would you like my Vim lisp syntax file
« Reply #4 on: May 11, 2010, 04:25:50 PM »
Here is the lisp.vim file
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

t-bear

  • Guest
Re: Would you like my Vim lisp syntax file
« Reply #5 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:

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Would you like my Vim lisp syntax file
« Reply #6 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.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

HasanCAD

  • Swamp Rat
  • Posts: 1421
Re: Would you like my Vim lisp syntax file
« Reply #7 on: May 12, 2010, 11:16:33 AM »
Hi Se7en

Could I ask, what is this file?

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Would you like my Vim lisp syntax file
« Reply #8 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.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

HasanCAD

  • Swamp Rat
  • Posts: 1421
Re: Would you like my Vim lisp syntax file
« Reply #9 on: May 12, 2010, 07:28:48 PM »
Sound is good

let me give a try
Thanks

GDF

  • Water Moccasin
  • Posts: 2081
Re: Would you like my Vim lisp syntax file
« Reply #10 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]
« Last Edit: May 14, 2010, 10:39:12 AM by Kerry Brown »
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Would you like my Vim lisp syntax file
« Reply #11 on: May 14, 2010, 10:57:47 AM »
I dont understand.
Quote
error: no function definition: VLA-GET-FONT
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Would you like my Vim lisp syntax file
« Reply #12 on: May 14, 2010, 11:16:06 AM »
looks good! Thanks for sharing John.
TheSwamp.org  (serving the CAD community since 2003)

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Would you like my Vim lisp syntax file
« Reply #13 on: May 14, 2010, 11:26:04 AM »
There are

Code: [Select]
vla-getfont

vla-setfont

Perhaps thats the confusion.  :wink:

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Would you like my Vim lisp syntax file
« Reply #14 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.  ?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Would you like my Vim lisp syntax file
« Reply #15 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.

GDF

  • Water Moccasin
  • Posts: 2081
Re: Would you like my Vim lisp syntax file
« Reply #16 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
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Would you like my Vim lisp syntax file
« Reply #17 on: May 14, 2010, 03:18:07 PM »
Ah, good. Glad i was able to help.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

aaa120

  • Guest
Re: Would you like my Vim lisp syntax file
« Reply #18 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

aaa120

  • Guest
Re: Would you like my Vim lisp syntax file
« Reply #19 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

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Would you like my Vim lisp syntax file
« Reply #20 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.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

aaa120

  • Guest
Re: Would you like my Vim lisp syntax file
« Reply #21 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?