Re: Blink shell touch actions to custom mouse actions

2022-02-24 Thread Julius Hamilton
Awesome, thanks very much.

What is the formal name of those character combinations?

Then I will see about mapping them to mouse events I suppose?

Or do the mouse events get mapped to Vim navigation commands or something?

Thanks very much,
Julius



On Wed 23. Feb 2022 at 19:34, Christian Brabandt  wrote:

>
> On Mi, 23 Feb 2022, Julius Hamilton wrote:
>
> > Hey,
> >
> > I’m using iOS SSH apps (Blink shell; Termius) which support various
> touch gestures; I believe they get mapped to certain mouse actions in the
> terminal.
> >
> > I’d like to customise the effect of these touch gestures in Vim.
> >
> > I am pretty sure I can’t change what mouse action a touch gesture
> corresponds to but I hopefully can change what Vim does on a certain mouse
> event.
> >
> > So for example, I would like accelerated scrolling, maybe when you hold
> and drag down, the speed of scrolling slowly speeds up. Or, if you press
> two fingers and swipe down, that’s faster than just one finger.
> >
> > Can anyone recommend how I might remap mouse actions to accelerated
> scrolling in Vim?
>
> I guess it depends on how your terminal receives those gestures. I am
> not sure, if a terminal can receive special mouse gestures like touch
> scroll but it really depends.
>
> Try in your terminal to go to insert mode, type Ctrl-V and then use one
> single gesture and see what vim receives.
>
> Best,
> Christian
> --
> Zwei Schafe auf der Wiese. Sagt das eine: "Määähhh!", darauf
> das andere: "Mäh selbst!"
>
> --
> --
> 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/20220223183354.GF346149%40256bit.org
> .
>

-- 
-- 
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/CAEsMKX1MrhwWx82%2BuBw-eNycD%3DiSt2Oe8NUBjLhtePwQkjCkQw%40mail.gmail.com.


Blink shell touch actions to custom mouse actions

2022-02-23 Thread Julius Hamilton
Hey,

I’m using iOS SSH apps (Blink shell; Termius) which support various touch
gestures; I believe they get mapped to certain mouse actions in the
terminal.

I’d like to customise the effect of these touch gestures in Vim.

I am pretty sure I can’t change what mouse action a touch gesture
corresponds to but I hopefully can change what Vim does on a certain mouse
event.

So for example, I would like accelerated scrolling, maybe when you hold and
drag down, the speed of scrolling slowly speeds up. Or, if you press two
fingers and swipe down, that’s faster than just one finger.

Can anyone recommend how I might remap mouse actions to accelerated
scrolling in Vim?

Thank you,
Julius

-- 
-- 
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/CAEsMKX2ssFXpYjc1z7JF5Mr0KHJJ12%2BAN5%3DsvwXKdW2nJ4jdAg%40mail.gmail.com.


Re: Sort lines, then tag, then unsort

2021-10-04 Thread Julius Hamilton
On Sun 19. Sep 2021 at 16:29, 'Paul' via vim_use 
wrote:

>
>
> Will marks suffice?


Thanks for your message.

Not sure, can you apply the same mark, i.e. “h”, to multiple lines? I don’t
think so but I’m not sure.

>

-- 
-- 
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/CAEsMKX2%2B20kY6SY3r5zHcTzq969ih9WFtQGxpwH2yfB%3D_EvObQ%40mail.gmail.com.


Manual join function and encoding

2021-10-04 Thread Julius Hamilton
Hey,


I’d like to write some scripts which will act like a join function but
manually.


If we open some file, let’s say in the computer it’s in some binary code
where each character is a string of digits. Then I assume these strings get
mapped to characters via the encoding; the most standard is UTF-8. I
believe in UTF-8 the end of a line would just be a newline character “\n”
rather than there being an end of line character “$” and then a newline
character “\n”, is this correct? Does Vim insert the end of line character
“$”? I tried to perform a substitution function on the EOL character “$”
but I found nothing was substituted. For this reason I am thinking this is
not a character in the actual file. Is this true?


Best,

Julius

-- 
-- 
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/CAEsMKX3s8_D%3D4vrC%3DLFKRgQKVqSTJ2PccAcWfHJt3dUw-aPsqg%40mail.gmail.com.


Sort lines, then tag, then unsort

2021-09-14 Thread Julius Hamilton
I would like to sort lines in a text document and then tag them, and then
revert the file to its original order.

First of all, is there a way to tag a line, so that lines with a given tag
can be quickly referred to, but the tag is not in the actual text?

Secondly, I noticed with my sort command ":sort \^[A-Z].*[^\.]$\ r" (sort
all lines beginning with a capital letter and not ending in a period) it
sends the matches in alphabetical order to the bottom of the file. Is there
a way to specify a second-order sort by which all the matches are
sub-sorted, rather than the default alphabetical? And, is there a way to
send them to the top of the document rather than the bottom?

Thanks very much,
Julius

-- 
-- 
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/CAEsMKX2btY6zAjVE0PRcJHhtoC58MK1xA5LMAwLgHgfThgeX-Q%40mail.gmail.com.


Vim functions documentation

2021-09-10 Thread Julius Hamilton
Hey,

