Re: Vim turns 30 today!

2021-11-04 Thread 'Philip Rhoades' via vim_use

Steve,


On 2021-11-05 09:30, Steve Litt wrote:

BPJ said on Thu, 4 Nov 2021 11:39:30 +0100



And also VimWiki !



I edit most text with VimWiki in Markdown mode, which allows very easy
jumping inside sets of related files.

/bpj


Cool! Right after I finish writing my current book, I plan on creating
a Markdown to XHTML software stack **that enables arbitrary styles**.
My plan is to use QOwnNotes for user input, but it sounds like VimWiki
could also serve as user input.

The goal of my software stack is to eventually enable one to write
books in slightly enhanced Markdown, and export that to HTML, ePub or
PDF. Once source, three (or more) reader formats.



Nice!  When I was on a bit of a SF short story period, I experimented 
with the "Snowflake" method using Vim and VOom:


The "Snowflake" approach to writing a novel
(http://www.advancedfictionwriting.com/articles/snowflake-method)

In Vim use (F8 with line under cursor):

:se textwidth=999
:se wrap
:se linebreak
:se foldmethod=marker
:se spell spelllang=en_au
:Voom

:se foldmethod=manual

:.,$VoomSort

- to sort nodes

CTRL/[up|down]

- to move nodes

==

Step 1) A one-sentence summary of the story {{{1

Something like this: "A rogue physicist travels back in time to kill the 
apostle Paul." (This is the summary for my first novel, Transgression.) 
The sentence will serve you forever as a ten-second selling tool. This 
is the big picture, the analog of that big starting triangle in the 
snowflake picture.

.
.


P.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
--
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/0051114eb0979c64211cd6bef8a47f49%40pricom.com.au.


Re: Vim turns 30 today!

2021-11-04 Thread 'Philip Rhoades' via vim_use

BPJ,


On 2021-11-04 21:39, BPJ wrote:

And also VimWiki !


I edit most text with VimWiki in Markdown mode, which allows very easy
jumping inside sets of related files.



Not sure what you mean there - can you elaborate? - it sounds 
interesting!


P.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
--
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/db8add45cc3b8526218fc53d2555e36b%40pricom.com.au.


Re: Vim turns 30 today!

2021-11-04 Thread Steve Litt
BPJ said on Thu, 4 Nov 2021 11:39:30 +0100

>>
>> And also VimWiki !  
>
>
>I edit most text with VimWiki in Markdown mode, which allows very easy
>jumping inside sets of related files.
>
>/bpj

Cool! Right after I finish writing my current book, I plan on creating
a Markdown to XHTML software stack **that enables arbitrary styles**.
My plan is to use QOwnNotes for user input, but it sounds like VimWiki
could also serve as user input.

The goal of my software stack is to eventually enable one to write
books in slightly enhanced Markdown, and export that to HTML, ePub or
PDF. Once source, three (or more) reader formats.


SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20211104183039.50db04cd%40mydesk.domain.cxm.


Override colors based on the surrounding syntax region

2021-11-04 Thread Matteo Landi

Hi there,

In Common Lisp, you can put a #+NIL in front of an expression, to 
prevent the compiler from processing it; for example, the following 
defines a list of 3 elements:


(list 1 2 3)

The following defines a list of 2 elements (the `3` is swallowed):

(list 1 2 #+nil 3)

While this one...does nothing:

#+nil (list 1 2 3)

So I wanted to highlight all the `#+nil (...)` patterns as if they were 
comments, and to do so I started with something as simle as:


syntax match lispExcludedForm /\v\#\+nil \([^)]+\)/
highlight link lispExcludedForm lispComment

I knew that this was not going to work in case of nested parentheses, 
and after taking a look at the default syntax file for Lisp, I came up 
with the following:


syntax region lispExcludedFormWithNil
\ matchgroup=lispExcludedContentStart
\ start="#+nil ("
\ skip="|.\{-}|"
\ matchgroup=lispExcludedContentStop
\ end=")"
\ contains=@lispBaseListCluster
highlight link lispExcludedContentStart lispComment
highlight link lispExcludedContentStop lispComment

With this I was able to deal with nested parentheses just fine; however, 
if I had highlight commands defined for any of the elements contained 
inside the `@lispBaseListCluster` cluster, Vim would still end up 
coloring those elements while I want the whole region to look like a

`lispComment` instead -- and this is where I got stuck.

So, for the brave ones that made it this far:

- Can I define highlight commands that not only take specific elements 
  into account (i.e. `lispList`), but also their parents (i.e. 
  `lispExcludedFormWithNil > lispList`) -- this way I could link 
  `lispList` to `lispComment` only when contained inside 
  `lispExcludedFormWithNil`
- If not, should I have to create my own `@lispBaseListExcludedCluster` 
  cluster, and make sure no highlight command is defined for any of its 
  elements?
- In which case, can I programmatically iterate through all the elements 
  of a syntax cluster, and maybe create copies of it?


And last but not least: is what I am trying to achieve, even possible? 
Am I on the right track?


Thanks in advance!

--
Matteo Landi
https://matteolandi.net

--
--
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YYP56rkdqqoOX51t%40hairstyle.local.


Re: Vim turns 30 today!

2021-11-04 Thread BPJ
>
> And also VimWiki !


I edit most text with VimWiki in Markdown mode, which allows very easy
jumping inside sets of related files.

/bpj

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CADAJKhBPa_QDwncREGzs30v-ASj7da4EfRiVo93Sewrm3_HrEQ%40mail.gmail.com.


Re: Vim turns 30 today!

2021-11-04 Thread 'Philip Rhoades' via vim_use

Steve,


On 2021-11-04 20:11, Philip Rhoades wrote:

Steve,


On 2021-11-04 05:38, Steve Litt wrote:

'Philip Rhoades' via vim_use said on Wed, 03 Nov 2021 18:48:37 +1100


Yegappan,


On 2021-11-03 15:21, Yegappan Lakshmanan wrote:

https://www.reddit.com/r/vim/comments/ql30pm/vim_turns_30_today/

Happy 30th Birthday!!! Thanks Bram.



Wow!  What a great program! - I don't think I will ever know all 
there

is to know about Vim but I keep learning!


The absolute truth. I started with regular vi, and Vim was like a
breath of fresh air. I use it for everything. My blood pressure 
journal

is maintained with Vim. I use VimOutliner for all my organizational
needs. Vim is absolutely indispensable in my workflow.



Exactly!  Don't forget about VOom! - because of the pain of using the
primitive built-in bookmarks facility in browsers, sometime ago I
switched over to using a Vim text file with VOom plugin which is MUCH
nicer and much more efficient for me - here is a part of my Vim / VOom
file as an eg:

  http://pricom.com.au/2021-11-03_13-41-37_Vim-VOom_Bookmarks.txt.png

and now I am making more use of Vim Browser too!



And also VimWiki !

P.



Phil.


+1 Thanks to Bram!


+8030. That's the number of days I've enjoyably used Vim.



Out of interest, I started on Linux with the ~0.9 kernel - I think it
was Soft Landing Linux (?) - was Vim on that distro? (I think SLS 
came

on about a dozen 3.5" floppies . . ).


I was late to the party with Red Hat 5.1, but better late than never 
:-)


SteveT

Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the 
Successful

Technologist http://www.troubleshooters.com/techniques

--


--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
--
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/65698db1c1d38a8deac872dbc98e5dec%40pricom.com.au.


Re: Vim turns 30 today!

2021-11-04 Thread 'Philip Rhoades' via vim_use

Steve,


On 2021-11-04 05:38, Steve Litt wrote:

'Philip Rhoades' via vim_use said on Wed, 03 Nov 2021 18:48:37 +1100


Yegappan,


On 2021-11-03 15:21, Yegappan Lakshmanan wrote:

https://www.reddit.com/r/vim/comments/ql30pm/vim_turns_30_today/

Happy 30th Birthday!!! Thanks Bram.



Wow!  What a great program! - I don't think I will ever know all there
is to know about Vim but I keep learning!


The absolute truth. I started with regular vi, and Vim was like a
breath of fresh air. I use it for everything. My blood pressure journal
is maintained with Vim. I use VimOutliner for all my organizational
needs. Vim is absolutely indispensable in my workflow.



Exactly!  Don't forget about VOom! - because of the pain of using the 
primitive built-in bookmarks facility in browsers, sometime ago I 
switched over to using a Vim text file with VOom plugin which is MUCH 
nicer and much more efficient for me - here is a part of my Vim / VOom 
file as an eg:


  http://pricom.com.au/2021-11-03_13-41-37_Vim-VOom_Bookmarks.txt.png

and now I am making more use of Vim Browser too!

Phil.


+1 Thanks to Bram!


+8030. That's the number of days I've enjoyably used Vim.



Out of interest, I started on Linux with the ~0.9 kernel - I think it
was Soft Landing Linux (?) - was Vim on that distro? (I think SLS came
on about a dozen 3.5" floppies . . ).


I was late to the party with Red Hat 5.1, but better late than never 
:-)


SteveT

Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques

--


--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
--
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/128c1304c243e4d53a7e7af9e466fe6d%40pricom.com.au.


Re: Vim turns 30 today!

2021-11-04 Thread BPJ
I was *very* late to the party (13 years ago) but Vim has become totally
indispensable. It is the ideal UI for me with my cerebral palsy, both on
the laptop and on the tablet/phone (with Termux) My timeoutlen and all my
remappings to favor my left hand and avoid simultaneous key presses would
surely drive most people crazy, but for me they are by now ideal. The
combination Vim + Pandoc is what allows me to keep on working as a writing
professional.

A big thank you to Bram (and predecessors, and contributors) for making
this possible!

/bpj

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CADAJKhCxhE7LF6KPk-XRr_zD-5pGoNMcAFV2WgBvqG3oio%2ByKg%40mail.gmail.com.