I would like to write a command or function in Vim which will return True
or False based on some properties of the text in the file. I assume this
will be done with the Vim Script language (
http://vimdoc.sourceforge.net/htmldoc/usr_41.html).

I thought that sections of the User Manual usually corresponded to a more
definitive, in-depth chapter in the Reference Manual, but I see no
discussion of a corresponding reference manual section here.

Is there a reference manual chapter on functions and vim script?

Thank you,
Julius

-- 
-- 
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/CAEsMKX0L9DyKihwZABhMSUeNXQ_OVfVdnwmD5tgLUAAoyHK2SQ%40mail.gmail.com.


Find patterns in Gvim

2021-09-09 Thread Julius Hamilton
Hey,

>From trying it myself, it seems that the "find" menu option in Gvim does
not allow entering patterns or regular expressions, such as a period to
represent any character, or "\n" to represent a newline, but only literal,
explicit text matching.

I was curious why this is and if there is any GUI / menu way to search for
regular expression patterns or if you must use the Vim text-based command
"/" for this.

Thank you very much,
Julius

-- 
-- 
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/CAEsMKX3j8Gu%2BNKyv_Ma5HOzmDrXLcBchB%2BmpfdD4cuUmFP89Hw%40mail.gmail.com.


Temporarily edit a vim document without actually changing file

2021-09-09 Thread Julius Hamilton
Hey,

I was curious, is there any mode or plug-in in Vim where you could preview
the result of a command, for example a global search and replace function,
but by default the edit has not actually been written to file, and that
requires a specific command to actually save the previewed changed?

Thank you,
Julius

-- 
-- 
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/CAEsMKX1%2B3L1Zy0nTuwz%2BgjK%3DU0eQHMfz0hyTDA60ZYG10u1iuQ%40mail.gmail.com.


Re: Vim mindmap functionality

2021-07-20 Thread Julius Hamilton
Hey everyone,
Thanks very much for your responses.
Coming back to this, I've found I still haven't found the solution I am 
looking for, as Google links to something else than I was hoping for.

Basically, I am not looking for a plug-in to visualize a graph, based on a 
certain indentation structure of a plaintext document being edited in Vim. 
The plaintext format is fine, for my purposes.

Rather, I am trying to still make that plaintext that I am editing in Vim 
have certain properties that make it more fundamentally like a mindmap. 
Most importantly, text should be bounded within certain regions. In effect, 
text should be contained within text boxes. You cannot write anywhere you 
want in the file. You can only enter text into text boxes, or whatever 
Vim's representation of a text box, to the same effect, is.

I would like to believe this is possible since Vim is so customizable. And 
I want to do it in Vim since increasingly everything I'm doing is in Vim.

So, is there any way to create a text box in Vim? I could just draw boxes 
with lines, but the deeper point is having Vim recognize that a box is an 
object or region where text is permitted, and blocking the entry of text 
outside of that object.

I'd really appreciate any help on this.

Thanks very much,
Julius


On Monday, July 5, 2021 at 9:43:31 PM UTC cfcol...@gmail.com wrote:

> On Mon, Jul 5, 2021, 2:13 PM meine  wrote:
>
>> On Mon, Jul 05, 2021 at 07:59:58PM +0200, Julius Hamilton wrote:
>> > Hello,
>> >
>> > I wish to enable mindmapping functionality inside Vim by somehow 
>> treating
>> > regions of text as programmatic objects.
>>
>> This one seems to be more aimed at programming:
>>
>> https://github.com/severin-lemaignan/vim-minimap
>>
>> //meine
>>
>> -- 
>> -- 
>> 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+u...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/vim_use/YON19PBn48xCw5EA%40trackstand.
>>
>
>
> Some years back on this list, I saw this, which might be close to your 
> goal:
>  - https://youtu.be/_c_het11TBo
>  - https://github.com/q335r49/microviche
>
>
> 503.997.1907 <(503)%20997-1907> | idontevenownatelevision.com
>
>> 503.997.1907 <(503)%20997-1907> | idontevenownatelevision.com
>

-- 
-- 
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/201c1831-ebe6-4b8d-ace2-4e626bff2039n%40googlegroups.com.


Re: Pre-fold output of :r! command

2021-07-06 Thread Julius Hamilton
Thanks very much. That works perfectly.

One tiny tweak is I would just like to be able to collapse and open a fold
back and forth with ease. If I unfold that fold, I think the fold
disappears. I then have to respecify the content to be folded. Or if not, I
still have to put my cursor on the top line of the fold, to re-fold it.

I would prefer to just have a go to button to fold and unfold what was
printed, no matter where in the document I am.

What would be the most convenient way to refold a large section of text
after having unfolded it?

Thanks very much,
Julius

On Mon, Jul 5, 2021, 13:55 Christian Brabandt  wrote:

>
> On So, 04 Jul 2021, Julius Hamilton wrote:
>
> > I would like to print the output of a shell command - a webpage dump -
> into a
> > Vim buffer, and have those lines immediately folded, rather than a
> second step
> > of selecting and folding them.
> >
> > The command would look something like:
> >
> > :r! w3m -dump url.com FOLD
> >
> > How would this be possible?
>
> Perhaps like this:
>
> :exe ":r! w3m -dump url" |'[,']fold
>
> Unfortunately the `|` is seen as an argument to the :r! command, that's
> why we have to wrap it in an `:exe "..." call and can separate the next
> ex command using |, which in this case is the :fold command for the
> region given by the markers '[,'], which describes the region of the
> previously inserted text.
>
> You can probably wrap this into a custom command like this:
>
> :com -nargs=1 Dump :exe ":r! -dump "|'[,']fold
>
> (untested) and then use
>
> :Dump 
>
>
> >
> > I would like to navigate my folds in an easier way than navigating to
> the blue
> > line that appears, and unfolding them.
>
> The little blue line is hard-coded I believe. But you can disable it
> using :set foldcolumn=0
>
> > Is it possible to get some kind of table
> > of contents sidebar where you can select a fold and open or close it? In
> my
> > current configuration, I don't see an indicator that a fold is on a
> certain
> > line, if that fold is currently unfolded.
>
> Not sure I understand what you want here.
>
> Best,
> Christian
> --
> Ein Idealist ist ein Mann, der aus der Tatsache, daß die Rose besser
> riecht als der Kohl, darauf schließt, eine Suppe aus Rosen müsse auch
> besser schmecken.
> -- Ernest Hemingway
>
> --
> --
> 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/20210705115544.GC283422%40256bit.org
> .
>

-- 
-- 
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/CAGrXgp34TNiA71-xu3HS9KuVnEh%3DQc0bFh2%2BTDoMCkb4_KK-%2Bg%40mail.gmail.com.


Vim mindmap functionality

2021-07-05 Thread Julius Hamilton
Hello,

I wish to enable mindmapping functionality inside Vim by somehow treating
regions of text as programmatic objects. For example, with the help of a
plug-in, a certain line of text can be recognized as the "current node".
Then, if I execute a command like "create new child node", it knows to
enter a new text line beneath that one. I would prefer that I cannot scroll
the cursor over the document freely as I like, but that the cursor is
trapped inside each line that is recognized as a node, and that I could
only get out of that region by a mouse click or a special command.

Is this kind of functionality possible given Vim's plug-in support? I think
workarounds approaching it will be possible.

Thanks very much,
Julius

-- 
-- 
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/CAGrXgp2szmj4snGPHL0h4qeibk3jfaq4W-eph8CWRLwwZ3Jvjw%40mail.gmail.com.


Find unnamed swap file

2021-07-05 Thread Julius Hamilton
Hey,

I am using Gvim on Andronix, Android Linux, and it suddenly goes down
sometimes. I can recover any documents that were named with the .swp file
recovery menu. Is there any way I can search for .swp files for files that
hadn't been initially saved and named yet?

Thanks very much,
Julius

-- 
-- 
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/CAGrXgp19p%2BQDZ6yMQGRHTnFYrnTpoLASTi5jTLXzGSOJRrgrSg%40mail.gmail.com.


Pre-fold output of :r! command

2021-07-04 Thread Julius Hamilton
I would like to print the output of a shell command - a webpage dump - into
a Vim buffer, and have those lines immediately folded, rather than a second
step of selecting and folding them.

The command would look something like:

:r! w3m -dump url.com FOLD

How would this be possible?

I would like to navigate my folds in an easier way than navigating to the
blue line that appears, and unfolding them. Is it possible to get some kind
of table of contents sidebar where you can select a fold and open or close
it? In my current configuration, I don't see an indicator that a fold is on
a certain line, if that fold is currently unfolded.

Thank you very much,
Julius

-- 
-- 
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/CAGrXgp3wif%2BEhQoowHn32C-epQF8m%3DTtqqfKK2A0tDWoB2%3DznA%40mail.gmail.com.


Plugin works in TUI not GUI

2021-06-25 Thread Julius Hamilton
I recently installed the plugin txtfmt and used it successfully in Vim TUI
mode.

It is activated with the command :set ft=txtfmt. Then, to highlight a
region, you enter \h, then it prompts you for a color.

I can confirm the installation in Gvim was successful with the command
:MakeTestPage.

For some reason, :set ft=txtfmt has not returned the expected confirmation
message, and appears to do nothing.

Could anyone shed light on why this might be?

Thank you very much,
Julius

-- 
-- 
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/CAGrXgp3kBFOObs0tgwV%3D_44UbJi39MjRd%2BfnPdpAxMFQ7_dDSQ%40mail.gmail.com.


Keymapping txtfmt

2021-06-25 Thread Julius Hamilton
Hello everyone,

I am a beginner, so just looking for a little guidance while I read
tutorials.

I would like to custom map commands from the txtfmt highlighting plugin.

My understanding so far is that this could be achieved with a basic syntax
such as:

map 1 \hf=bi,cg

However, the txtfmt command is such that first you must enter \h, then
enter f=bi,cg into a command input prompt that gets displayed.

How might I achieve this two step command with Vim keymappings?

Thank you,
Julius

-- 
-- 
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/CAGrXgp0dieZtd0rzz22SVRLaB8gcPYoyCGbT4NkHcBg9xuZzQA%40mail.gmail.com.


Re: Txtfmt

2021-06-25 Thread Julius Hamilton
>
>
> The most crude and straightforward way of installing a plugin is just by
> dropping the .vim file in your ~/.vim/plugin/ directory.



Thanks very much. This help is invaluable.


You can do the same for the files that have to go into /ftplugin/, /syntax/,
> etc. Just follow the directory structure on the Github site for the
> right place on your computer.
>

Which of these files are mandatory and which are optional? txtfmt includes:

LICENSE install_details.txt
README.md mb_patch.txt
detailed_description.txt plugin
doc release_notes.txt
ftplugin syntax
indent_patch.txt

Do I need to add all of them?




> Be sure to download the raw version of the plugin code! On the website,
> click until you reach the file and see the code, click the [Raw] button,
> right-click and 'save page as...' in the directory mentioned above. The
> right name will be already given. Note that different files for
> different sub-folders can have the same name -- work in an organized
> manner!
>

I just cloned the repository with the git clone command. Does this retrieve
the raw file?



> My experience is that this works all the time.
>
> Other possibility is using the description for installing a plugin with
> the use of Patogen, Vundle or Git -- just follow instructions, and all
> files will be placed in the right directories.


I will try out Pathogen next.
I haven't tested out what I did above because I'm not familiar with the
commands for using this plugin yet.



> A straightforward 'how-to' you can find here:
>
> https://danishpraka.sh/2018/06/09/vim-plugin-install.html



I tried this out, I don't think it worked, but I'll keep investigating.

Thanks very much,
Julius



>
>
> --
> 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/YNXlzPtlZvKM7WIo%40trackstand.
>

-- 
-- 
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/CAGrXgp1NCs%3DGRqZ7qMYGQ%2B21ek0m-dYJppPdRP7wmKyn33pRuw%40mail.gmail.com.


Txtfmt

2021-06-24 Thread Julius Hamilton
Hey,

I am trying to get up and running with this highlighting plug in:
https://github.com/bpstahlman/txtfmt/blob/master/README.md.

Its a bit complicated and I was wondering if someone could please walk me
through the basic steps of installation and use.

1. I have to download it. Should I git clone it into my .vim file, or
should I try to install it via a package manager like Pathogen or something?

2. Do I have to run any commands to get Vim to recognize the new package
and allow me to use its own commands?

Thanks very much,
Julius

-- 
-- 
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/CAGrXgp3ySK40tzorG59spPLArCAb12zvhO5wkr4jVTXZDk%2BJ3Q%40mail.gmail.com.


Re: C compiler

2021-06-24 Thread Julius Hamilton
Thank you.
For some reason, I had to use apt install vim instead of apt-get install
vim. Then it was easy.

Thanks very much,
Julius



On Thu, Jun 24, 2021, 18:04 Christian Brabandt  wrote:

>
> On Do, 24 Jun 2021, Julius Hamilton wrote:
>
> > Hey,
> >
> > I got the error "No acceptable C compiler found in $PATH" when trying to
> make Vim.
> >
> > I am using Andronix, a modded Linux OS, specifically Ubuntu.
> >
> > Does anyone know what C compiler I should install?
>
> gcc should work fine. You probably need a couple of more packages. On
> ubuntu, to get started for building vim, one usually needs to run
>
> apt-get build-dep vim-gtk
>
> Best,
> Christian
> --
> Wußten Sie schon...
> ... daß Lampenschirme eigentlich total überflüssig sind, da Lampen nur
> selten draußen im Regen rumlaufen?
>
> --
> --
> 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/20210624160430.GC222622%40256bit.org
> .
>

-- 
-- 
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/CAGrXgp1BsEn5NLCqW4FDikMSyscnqVsGZdmQRWkwEKWrHhn7YQ%40mail.gmail.com.


C compiler

2021-06-24 Thread Julius Hamilton
Hey,

I got the error "No acceptable C compiler found in $PATH" when trying to
make Vim.

I am using Andronix, a modded Linux OS, specifically Ubuntu.

Does anyone know what C compiler I should install?

Thank you,
Julius

-- 
-- 
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/CAGrXgp1wRfLxjOAe-Td_iKSP2ogDbXZvDENKrYz6pRwPi8C3rQ%40mail.gmail.com.


Highlight and annotate plaintext

2021-06-08 Thread Julius Hamilton
Hey,

Does anyone know a good command line tool for highlighting and annotating
plain text documents? Not syntax highlighting via pattern matching. Just
going through a document with a cursor, and highlighting it for the purpose
of note-taking. Plus adding comments would be good, but optional.

Thanks very much,
Julius

-- 
-- 
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/CAGrXgp33b6Zg8WwucDwXmTWA2eU0aXNwFakFrwbTYex0T1_sag%40mail.gmail.com.


Highlighting PDFs

2021-05-13 Thread Julius Hamilton
Hello,

Would anyone know of any software tool which would allow you to highlight
specific parts of the text of a PDF, with efficient commands similar to
Vim? That is, instead of highlighting text with the mouse, moving a cursor
through the text with various navigation commands.

Thank you very much,
Julius Hamilton

-- 
-- 
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/CAGrXgp216x0imdap6F1AnSOq8yWJ7rTihfUD5Ox2Pb8qjNbFyg%40mail.gmail.com.


Re: Automating paragraphs (was Re: Dump help pages)

2021-04-20 Thread Julius Hamilton
Thanks.

This is pretty complicated, but probably what I had in mind.

So, some basic clarification -

You defined a new command called Jp. You specify a line range, and it
starts at every non blank line and joins all following non blank lines.

That's quite good. Thanks very much.

What about the second command I had in mind? I could really use a way to
select a paragraph and insert N newlines between every Word (Vim "W") (and
also sentence, on a separate occasion), with a single command, say in
visual mode.

With your command, I can imagine it could be modified to start at every
Word and just append newlines. Do you think you could write an example of
this? And, how to use it on highlighted text in visual mode, instead of
specifying a line range?

Thanks very much,
Julius





On Tue, Apr 20, 2021, 09:13 BPJ  wrote:

> Den fre 16 apr. 2021 19:27Stan Brown  skrev:
>
>> On 2021-04-16 09:42, Julius Hamilton wrote:
>>
>> > At the beginning of a paragraph which has been separated mid-sentence
>> > onto separate lines, how might I automate the process of calling CTRL-J
>> > until all the separated lines in the paragraph have been combined into
>> > one line? Will Vim be able to call CTRL-J until a condition is met, for
>> > example, that the single line being built ends in a sentence (a period),
>> > or until the next line is a blank newline?
>>
>
> I have the following in my .vimrc :
>
> " Command to join lines in all paragraphs in a range/the whole buffer (Jp
> == join paras)
> :com! -range=% Jp ,g/^\s*\S/ .,/^\s*$/-join
>
> " Explanation:
> "  :g/^\s*\S/ " Go to the first in each sequence of non-blank lines
>   " Actually every non-blank line but the result is the same here!
> "  .,/^\s*$/- " "Select" all lines from the current to the one before the
> next blank line
> "  join  " Join the "selected" lines
>
> " Mapping to join lines in all paras in the buffer
> :nnor Jp GoggVG:Jp
>
> " Explanation:
> "  G " Go to the last line in the buffer
> "  o " Add a blank line below the last so we are sure there is one!
> "  gg " Go to the first line in the buffer
> "  V  " Visually select the (first) line
> "  G  " Extend the selection to the last line in the buffer
> "  :Jp " Execute the command defined above
>
> " Mapping to execute the :Jp command over the current visual selection
> :vnor Jp :Jp
>
> HTH
>
> /bpj
>
>
>> The short answer is go to the top of the paragraph and press Shift+V,
>> then to the bottom and press Shift+J (not Ctrl+J). You can automate this
>> further by writing a function that would figure out the top and bottom
>> of the paragraph via whatever logic you build in. See :help :function.
>>
>> > Then, how might I automate the process of entering N newlines between
>> > every sentence? I.e., automating pressing ), i, enter a few times, then
>> > escape, for multiple sentences? I could create a shortcut to execute
>> > these commands and call it myself, or it could also repeat until the
>> > conditions above. How would I do either?
>>
>> Example, for N = 4:
>> :imap  
>> Type the actual < and > characters as shown. To use this, at the end of
>> typing your paragraph do not press Esc but press F9 (or whatever key you
>> mapped).
>>
>> If you sometimes want to insert N blank lines in already-written text,
>> add this:
>> :map  A
>> The previous map was active in insert mode; this one is active in normal
>> mode. It moves to the end of the current line ("A") in insert mode and
>> then appends the insert-mode version of F9.
>>
>> Once you've verified that these work as you wish, you can put them in
>> your $VIM/_vimrc file so that they will be executed whenever you start
>> Vim.
>>
>> > Also, how do I go back to where the cursor previously was, in case I
>> > accidentally move it?
>>
>> `` or ''
>> (One goes back to the _line_) where you were; the other goes back to the
>> exact position within the line.)
>>
>> --
>> Stan Brown
>> Tehachapi, CA, USA
>> https://BrownMath.com
>> https://OakRoadSystems.com
>>
>> --
>> --
>> 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" grou

Re: Some basic Vim commands

2021-04-19 Thread Julius Hamilton
Thanks very much.

I had some success with Tmux, actually.

Is there any way to have tabs inside of a split window? I currently have
tabs one layer above a split, so if I switch tabs, the split is gone and a
single buffer fills the screen.

Thanks very much,
Julius

On Mon, Apr 19, 2021, 15:59 Marc Weber  wrote:

> :sh des start a shell, if you quit it you should be back i vim.
>
> There are various plugins/ extensions  which provide a window with a
> terminal if you need to keep something running.
>
> https://neovim.io/doc/user/nvim_terminal_emulator.html
>
> :h terminal.txt (?)
>
>
> Alternatives  :!cmd  or ctrl-z then command fg or use screen and have 2
> windows  or various old solutions which try
>
> to provide :h terminal like features but as script code which might work
> only most of the time.
>
>
> Marc Weber
>
> --
> --
> 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/d22b4311-f7f2-5052-a58f-1fdcd7ef39e4%40gmx.de
> .
>

-- 
-- 
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/CAGrXgp1xjnZ9ZJBNSKGdMP1_Ngdv4A4phA5jGT3ihGRvFOfsww%40mail.gmail.com.


Re: Some basic Vim commands

2021-04-19 Thread Julius Hamilton
Thanks very much. I plan on reading through this soon, when I have the time.

I was also curious, I created a split screen with CTRL-W s. But in the
lower screen, if I'd like a terminal running there, when I type :sh, the
entire Vim application exits, including the top screen.

Would there be any way to have a terminal in the lower screen, and Vim on
the top?

Thanks very much,
Julius



On Sun, Apr 18, 2021, 16:30 'c.willis111' via vim_use <
vim_use@googlegroups.com> wrote:

>
>
>
>
> -- Original Message --
> From: "Tony Mechelynck" 
> To: "vim_use" 
> Sent: Sunday, 18 Apr, 2021 At 14:32
> Subject: Re: Some basic Vim commands
>
> P.S. And if the text where the number is found can be in any language,
> we must be able to account for the option which is set in COBOL by the
> phrase DECIMAL-POINT IS COMMA in the ENVIRONMENT DIVISION, and then if
> it can /actually/ be in any language we must account for natural
> integers using all of Greek (decimal without zero using lowercase
> alphabetic and two kinds of apostrophes), Hebrew (decimal without zero
> using Hebrew letters, and possibly with several letters for a higher
> hundred), Western Arabic-Indic, Eastern Arabic-Indic, Devanagari (and
> possibly other Brahmic) and CJK hanzi/kanji/hanja conventions. That
> would make it _really_ complicated. (Both Arabic-Indic and Brahmic
> including Devanagari write their natural integers like we do, only
> with different sets of ten digits.) (And I have knowingly skipped
> Roman numbers with or without the possibility to have an ending i
> written as j, Greek acrophonic aka Attic, Maya, Cuneiform and more.
> :-P )
>
> Best regards,
> Tony.
>
> --
> Hi Tony
>
> thanks. What fun!
>
> regards - Chris --
> 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/CAJkCKXtCMzycxbZDCoPx9O%2BbLCkm2SmOkmMxjsSOOTH4gt_bTA%40mail.gmail.com
> .
>
> --
> --
> 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/2f28e3cc.1e60a.178e564221d.Webtop.108%40btinternet.com
> 
> .
>

-- 
-- 
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/CAGrXgp0qipp_1R8kKXvTfbP5UpKKhvLf5tW2XHPwGDkSNtCE-g%40mail.gmail.com.


Some basic Vim commands

2021-04-17 Thread Julius Hamilton
I was curious:

I can jump to the beginning of some text on a line that begins with
whitespace with v, w, h, d. Is there a single command to delete all initial
whitespace on a line?

I then wanted to jump over a few words to the next number (in brackets). Is
there any command to the effect of "find the next number"?

Then I wanted to say: take this word and the next two words, and send them
down 3 newlines. Would there be a way to do that?

Thanks very much,
Julius

-- 
-- 
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/CAGrXgp3-dqe%2B9UaxMSxi3voAimByQyk%2BzM8Lvih%3DSJj%3DA4XgAw%40mail.gmail.com.


Editing mathematics documents

2021-04-17 Thread Julius Hamilton
I have a question related to editing documents inside Vim. If anyone might
have any tips, I'd really appreciate hearing them.

I'd like to edit PDFs which contain mathematical symbols, not to publish
the papers myself, as I could with Latex, but just as a form of note-taking.

I'm curious, could Vim open a PDF as raw textual data? Or is the source
text of a PDF sealed off, and inaccessible?

And if it could, could it support mathematical formula? Not as a markup
language, but as a kind of textual object you could actually stick the
cursor into and manipulate a bit, such as extracting the top of a quotient
and putting it somewhere else, or an expression to the right of an integral
symbol, for example.

Or, is there any tool that could do this? Perhaps Emacs?

Thanks very much,
Julius



On Sat, Apr 17, 2021, 15:30 Julius Hamilton  wrote:

> Thanks very much, really appreciate it.
>
> Would you mind providing a simple outline of a function which would
> terminate on some basic condition, such as, the next line is a blank
> newline? I will read those docs.
>
> I use Vim in Termux, an Android terminal emulator app. I don't know if I
> have buttons such as F9. I will investigate it. However, is there a way to
> check what non-F keys are free to be mapped to something? Thanks very much.
>
> Best regards,
> Julius
>
>
>
> On Fri, Apr 16, 2021, 19:27 Stan Brown  wrote:
>
>> On 2021-04-16 09:42, Julius Hamilton wrote:
>>
>> > At the beginning of a paragraph which has been separated mid-sentence
>> > onto separate lines, how might I automate the process of calling CTRL-J
>> > until all the separated lines in the paragraph have been combined into
>> > one line? Will Vim be able to call CTRL-J until a condition is met, for
>> > example, that the single line being built ends in a sentence (a period),
>> > or until the next line is a blank newline?
>>
>> The short answer is go to the top of the paragraph and press Shift+V,
>> then to the bottom and press Shift+J (not Ctrl+J). You can automate this
>> further by writing a function that would figure out the top and bottom
>> of the paragraph via whatever logic you build in. See :help :function.
>>
>> > Then, how might I automate the process of entering N newlines between
>> > every sentence? I.e., automating pressing ), i, enter a few times, then
>> > escape, for multiple sentences? I could create a shortcut to execute
>> > these commands and call it myself, or it could also repeat until the
>> > conditions above. How would I do either?
>>
>> Example, for N = 4:
>> :imap  
>> Type the actual < and > characters as shown. To use this, at the end of
>> typing your paragraph do not press Esc but press F9 (or whatever key you
>> mapped).
>>
>> If you sometimes want to insert N blank lines in already-written text,
>> add this:
>> :map  A
>> The previous map was active in insert mode; this one is active in normal
>> mode. It moves to the end of the current line ("A") in insert mode and
>> then appends the insert-mode version of F9.
>>
>> Once you've verified that these work as you wish, you can put them in
>> your $VIM/_vimrc file so that they will be executed whenever you start
>> Vim.
>>
>> > Also, how do I go back to where the cursor previously was, in case I
>> > accidentally move it?
>>
>> `` or ''
>> (One goes back to the _line_) where you were; the other goes back to the
>> exact position within the line.)
>>
>> --
>> Stan Brown
>> Tehachapi, CA, USA
>> https://BrownMath.com
>> https://OakRoadSystems.com
>>
>> --
>> --
>> 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/d9ee4264-13cb-eef7-be14-e0e68f9df155%40fastmail.fm
>> .
>>
>

-- 
-- 
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/CAGrXgp16fEb5sE%3DKTvZQcJt8awnQ0Hb%3DCi7CFMQ1uJhE1io1VQ%40mail.gmail.com.


Re: Automating paragraphs (was Re: Dump help pages)

2021-04-17 Thread Julius Hamilton
Thanks very much, really appreciate it.

Would you mind providing a simple outline of a function which would
terminate on some basic condition, such as, the next line is a blank
newline? I will read those docs.

I use Vim in Termux, an Android terminal emulator app. I don't know if I
have buttons such as F9. I will investigate it. However, is there a way to
check what non-F keys are free to be mapped to something? Thanks very much.

Best regards,
Julius



On Fri, Apr 16, 2021, 19:27 Stan Brown  wrote:

> On 2021-04-16 09:42, Julius Hamilton wrote:
>
> > At the beginning of a paragraph which has been separated mid-sentence
> > onto separate lines, how might I automate the process of calling CTRL-J
> > until all the separated lines in the paragraph have been combined into
> > one line? Will Vim be able to call CTRL-J until a condition is met, for
> > example, that the single line being built ends in a sentence (a period),
> > or until the next line is a blank newline?
>
> The short answer is go to the top of the paragraph and press Shift+V,
> then to the bottom and press Shift+J (not Ctrl+J). You can automate this
> further by writing a function that would figure out the top and bottom
> of the paragraph via whatever logic you build in. See :help :function.
>
> > Then, how might I automate the process of entering N newlines between
> > every sentence? I.e., automating pressing ), i, enter a few times, then
> > escape, for multiple sentences? I could create a shortcut to execute
> > these commands and call it myself, or it could also repeat until the
> > conditions above. How would I do either?
>
> Example, for N = 4:
> :imap  
> Type the actual < and > characters as shown. To use this, at the end of
> typing your paragraph do not press Esc but press F9 (or whatever key you
> mapped).
>
> If you sometimes want to insert N blank lines in already-written text,
> add this:
> :map  A
> The previous map was active in insert mode; this one is active in normal
> mode. It moves to the end of the current line ("A") in insert mode and
> then appends the insert-mode version of F9.
>
> Once you've verified that these work as you wish, you can put them in
> your $VIM/_vimrc file so that they will be executed whenever you start Vim.
>
> > Also, how do I go back to where the cursor previously was, in case I
> > accidentally move it?
>
> `` or ''
> (One goes back to the _line_) where you were; the other goes back to the
> exact position within the line.)
>
> --
> Stan Brown
> Tehachapi, CA, USA
> https://BrownMath.com
> https://OakRoadSystems.com
>
> --
> --
> 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/d9ee4264-13cb-eef7-be14-e0e68f9df155%40fastmail.fm
> .
>

-- 
-- 
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/CAGrXgp37RNC_0WneQ1zj3CfhfNWi%2BnunAP4GAKB-g0A23GqKaA%40mail.gmail.com.


Re: Dump help pages

2021-04-16 Thread Julius Hamilton
Thank you very much, I'll use that.

  I'm currently reading the Vim docs by editing them inside Vim, it's a
good way for me to process them better.

  However, to speed things up, I was wondering if anyone could tip me
off about a few functionalities.

At the beginning of a paragraph which has been separated mid-sentence onto
separate lines, how might I automate the process of calling CTRL-J until
all the separated lines in the paragraph have been combined into one line?
Will Vim be able to call CTRL-J until a condition is met, for example, that
the single line being built ends in a sentence (a period), or until the
next line is a blank newline?

Then, how might I automate the process of entering N newlines between every
sentence? I.e., automating pressing ), i, enter a few times, then escape,
for multiple sentences? I could create a shortcut to execute these commands
and call it myself, or it could also repeat until the conditions above. How
would I do either?

Also, how do I go back to where the cursor previously was, in case I
accidentally move it?

 Thanks very much,
 Julius


On Wed, Apr 14, 2021, 19:21 Charles Campbell  wrote:

> Julius Hamilton wrote:
> > Thanks very much. Yes, that'll do the trick. Not all pages, but just
> > any individual one I happen to be reading, so I can edit and take
> > notes on it.
> >
> > Thanks very much, really appreciate it.
> >
> > Julius
> >
> I was surprised no one mentioned what seemed to me to be the most
> obvious -- just
>
>  :w filename
>
> Chip Campbell
>

-- 
-- 
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/CAGrXgp3sCOfAZEQHcJYYyAEs_TSoNPTi%3DH1B9hLpuaN9Y0yRKw%40mail.gmail.com.


Re: Dump help pages

2021-04-13 Thread Julius Hamilton
Thanks very much. Yes, that'll do the trick. Not all pages, but just any
individual one I happen to be reading, so I can edit and take notes on it.

Thanks very much, really appreciate it.

Julius


On Tue, Apr 13, 2021, 15:32 Christian Brabandt  wrote:

>
> On Di, 13 Apr 2021, Julius Hamilton wrote:
>
> > Someone showed me ":hardcopy" and ":TOhtml". ":hardcopy" for me returns
> "Failed
> > to print postscript file". "TOhtml" opens a new window of HTML, but I
> don't
> > know how to output it to a file. Would anyone here know how to do that?
>
> So you want all help pages in a single text file. I am not sure if this
> is useful. Use some Unix commands and append the content to a single
> buffer in Vim.
>
> :r! cat $VIMRUNTIME/doc/*.txt
>
> Note there is also:
> https://nathangrigg.com/vimhelp/
> https://www.vi-improved.org/vimusermanual.pdf
>
> Not sure how current those versions are.
>
> Best,
> Christian
> --
> Wie man sein Kind nicht nennen sollte:
>   I. K. Russ
>
> --
> --
> 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/20210413133249.GF154%40256bit.org
> .
>

-- 
-- 
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/CAGrXgp22KHJ%2BjFjtwi7uXLd8FUb9zC3_ine2bq_jkXPZhKfS6A%40mail.gmail.com.


Re: Dump help pages

2021-04-13 Thread Julius Hamilton
Someone showed me ":hardcopy" and ":TOhtml". ":hardcopy" for me returns
"Failed to print postscript file". "TOhtml" opens a new window of HTML, but
I don't know how to output it to a file. Would anyone here know how to do
that?

Thanks very much,
Julius

On Tue, Apr 13, 2021, 14:30 Julius Hamilton  wrote:

> Thanks very much.
>
> Sorry, I don't fully understand how to use that. That seems to be a long
> document about many different options. Is there listed somewhere in there
> the option to output a Vim help page to an external file?
>
> For example, the Unix info reader allows outputting of an info page with
> the "-o" option.
>
> Thanks very much,
> Julius
>
>
>
> On Tue, Apr 13, 2021, 09:52 Christian Brabandt  wrote:
>
>>
>> On Mo, 12 Apr 2021, Julius Hamilton wrote:
>>
>> > Is there any way to output the content of the Vim help pages to a text
>> file, with some sort of dump or output command?
>>
>> The help pages are text files, you don't need to dump them, you can
>> :e $VIMRUNTIME/doc/options.txt
>> to read the options help page.
>>
>> Best,
>> Christian
>> --
>> Das Familienleben ist eine Störung des Privatlebens.
>> -- Michelangelo Antonioni
>>
>> --
>> --
>> 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/20210413075153.GD154%40256bit.org
>> .
>>
>

-- 
-- 
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/CAGrXgp2Jxj9Ytbj3vrxz4rUT4LB_999qgXzQ19C3jskaSrmA_w%40mail.gmail.com.


Re: Dump help pages

2021-04-13 Thread Julius Hamilton
Thanks very much.

Sorry, I don't fully understand how to use that. That seems to be a long
document about many different options. Is there listed somewhere in there
the option to output a Vim help page to an external file?

For example, the Unix info reader allows outputting of an info page with
the "-o" option.

Thanks very much,
Julius



On Tue, Apr 13, 2021, 09:52 Christian Brabandt  wrote:

>
> On Mo, 12 Apr 2021, Julius Hamilton wrote:
>
> > Is there any way to output the content of the Vim help pages to a text
> file, with some sort of dump or output command?
>
> The help pages are text files, you don't need to dump them, you can
> :e $VIMRUNTIME/doc/options.txt
> to read the options help page.
>
> Best,
> Christian
> --
> Das Familienleben ist eine Störung des Privatlebens.
> -- Michelangelo Antonioni
>
> --
> --
> 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/20210413075153.GD154%40256bit.org
> .
>

-- 
-- 
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/CAGrXgp2DJ7NZ1Q5OsA19pTPkyhYS3XZmNbQV6JHWhbHJpuzPWg%40mail.gmail.com.


Dump help pages

2021-04-13 Thread Julius Hamilton
Hey,

Is there any way to output the content of the Vim help pages to a text
file, with some sort of dump or output command?

Thanks very much,
Julius Hamilton

-- 
-- 
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/CAGrXgp2Ko9JGPqAKTJGjRPgMGWx_zjZAKfni6gdAKvea1rkVLQ%40mail.gmail.com.