Re: [Discussion] GitHub as the canonical source or not

2024-01-29 Thread 'meine' via vim_use
On Sun, Jan 28, 2024 at 07:25:03AM -0800, Sukima wrote:
> Recently there has been a percolating trend to be concerned over GitHub.
> Specifically the
> Give up GitHub <https://sfconservancy.org/GiveUpGitHub/> plea.
>
> Since Vim is a FOSS project I was curious what the community thought about
> this.
>
>1. Pros/Cons?

Noce to see this discussion on GitHub, but IMHO a bit late. Far Too
Late.

GitHub is owned by Microsoft, they bought the platform several years
ago. Technically GH might be practical for developers, but the owner
can be a problem. In several ways.

Microsoft says to `<3` Linux, but anyone who remembers their quite
agressive proprietary way can smell the threat for the freedom of your
code.

What when they pull the plug? By cutting the cables or --more realistic
in this part of the software world-- ask growing fees for using, up- and
downloading code.

What does Microsoft with all the code? In the past they nicked parts to
implement and sell. Maybe part of some GPL or BSD license accepts that,
but it feels somewhat strange. Sooner or later people pay for
proprietary software based on FOSS code. That ain't fair.

Trust is good, trust in a (former) opponent is brave. But don't be naiv.

The other thing about GitHub and all the alternatives is that a parallel
universe of software sources and repositories seems to grow. This brings
practical (where can I find it) and security concerns (who can change
code, fork it with nasty features, present it as a decent fork). The
latter is a very big risk for computer and software safety. I expect the
formal repositories in Linuxes and *BSD do security checks on the code.
In de Microsoft-realm we all know the spreading of virusus and malware
made possible by this cowboy way of software distribution.

My thoughts on the plea. Find a common, secure and independent place for
it!

KR

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/Zbdmb41-KzZkOnHt%40trackstand.


Re: Any way to incorporate graphics into Gvim?

2024-01-24 Thread 'meine' via vim_use
> >There are however ways to point to a picture for pre-print. When you
> >
> >This can eg. be done with basic markdown, see
> >https://daringfireball.net/projects/markdown/basics at 'IMAGES'. LaTeX
> >documents do the same.
>
> Yes. The TIO (Tab Indented Outline) to HTML presentation converter I'm
> making will do this. Thanks for answering my question.

For pre-print and processing take a look at `pandoc`. It is a program or
series of software that interpretes basic input to make beautiful PDF.

I use Vim to make documents and make PDF out of it with the help of
pandoc. Next to the mentioned basic markdown, you can also add LaTeX
commands to eg. skip page numbers and a lot more.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZbFor0l4wZETcoRU%40trackstand.


Re: Any way to incorporate graphics into Gvim?

2024-01-23 Thread 'meine' via vim_use
On Sun, Jan 21, 2024 at 11:31:13PM -0500, Steve Litt wrote:
> Hi all,
>
> I'm pretty sure I already know the answer, but is there a way to
> incorporate a .png or .svg into Gvim, right by the characters it
> represents?

Since Vim/Gvim is a _text_ editor, there is no way of displaying a
picture inline in the view of the text.

There are however ways to point to a picture for pre-print. When you
print the text, the picture will be printed there where you pointed it.

This can eg. be done with basic markdown, see
https://daringfireball.net/projects/markdown/basics at 'IMAGES'. LaTeX
documents do the same.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZbADmTb-aYLbMGyo%40trackstand.


Re: DirDiffVim for folders, but files are missed?

2024-01-03 Thread 'meine' via vim_use
On Tue, Jan 02, 2024 at 03:27:28PM -0800, K otgc wrote:
> Thanks, I actually did use Meld, great GUI.
> However, the sorting process needs digital automation.
> Manually moving 1000's of files on several accounts is too slow and I
> haven't figured out how Meld could do that?

For automation regular `diff` seems a more appropriate tool. You can
call it in a script, etc.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZZWO4vYuU-KthQq6%40trackstand.


Re: DirDiffVim for folders, but files are missed?

2024-01-02 Thread 'meine' via vim_use
On Mon, Jan 01, 2024 at 07:03:31AM -0800, K otgc wrote:
> Hello,
> I have Google Photos downloaded and I'm trying to sort out the mess of
> duplicates.
> I usually use vimdiff for file content, however this needs files in
> directories compared.
>
> Running command vim -c "DirDiff dir1 dir2" -> select Enter -> DirDiff.vim
> correctly shows folders only in dir1 and dir2.
> However, I need dir1's files that aren't duplicates of dir2, to move into
> dir2.
> How can I manage this please?

Since you are looking for a difference or resemblance in files and not
per se contence, I suggest using a command line tool like `diff` or a
graphical program like `meld`.

Both will provide you with differences and alikes in name, date, size,
etc.

Vim and vimdiff are for comaring text files, and you seem to need
something different.

KR,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZZRkMSb44ZGixvIm%40trackstand.


Re: 'Keyboard input' vs 'cursor copy+paste' for "repeat" (.) action

2023-07-06 Thread meine
On Wed, Jul 05, 2023 at 04:23:54PM -0400, Eric Marceau wrote:
> Currently using
>
> VIM version 8.1.3741
> on Ubuntu MATE (Linux 5.4.0-150-generic #167-Ubuntu)
>
> When I /copy+paste/ text using the system cursor,
>
> regardless of whether that text is from another non-Vim
> window, or from the text file currently in the Vim window,
>
> if the text string being inserted is a combination of
> */typed-input/* and /*copy+paste*/,  the Vim's "." (repeat operator)
> seems to ignore the /copy+paste/ text and will *only* repeat
> that portion of the entry which was /directly-typed at the //
> //keyboard/ (i.e. xyz{cut+paste_text}abc )!!!
>
> Is that behaviour controlled by a modifiable Vim parameter
> which can be set to allow both inputs to be captured as
> a *single operation for full repeat*?

Cutting and copying tekst places the text in a register -- the '0
register'. The paste command places the contence of that register where pasted.

The pasting can be repeated with the dot-command, it pastes the same
text from the dot-register.

Since the dot-command only repeats the last command, it kan only repeat
the pasting. Copying another word overwrites the buffer the text is
copied into.

You could make a small macro to combine commands you want and use that.

Vim has several registers that you can use to copy text into and only
call that register to paste the text. The working is great but can be
overwhelming to learn. See `help: registers`.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZKZwbr3t1NlH-399%40trackstand.


Re: You Need VIM

2023-04-17 Thread meine
On Mon, Apr 17, 2023 at 04:08:20AM -0700, rwmit...@gmail.com wrote:
> No, no it isn't.  Vim is the way.  All else is peril.
> 
> On Sunday, April 16, 2023 at 11:40:33 PM UTC-4 Enan Ajmain wrote:
> 
> > On Sun, 16 Apr 2023 09:04:25 -0400
> > Steve Litt  wrote:
> > > meine said on Sun, 16 Apr 2023 09:57:20 +0200
> > >
> > > >Something to enjoy on a Sunday morning...
> > > >
> > > >https://youtu.be/9n1dtmzqnCU
> > >
> > > That's pretty bizarre :-)
> > >
> > > When the guy says you don't need anything but Vim, it makes me ask a
> > > question. I use VSCode to author HTML because VSCode has great
> > > zen-coding and coaches you on tags and legal CSS identifiers and
> > > values. The time I looked at a zen-coding addon for Vim, it was a
> > > total mess. What HTML aware zen-coding addons are all of you using
> > > these days?
> >
> > Damn! you're committing _hard_. You do realize the video is a parody,
> > right?

Glad to see the show here :-) TNX!

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZD2kYphblBlWAcTj%40trackstand.


Re: You Need VIM

2023-04-16 Thread meine
> When the guy says you don't need anything but Vim, it makes me ask a
> question. I use VSCode to author HTML because VSCode has great
> zen-coding and coaches you on tags and legal CSS identifiers and
> values. The time I looked at a zen-coding addon for Vim, it was a total
> mess. What HTML aware zen-coding addons are all of you using these days?

There seem to be several plugins for zen-coding, and I encountered a
site that mentioned it is called 'Emmet' now/also.

Mayby this link helps:

https://vimawesome.com/plugin/emmet-vim

vimawesome.com is a good site and catalog for plugins, but since github
was marketed extensively there is some diversion and dispersion of
sites providing a clear catalog of working plugins...

KR,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZDwmx-0uN_ZT3BZc%40trackstand.


You Need VIM

2023-04-16 Thread meine
Something to enjoy on a Sunday morning...

https://youtu.be/9n1dtmzqnCU

KR,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZDuqYNkAmsAGQVb-%40trackstand.


Re: Quick Vim question

2023-04-14 Thread meine
On Thu, Apr 13, 2023 at 03:48:35PM -0400, 'Susan McElheny' via vim_use wrote:
> I've used the Vi editor on Unix for over 30 years and had to recently
> switched my software to Windows so I am now using Vim on my c:drive.  I'm
> confused about how to change settings.  When I do a search all the items
> are highlighted but there is no indicator for which word in the search I am
> currently on. How do make Vim indicate which search word I'm currently on?

This looks like the colour of your cursor is the same as the
selection/marking of the word that you search.

Changing the colour of the cursor isn't that hard:

* Find out what colorscheme you use. This might be in your .vimrc, but
* can also be found with the `:color` command;

* Open that color-file in ~/.vim/colors/ or alike;

* J to the lines that define the colour of your cursor and change the
* one for selections to a different value. You can use a colour value
* that is used in another setting. Just try something that is completely
* different, e.g. yellow instead of blue;

* Preferrably save the changed color file under a different name. I
* changed `nighted.vim` to `nighted_16b` for that reason. Set that new
* colorscheme as your default. The new name prevents the customized file
* to be overwritten at an update or so in future. (my '16b' has something 
* to do with the use of 16 colours in TTY).

Hope this helps you!

KR,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZDj7xuyNSFR50_x-%40trackstand.


nice user article

2023-03-28 Thread meine
Hi,

in mastodon, I stumbeld upon a nice post on stackoverflow, that IMHO is
worth reading. it is higer level Vi and Vim use, and worth for the usage
of our beloved editor:

https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118

KR,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZCNJ7g1CxrnIwBC7%40trackstand.


Re: Can I copy/yank into and out of vim?

2023-03-11 Thread meine
> To add confusion:

addendum: where the outside world adapted on the same set of Ctrl-
commands to move text, Vim uses  for a visual block, and  for
autocompletion. It is alike, but not the same.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZAxF%2BPiNcH5hq6uB%40trackstand.


Re: Can I copy/yank into and out of vim?

2023-03-11 Thread meine
On Sun, Mar 05, 2023 at 08:58:59AM +0100, Tony Mechelynck wrote:
> On Sat, Mar 4, 2023 at 4:24 AM Angel M Alganza  wrote:
> >
> > On 2023-03-04 03:48, Tony Mechelynck wrote:
> >
> > > The reason for this dfference in behaviour is that xterm doesn't use
> > > the X11 clipboard (register + in Vim) but only the X11 selection
> > > (register * in Vim). In almost every other GUI, including gvim, you
> > > can use Edit→Cut, Edit→Copy and Edit→Paste to pass text from one
> > > program to another via the clipboard, but in xterm you need to have
> > > some text selected (and, in Vim, written to "*) then the middle mouse
> > > button pastes into xterm; conversely, IIUC anything selected in xterm
> > > will appear in Vim's * register and can be pasted with "*p or with
> > > .

To add confusion:

The Fish shell accepts Ctrl-V as a paste command, as well as Shift-Ins
from the keyboard.

This works in Xterm and urxvt.

In plain Xterm with the sh shell, only Shift-Ins works as paste.

While testing and writing this down I found out that there are a lot of
differences that seem to be dependent on de combination of your terminal
multiplexer, your shell, and Vim. Finding the proper combinations,
the output of `:registers` might be helpful to compare.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZAxCyuffZE0mUhwU%40trackstand.


Re: Starting GVim maximized

2023-01-04 Thread meine
On Mon, Dec 12, 2022 at 09:27:13AM -0500, Salman Halim wrote:
> Hello,
> 
> I recently switched from Windows GVim 32-bit to 64-bit and noticed that if
> I put 'simalt ~x' to start the window maximized, the tab bar at the top
> disappears. I have to restore/unmaximize to make it show up.
> 
> If I start GVim 64-bit unmaximized, let the window come up and THEN
> maximize it, either using the window or simalt ~x, then it's fine.
> 
> The menu and toolbar aren't affected by this, only the tab bar.
> 
> Is anybody else seeing this?

This behaviour probably is from the window manager of your operating system, 
not caused by Vim.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/Y7V2mMm4r5%2BBQWBu%40trackstand.


Re: how to get more efficient writing code

2023-01-04 Thread meine
On Tue, Jan 03, 2023 at 10:44:50PM -0800, Igor Lerinc wrote:
> can you reccomend me some youtube chanells, or videos, where programmers 
> actually use Vim to edit code, and work with all that complex stuff.
> just to give me idea, how they do it. so i can get comfortable if i'm
> doing it efficient enought

Both video's below are very instructive:

https://www.youtube.com/watch?v=wlR5gYd6um0

https://www.youtube.com/watch?v=XA2WjJbmmoM

However, if you want to _learn_ Vim, you'll have to *use* it. That way
the Vim Grammar gets into your hands and head. The Vimtutor is a good
way to do so.

KR,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/Y7VEb7F8pFYLLeJE%40trackstand.


how trigger vim to open a conversion result?

2022-11-25 Thread meine
Hi,

Sometimes I get text files with a format that is not directly human
readable, e.g. an MS Word file. Does anyone know how to open a
conversion-result directly in vim?

I use pandoc to convert between formats. The string I use just to read a
Word file is

$ pandoc -f docx -t rst [file]filename[/filename] | less

Pandoc converts the docx-file to a ReStructuredText file that can be
read in a pager.

But how do I trigger vim to open the result (instead of less)?

TIA

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/Y4DvRmfTo%2B4nNVJW%40trackstand.


Re: Numbered lists and indentation

2022-06-14 Thread meine
On Mon, Jun 13, 2022 at 06:02:08PM +0200, Rand Pritelrohm wrote:
> Hello,
>
> Despite having read a lot of posts, I have not found a solution to my
> problem.
> So I am sorry if the topic has already been discussed.
>
> I would like to write texts with numbered lists, but I face problems
> with indentation from the second line of each items:

It depends on if you want to process your text from Vim to make it
'print ready' or not.

The solution Gary posted makes your text line out well in Vim.

When you process your text with (eg.) Pandoc or LaTeX, the outlining is
done for you and you don't have to bother about indentation.

Pandoc is very practical to provide clean PDF-files with hardly any
extra work when you use basic (daring fireball) Markdown. Here you even
don't have to bother about the numbering, '1. ' for each numbered item
is enough to get a numbered list.

See https://pandoc.org

Kind Regards,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YqinnM8TuC3sS5ow%40trackstand.


Re: goyo plugin and artifacts in TTY

2021-11-02 Thread meine
> > When starting Goyo, artifacts of the previous screen-wide display of the
> > text stay. Scrolling though the text doesn't remove them (as opposed to
> > Goyo in a GUI, where resizing the window removes the artifacts).
>
> I have seen this, only with the Apple Terminal app.  It looks like a bug
> in Terminal, since Vim cannot produce this pixel dust.  You can report
> the problem to Apple (but they have a history of being very
> unresponsive).

The problem is in the FreeBSD Operating System, with vim version
8.2.3458 but also on earlier versions.

It is *not* in some app, but plain TTY console/terminal -- no GUI
whatsoever (yep, this OS can do such basic things ;-). In FreeBSD version
13.0 p4, I use the default VT terminal for TTY.

Routine is to first ask at the program level, so I dropped it here.
Since you don't recognize the problem, I'll ask at the OS-level.

Thanks anyway,

Kind Regards,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YYHAG6xql4hzrcH4%40trackstand.


goyo plugin and artifacts in TTY

2021-10-30 Thread meine
Hi,

for distraction free writing I like working in TTY -- terminal, no
graphical environment. I also like using the Goyo plugin to make the
lines ons screen shorter.

When starting Goyo, artifacts of the previous screen-wide display of the
text stay. Scrolling though the text doesn't remove them (as opposed to
Goyo in a GUI, where resizing the window removes the artifacts).

Does anyone know a solution to this?

Maybe it is in the plugin code, but I'm not (yet) that skilled to find
possible solutions.

TIA,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YX2vk14g/yqwnsXs%40trackstand.


Re: Vim mindmap functionality

2021-07-05 Thread meine
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YON19PBn48xCw5EA%40trackstand.


Re: Vim mindmap functionality

2021-07-05 Thread meine
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.

Maybe this is something you can use:

https://www.reddit.com/r/neovim/comments/enp3h2/visualize_your_markdown_with_a_mindmap/

https://github.com/gera2ld/coc-markmap

It seems to be written for NeoVim, but you could try it in regular Vim
and see.

If you serach for 'markdown mindmap' there are more possibilities, but
you'd probably need other programs next to Vim:

https://duckduckgo.com/?q=markdown+mindmap=ffab=v262-1=web

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YON1MXRZvw2BopdJ%40trackstand.


Re: Introducing a dedicated unicode mode in Vim

2021-06-27 Thread meine
On Sun, Jun 27, 2021 at 11:32:21AM +0530, Manas wrote:
> I wanted to know that will it be interesting to add a dedicated support
> for typing unicode characters in Vim? Like we have insert and replace
> modes, will it be useful to have a "unicode-mode" which when activated
> can enable a typist to type in unicodes at ease and allow them to type
> those characters continuously? Current implementations of using  for
> unicodes and  for digraphs become tedious for typing continually.

Probably you can set this in your .vimrc:

`autocmd set digraph`

I had the reverse problem a while ago in mutt, where vim is my editor --
making a typo, hitting , typing the right character and
ending up with Japanese katakana or hiragana. After some searching, I
found out that I had a line in my .vimrc that triggered this when
writing an email. Your wish is the reverse of this, although I don't
know if the line above is syntaxually right. But you just can find out.

As with my line that only worked when composing an email in mutt, you
could set it in your .vimrc only to work for specific file types, etc.
The original line I had is

`autocmd BufNewFile,BufRead /tmp/mutt* set noautoindent filetype=mail
wm=0 tw=78  digraph nonumber nolist`

Since I am a search-copy-paste sysadmin, I can't tell you what to change
for your purposes, but there is plenty of info on the Net.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YNiSSQus3%2B%2BiJMhd%40trackstand.


Re: Plugin works in TUI not GUI

2021-06-26 Thread meine
On Sat, Jun 26, 2021 at 01:30:29AM +0200, Julius Hamilton wrote:
> 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.

When there is a difference between Vim in TUI en GVim, mostly that is
because of some setting in your .vimrc file. Finding the setting that
triggers different behavour can be a challenge though...

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YNeW2wRUlkSuQXtc%40trackstand.


Re: Txtfmt

2021-06-26 Thread meine
> 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?

The plugin only needs the sub-directories and files in ftplugin and
syntax. They are essential for the plugin to work. When you already have those 
directories, you can put the files into there. Otherwise, you'll have to make 
them in your .vim directory.

License and Release notes are not essential. The Read-me and
detailed_description are for your own reference, a short how-to or
'manual'. indent_patch I don't know, seems a description of the last
changes.

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

Yes it does

When you cloned it the right way, all files will be put in the proper
directories. I must confess, that I sometimes miss the right place, and
have to correct things by hand.

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

New plugins always have to be experienced. I have very few, and often
delete them after trying.
> > 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.
 There are a lot of sites that describe the installation of plugins. As
 a non-techie, most of them are not clear to me. That is why I installed
 the files by hand.

 Kind Regards,

 //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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YNbu2f%2BCMbcrka0V%40trackstand.


Re: Txtfmt

2021-06-25 Thread meine
On Thu, Jun 24, 2021 at 09:50:51PM +0200, Julius Hamilton wrote:
> 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.

The most crude and straightforward way of installing a plugin is just by
dropping the .vim file in your ~/.vim/plugin/ directory. 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.

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!

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. When not (gitting them to
the wrong directory) you can relocate the files by hand as mentioned
above.

A straightforward 'how-to' you can find here:

https://danishpraka.sh/2018/06/09/vim-plugin-install.html

Good Luck!

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YNXlzPtlZvKM7WIo%40trackstand.


Re: Highlight and annotate plaintext

2021-06-10 Thread meine
On Thu, Jun 10, 2021 at 12:39:34PM +0200, meine wrote:
> On Tue, Jun 08, 2021 at 01:54:39PM +0200, Julius Hamilton wrote:
> > 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.

The explanation here is better:

https://stackoverflow.com/questions/4823468/comments-in-markdown

[citation]: If you want a comment that is strictly for yourself (readers of the 
converted document should not be able to see it, even with "view source") you 
could (ab)use the link labels (for use with reference style links) that are 
available in the core Markdown specification:

http://daringfireball.net/projects/markdown/syntax#link

That is:

[comment]: <> (This is a comment, it will not be included)
[comment]: <> (in  the output file unless you use it in)
[comment]: <> (a reference style link.)

Or you could go further:

[//]: <> (This is also a comment.)

To improve platform compatibility (and to save one keystroke) it is also 
possible to use # (which is a legitimate hyperlink target) instead of <>:

[//]: # (This may be the most platform independent comment)

For maximum portability it is important to insert a blank line before and after 
this type of comments, because some Markdown parsers do not work correctly when 
definitions brush up against regular text.

In general, this approach should work with most Markdown parsers, since it's 
part of the core specification. (even if the behavior when multiple links are 
defined, or when a link is defined but never used, is not strictly specified).

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


Re: Highlight and annotate plaintext

2021-06-10 Thread meine
On Tue, Jun 08, 2021 at 01:54:39PM +0200, Julius Hamilton wrote:
> 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.

There are some pages on the net that describe making comments in
'StackOverflow Markdown', and one of them found the trick to make
comments in your tekst, that are not visible in print:

https://alvinalexander.com/technology/markdown-comments-syntax-not-in-generated-output/

I trief this in Vim with a plain markdown file, where the following line
is skipped when you make a pdf with pandoc:

[//]: # (This syntax works like a comment, and won't appear in any output.)

Didn't find out yet what part dides visibility in the pdf version, but
it works.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YMHr5r67FFYx3B5p%40trackstand.


Re: Print the reference manual

2021-04-22 Thread meine
> > I know I can print a help doc to a text file with :e! cat 
> > $VIMRUNTIME/doc/filename.txt. But what about the entire reference manual? 
> > Not the user manual, the reference manual.
>
> That would be a very heavy printout, and you would want a page break
> between each pair of files.

Maybe it is more practical to buy a reknown book on Vim, like Practical
Vim, and leave the entire reference for reference. Computers are
invented to save and process larege amounts of information, and a
digital reference probably is more accessible than a printed one.

Just some thoughts...

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YIHqlHVdHdMNcX1K%40trackstand.


Re: Dump help pages

2021-04-14 Thread meine
Maybe one of these pages is of your help:

https://vimhelp.org/

https://vim-jp.org/vimdoc-en/

and here is one help in one file, in different formats:

https://archive.org/details/vimdoc/page/n5/mode/2up

//meine


On Mon, Apr 12, 2021 at 10:17:21PM +0200, Julius Hamilton wrote:
> 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/YHaVFtccxCOI0KBm%40trackstand.


add a line -- .vimrc instead of plugin

2021-03-27 Thread meine
Hi,

I read about the 'unimpaired.vim' plugin and its nifty feature to add a
blank line below or above the line you're on. Quite often needed when
editing the final layout of your document.

But why with a plugin? As I want to learn Vim the 'less comfortable'
way, I tried some things and made just two lines in my .vimrc that do
just the same. The challenge was to return the cursor to the original
position (line and column) after the new line was made.

" add a line below or above without moving
noremap o mpo`p
noremap O mpO`p

'mp' marks the position (just chose p because I don't use that edge of
my keyboard often)

'o' or 'O' adds an empty line below or above

 gets back to Normal mode

`p gets back to the previous position (mind the backtick!)

Probably no higer Vim skills or rocket science, but I am happy to have
solved this instead of just downloading a plugin. Also learned the
difference between an apostrophe and backtick when going to a mark :-)

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YF9fexRFHtyzYvfI%40trackstand.


Re: syntax highlighting legend

2021-02-20 Thread meine
On Mon, Feb 15, 2021 at 03:13:52PM -0800, Matthew Pritchard wrote:
> Hello I am wondering what is the color code for the different colors vim
> displays. I am also assuming that these colors can be customized. How do I
> do this?

you can open a colorscheme in vim and see how colors are defined. then
build your own, or change some at your need.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YDEl05zQXWtX1dYB%40trackstand.


Re: Highlight email headers with different colors

2021-02-01 Thread meine
> Actually, my problem is about highlighting and coloring email headers in
> vim, when *editing the message*.

OK. In my setup I don't see any headers when editing an email -- just a
window with regular Vim. After I quit vim and get back into mutt, I see
the headers, but that is just to, from, subject etc and as/needs no
coloring.

When replying to an email there is only one line above the message that
states 'soandso wrote:', but nothing more.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YBg2%2BiA5hxF8VIZ8%40trackstand.


Re: Highlight email headers with different colors

2021-02-01 Thread meine
On Sun, Jan 31, 2021 at 10:02:02PM -0800, Ian N wrote:
> Hello,
> I am a new vim+mutt user. I am wondering how to highlight email headers
> (from, To, CC, Subject, ...) with different colors.

I have the following color settings in my muttrc. Don't know if all
settings are technically correct, but it gives different colors for
different parts of an email. Just put them into your muttrc and see if
it works for you.

//meine


## MUTT COLOURS

# Colours for items in the index
color index brightcyan black ~N
# Hmm, don't like this.
#color index brightgreen black "~N (~x byers.world)|(~x byers.x)|(~x 
langly.levallois123.axialys.net)|(~x the.earth.li)"
color index brightyellow black ~F
color index black green ~T
color index brightred black ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D

# Highlights inside the body of a message.

# URLs
color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+;
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+;

# email addresses
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
#mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"

# header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightcyan black "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"

# Coloring quoted text - coloring the first 7 levels:
color quoted cyan black
color quoted1 yellow black
color quoted2 red black
color quoted3 green black
color quoted4 cyan black
color quoted5 yellow black
color quoted6 red black
color quoted7 green black

# Default color definitions
#color hdrdefault white green
color signature brightmagenta black
color indicator black cyan
color attachment black green
color error red black
color message white black
color search brightwhite magenta
color status brightyellow blue
color tree brightblue black
color normal white black
color tilde green black
color bold brightyellow black

#color underline magenta black
color markers brightcyan black

# Colour definitions when on a mono screen
mono bold bold
mono underline underline
mono indicator reverse

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


Re: color settings for different environments in vimrc?

2021-01-27 Thread meine
On Wed, Jan 27, 2021 at 02:14:57PM -0800, Gary Johnson wrote:
> On 2021-01-27, meine wrote:
> > Hi,
> >
> > Working on my computer I sometimes use plain TTY and other times a GUI.
> > I would like to set different colorschemes for that in my vimrc.
> >
> > At this moment I have following code, but it doesn't work at all -- vim
> > only uses the nighted_16.
> >
> > if has('gui_running')
> >set t_Co=256
> >colorscheme molokai_dark
> >set guifont=Monospace\ 10
> >set columns=85 lines=30
> > if has('x11')
> >set t_Co=256
> >colorscheme nighted_16
> >set guifont=Monospace\ 10
> > else
> >set t_Co=16
> >colorscheme nighted_16
> > endif
> >
> >
> > Any suggestions on how to improve it?
>
> The code snippet above is missing something to end the first if,
> either an endif, else/endif or elseif.  You probably want to change
> the second if to an elseif.

Many thanks! It now works as intended.

Kind Regards

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YBJt6I4210E9hNYW%40trackstand.


color settings for different environments in vimrc?

2021-01-27 Thread meine
Hi,

Working on my computer I sometimes use plain TTY and other times a GUI.
I would like to set different colorschemes for that in my vimrc.

At this moment I have following code, but it doesn't work at all -- vim
only uses the nighted_16.

if has('gui_running')
   set t_Co=256
   colorscheme molokai_dark
   set guifont=Monospace\ 10
   set columns=85 lines=30
if has('x11')
   set t_Co=256
   colorscheme nighted_16
   set guifont=Monospace\ 10
else
   set t_Co=16
   colorscheme nighted_16
endif


Any suggestions on how to improve it?

TIA,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YBHUkOCLl%2BYEFURW%40trackstand.


write errors

2021-01-23 Thread meine
Hi,

I have a few files where I yank/paste some lines from the internet as a
reference. Often (not always) Vim gives some errors after `: wq`

E37: No write since last change
E162: nothing saved since last change of buffer ""
Type ENTER or type a command to continue

What is happening here, and how can I resolve it?

Further observations:

When this happens there are one or more files with the same filename,
but different 'file types', eg. with a .md file there is a .md~ and
sometimes an .mx .my. mz file, besides a ..md.swp which is
logical because editing the file wasn't formally closed in Vim.

Other observation is that there mostly is a strange character in the
markdown file, comming from the y/p from a browser. In many cases it is
a `¿`. When I replace that character and delete the temporary files, all
is right again.

TIA

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YAyLSdxgqdQT/Gh2%40trackstand.


Re: do plugins affect performance?

2021-01-08 Thread meine
> Does anyone know if installed plugins affect the speed of Vim when they
> are not used?

Many Thanks for all your replies!

Wether Vim takes more memory and/or will react slower with plugins
active, I will have to find out, e.g. by monitoring htop and just
trying.

I'm not a very extensive plugin user and my box is relatively fast. It
was foremost a theoretical question, but further (and starting to use
more plugins) it could get an issue.

KR

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/X/jA2m0idxPw4PlA%40trackstand.


do plugins affect performance?

2021-01-03 Thread meine
Hi,

Does anyone know if installed plugins affect the speed of Vim when they
are not used?

I don't use many plugins, but know that 'add ons' in other programs can
slow up the workings, even when not used.

TIA

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/X/G0DJgKBzmwPYna%40trackstand.


Re: vim terminal and control c

2020-11-09 Thread meine
On Mon, Nov 09, 2020 at 07:21:03AM -0800, kingca...@gmail.com wrote:
> Hello, is there a way to send a  to a terminal in vim - a terminal
> opened with :term?

I just tried ':term' and you will get a regular terminal. Mine doesn't
accept GUI-ish commands, but that might depend on the terminal program
you use.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20201109162053.GB10548%40trackstand.


delete from- to

2020-11-03 Thread meine
I found a site 'vi/vim delete commands and examples' which has a great
explanation on how using variants of the delete command.

But what if you use relative line numbering in Vim?

':+13,$d'

This deletes from 13 lines below to the end of the file

Pointing to a line can be made relative by using a '+' (didn't try a '-'
but it should also work).

Awesome!

https://alvinalexander.com/linux/vi-vim-d

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20201103194857.GB1135%40trackstand.


Re: Status line error with latest build

2020-10-16 Thread meine
On Mon, Oct 12, 2020 at 10:42:16AM -0400, Salman Halim wrote:
> Nobody else is seeing this?

Nothing here, all things normal.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20201016210432.GA3092%40trackstand.


Re: Real laws, yet funny (For Bram's, or anyone's, collection of signature quotes)

2020-09-22 Thread meine
On Tue, Sep 22, 2020 at 09:15:02AM +0100, 'Ottavio Caruso' via vim_use wrote:
> The real issue here is how one would import the Arkansas's spell
> checker into Vim.

:setlocal spell spelllang=en_ark

for further settings and suggestions, please read

h: spell

This is why I love Vim so much, all the basic infrastructure is already
there!

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200922185417.GD8724%40trackstand.


Re: Real laws, yet funny (For Bram's, or anyone's, collection of signature quotes)

2020-09-22 Thread meine
+1



On Tue, Sep 22, 2020 at 06:40:29AM +, 'caveman رجل الكهف' via vim_use wrote:
> ‐‐‐ Original Message ‐‐‐
> On Monday, September 21, 2020 7:01 PM, Tony Mechelynck 
>  wrote:
>
> > Since March 2007, it is a real standing law in the US state of
> > Arkansas (whose name is to be pronounced as "Arkansaw"), that the
> > "possessive" (i.e. genitive) form of the state's name must be written
> > «Arkansas's» and not «Arkansas'». (I'm using French quotes to
> > emphasize the difference with the apostrophe).
>
> in case we have some arkansas officials here in
> the list, i'd like to share a suggestion for free,
> tax exempt:
>
> i think the simplest solution is to actually
> rename the state into "Arkansa".  this way they
> can the apostrophe at will however they please,
> like "Arkansa's".
>
>
> even better, rename it to just "Arkan".
>
>
> information theoretically there are like 50 states
> right?  so technically we just need:
>
> ceil(log2(50)) = 6 bits only
>
> so clearly "Arkansas", being 64 bits is way an
> over kill.
>
> while at it, let's also rename massachusetts, and
> other wrong names.
>
> --
> --
> 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/S_wNh5kW7tNNCfyLZgxzYLdHml8iHdQ6SVR3XudgRCVDpToExchAqCmc9J4XPUvWu1KRRRS7_1zfOSEMK_ZrFTBrGnNi3QucpFyCFhh28KM%3D%40protonmail.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/20200922183817.GC8724%40trackstand.


Re: Real laws, yet funny (For Bram's, or anyone's, collection of signature quotes)

2020-09-22 Thread meine
On Mon, Sep 21, 2020 at 05:01:11PM +0200, Tony Mechelynck wrote:
> Since March 2007, it is a real standing law in the US state of
> Arkansas (whose name is to be pronounced as "Arkansaw"), that the
> "possessive" (i.e. genitive) form of the state's name must be written
> «Arkansas's» and not «Arkansas'». (I'm using French quotes to
> emphasize the difference with the apostrophe).

Thanks for the reminder. Unfortunately I don't write that many on
Arkansawistic matters, but I will keep this in archive for possible
writings in future.

As there are a lot of software forks being made, probably a vimrc
release will be provided soon that resolves this AAA-matter in a more
profound way.

Cincerely,

//meine

>
> Reference: Arkansas Apostrophe Act, mentioned in ABC News [USA] on 6
> March 2007, see item 38 under
> https://en.wikipedia.org/wiki/Apostrophe#References
>
> Best regards,
> Tony.
>
> --
> --
> 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/CAJkCKXviBvC7139D4KWhvE25r_x7ExqNDvc-baMu0LYvATF7zQ%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/20200922183617.GB8724%40trackstand.


Re: Broken Q key... how can I leave vim without saving?

2020-09-07 Thread meine
> ZQ to quit without checking for changeѕ (like :q!)

Excuses (XQQ), realzed afterwards that your Q-key was broken, so this is
useless...

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200907063446.GB1065%40trackstand.


Re: Broken Q key... how can I leave vim without saving?

2020-09-07 Thread meine
On Wed, Sep 02, 2020 at 05:28:25PM +0900, Paolo Bolzoni wrote:
> Dear list,
>
> It is not a joke, my laptop keyboard is broken and seldom the keys Q,
> 4, Ins, and few others stop working.
> Is there a way to leave vim without saving without using the Q key?

ZZ to write the current file if modified and quit

ZQ to quit without checking for changeѕ (like :q!)

Note that those are capitals!

BTW, this tread shows that there are several ways to quit Vim, which
makes it even a bigger laugh when someone is trapped inside ;-)

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200907063230.GA1065%40trackstand.


Re: Meta: How to read this forum/board now that Google Groups is busted

2020-08-23 Thread meine
On Sat, Aug 22, 2020 at 08:00:52PM +0100, 'Ottavio Caruso' via vim_use wrote:
>
> Maybe time to move this mailing list away from Google Groups?

Last year we had trouble with the International Slide Rule Forum and
moved to groups.io

groups.io lets you post and read through email as well as in a browser.
The basic account is free, but is somewhat limited on server space --
see features and pricing for the details.

groups.io also has a service for payed accounts to transfer all from a
Google or Yahoo account to their servers. For the slide rule forum we
chose to have a separate archive outside groups.io for the old treads
and our huge photo archive, and use the groups.io service only for
discussion, files and a limited wiki with some links.

Just as a suggestion...

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200823101322.GA1021%40trackstand.


macro or plugin -- which one is faster?

2020-08-17 Thread meine
Hi,

Some tasks in vim are easily added with the use of a plugin, but you can
also make a custom macro to to the same job. Making a macro has the
advantage of better learning the workings of vim, and maybe not having
the other functions a plugin has that I don't use. My feeling is that I
make vim 'heavier' when having too much plugins, but I don't know if
that is true.

I'd like to hear your experience and opinions on this!

The background is that I would like to have an easy way to add an empty
line above or below a paragraph when editing a text. Using '-o' or
'o' for this requires extra steps for leaving insert mode and going back
to where I was. The plugin 'unimpaired.vim' just does the job with
'[', but has so many other things that I really don't need...

[https://vimtricks.com/p/vimtrick-add-a-line-above-or-below]

TIA

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200817102619.GA11359%40trackstand.


Re: gvim: how remove menu and toolbar, but keep original geometry

2020-08-03 Thread meine
On Mon, Aug 03, 2020 at 12:05:34PM -0700, Graham Lawrence wrote:
> xterm: cannot load font

TNX for your explanations Benjamin, Graham! Never really realized the
sometimes limited fonts and colours in a basic terminal window. Indeed
my tty CLI only has 16 colours and gvim probably has the entire palette.
The less colours and frills the better for me, keeps me concentrated on
writing.

Since I use the Danish/German accented characters only as html coded in
my text documents, getting them on screen isn't an issue for me (have to
try the LaTeX ligatures etc for that and see how it works).

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200803195831.GA36905%40trackstand.


Re: gvim: how remove menu and toolbar, but keep original geometry

2020-08-02 Thread meine
> which works as expected and gives me a gvim that looks like vim in a tty,

Just for my curiosity, why don't you use vim in a plain console or plain
terminal window? Is there any advantage in using gvim this way instead
of a plain vim session?

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200802214006.GA16626%40trackstand.


Re: Strange behavior of vim-kolor with Markdown

2020-08-01 Thread meine
On Fri, Jul 31, 2020 at 12:11:19PM +0300, Anton Shepelev wrote:
> Hello, all
>
> I have a problem with the beautiful vim-kolor plugin

Why don't you use regular settings for colorization of specific file
types? With `:filetype on' in your vimrc, colorization should be set to
the best use.

Using the molokai colorscheme in gvim on a markdown file, bold is
stone-red, italic is italicized, code (html for digraphs) is light-blue.
Works out of the box!

Indeed you may have to invest some time finding a nice colorscheme that
also fits your needs to display the markup. With some efford you also
can change a colorscheme's internals to tweak displaying at your needs.

Maybe just a simpler solution...

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200801133943.GA1565%40trackstand.


Re: substitution, transform string to list?

2020-07-17 Thread meine
On Fri, Jul 17, 2020 at 07:46:06AM -0500, Tim Chase wrote:
> On 2020-07-17 11:10, meine wrote:
> > The data to transform:
> >
> > ABBEEL;1872/253;1882/576;1886/1925;1887/603;1887/1813;1894/1444;1898/3449
> > ABBEELS;1888/1401;1889/562;1891/2371;1899/3088;1902/732;1903/1509;1904/1317
> >
> > should become:
> >
> > ABBEEL;1872/253
> > ABBEEL;1882/576
> > ABBEEL;1886/1925
> > ABBEEL;1887/603
> > ABBEEL;1887/1813
> > ABBEEL;1894/1444
> > ABBEEL;1898/3449
> > ABBEELS;1888/1401
> > ABBEELS;1889/562
> > ABBEELS;1891/2371
> > ABBEELS;1899/3088
> > ABBEELS;1902/732
> > ABBEELS;1903/1509
> > ABBEELS;1904/1317
>
> You can do it in two passes, one to prefix each item on its own line:
>
>   :%s/\%(^\([^;]*\).*\)\@<=\(;[^;]*\)/\r\1\2/g
>
> and then a second command to delete all the remnant lines (ones that
> are just the prefix which don't have a ";" in them):
>
>   :v/;/d
>
> -tim

Thanks a lot!

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200717140522.GB999%40trackstand.


substitution, transform string to list?

2020-07-17 Thread meine
Hi,

I encountered a nice question to transform some data, and are puzzled
how to do this in Vim. Preferably with the least possible keystrokes,
substitution above a macro. The complete set to transform is some 80k
lines and the first word might differ per line.

Who can help here?

The data to transform:

ABBEEL;1872/253;1882/576;1886/1925;1887/603;1887/1813;1894/1444;1898/3449
ABBEELS;1888/1401;1889/562;1891/2371;1899/3088;1902/732;1903/1509;1904/1317

should become:

ABBEEL;1872/253
ABBEEL;1882/576
ABBEEL;1886/1925
ABBEEL;1887/603
ABBEEL;1887/1813
ABBEEL;1894/1444
ABBEEL;1898/3449
ABBEELS;1888/1401
ABBEELS;1889/562
ABBEELS;1891/2371
ABBEELS;1899/3088
ABBEELS;1902/732
ABBEELS;1903/1509
ABBEELS;1904/1317

Regular substitution `:s/;/\rABBEEL;/g' only works for each line and the
first word has to be typed by hand. I tried using wildcards like `\w\+'
and `.*' but only got a messy result (source is here:
https://stackoverflow.com/questions/10336609/is-it-possible-to-use-find-and-replace-on-a-wildcard-string-in-vim)

TIA,

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200717091014.GA999%40trackstand.


Re: Changing font size in specific buffer

2020-07-06 Thread meine
On Mon, Jul 06, 2020 at 11:22:30AM +0530, Manas wrote:
> Hi folks,
>   I am using someone else's UI for terminal-based chess but
>   unfortunately the font size of UI is quite small.
>   As I am using terminal inside Vim, I was wondering if there is any way
>   to change the font size of this particular (Vim's) terminal without
>   affecting other buffers and windows in Vim.

normally the font size is set per user for all terminals in `.Xdefaults'
or alike files on *nix systems.

if you use a graphical terminal there probably is a menu item that lets
you set the font size.

use a different terminal window to play chess and set the font size at
your likings.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200706202221.GA6776%40trackstand.


Re: Input continuous stream of digraphs

2020-06-18 Thread meine
On Wed, Jun 10, 2020 at 03:35:48PM +0530, Manas wrote:
>Hi guys, I want to know if it is possible to input digraphs
>continuously.
>
>For example, when writing some math related assignment, often I have to
>write many symbols which I do using digraphs. But using  every
>time seems tedious. Is there a way I can make  (or anything else)
>work for infinite digraphs, until I manually end it.

Use LaTeX for writing math stuff, or use a logic combination of regular
characters and substitute them after writing. you could also use aliases
for direct substitution.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200618132811.GD1820%40trackstand.


Re: Usage of | character in digraphs

2020-05-27 Thread meine
On Wed, May 27, 2020 at 09:31:29PM +0530, Manas wrote:
>Hi folks, I want to setup a few more digraphs according to my need. But
>while defining those I am running into error.
>
>For example, I want to add (symbol for natural numbers set) as N| (N
>followed by the pipe character) but when defining the digraph as
>
>: digraphs N| 8469
>
>it is throwing E474.
>
>Can I not use the pipe character while defining digraphs?

maybe this page is of help, it uses a different digraph:

https://mullikine.github.io/posts/adding-new-digraphs-to-vim-and-evil/

however, it doesn't answer your question whether a pipe character is
allowed in defining a digraph...

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200527162759.GC1915%40trackstand.


Re: Mouse not working last 20% of screen

2020-03-16 Thread meine
On Mon, Mar 16, 2020 at 04:09:55PM +, Kennedy, Marcus A. wrote:
>
> I cannot use the mouse when it is in the last 20% of the screen

I don't want to be a nuisance, but the whole idea of Vim is that you
only use the keyboard, because it is faster and more precise.

Admit it takes some time to re-train using your computer, but believe
me: using just Vim keystrokes is the best thing in editing.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316183721.GC31807%40trackstand.


Re: Why must I be the owner of a file I???m editing in order for persistent undo to work?

2020-01-25 Thread meine
On Sun, Jan 19, 2020 at 08:11:32AM -0800, DwigtArmyOfChampions wrote:
> I???m using Vim 7.4. I can???t see my old changes on a file because I???m not 
> the owner of the file. Why does this requirement exist and there a way to 
> work around it?

in Vim, the persistent undo and with it all changes to a file are
personal setting. the information is AFAIK not stored in the file
itself. when the ownership of the file changed from you to someone else,
the meta information of that file probably changed as well.

did you try to make you owner of the file, if that resolves the issue? I
don't know if this can be done in Vim, but any file manager will make it
possible.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200125115358.GA4951%40trackstand.


Re: Best way to launch a URL from within VIM

2019-09-27 Thread meine
On Fri, Sep 27, 2019 at 06:06:10AM +, 'J S' via vim_use wrote:
> Vim 7.something under (MS) Windows 7.
>
> I want to do the equivalent of:
>
> :!start http://something

maybe this works when you specify the right program to launch the URL,
eg. with ':!lynx http://something', provided you installed lynx or any
other browser.

vim has a feature that resembles this: by hitting 'gf' over a filename,
vim opens the file under the cursor.

but...

since vim is a _text editor_, browsing websites isn't a feature I
would expect. the better way IMHO is to launch a second terminal or
window and use a browser to open the URL there, copy content there and
get back to vim. certainly there are other environments that provide the
functionality you describe...

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190927063850.GA11466%40trackstand.


Re: Formatting inconsistencies between vim and other text editors

2019-09-24 Thread meine
On Wed, Sep 18, 2019 at 06:23:43PM +0100, 'Ottavio Caruso' via vim_use wrote:
> I have a heavily formatted resume in pdf that I want to make as
> machine-readable as possible yet decently  readable by a human.

My strategy on this is to get all of your CV in vim, get rid of all the
external makeup code (both you did already) and then,

rearrange all parts you want to keep in vim in the most clean posible way
-- basically restructuring your text in plain text instead.

a very good way to do so is to use a basic markup language like markdown
(the daringball version and not its derivates). that way you can have a
readable and when necessary exportable version of your CV.

for maintenance your CV is kept clean and straigtforward to edit.

on a higher level you could use LaTeX markup and codings instead of
markdown, but then it could be easier to start exporting the original
GUI CV to LaTeX and then edit and do maintenance with vim.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190924172135.GB936%40trackstand.


Re: edit several files

2019-07-06 Thread meine
On Sat, Jul 06, 2019 at 12:04:20PM +0200, Mathieu Roux wrote:
> Thank you very much.

:-)

> Indeed, i don't know how i can do :-^
> I use a french keyword. Is ^ the "hat" caractère which can be top of
> letters: âêî???

yes, it is the `caret'

` 9' should give a ^ on an azerty keyboard

on querty keyboards it is ` 6'

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190706104847.GC929%40trackstand.
For more options, visit https://groups.google.com/d/optout.


Re: edit several files

2019-07-06 Thread meine
On Sat, Jul 06, 2019 at 10:44:26AM +0200, Mathieu Roux wrote:
> Ah yes, that is right.
> Thank you very much.
>
> In fact, i want to edit several files with vim, say titi and toto.
> And then, i want to close titi and not toto, so that i can open titi in
> another terminal. In fact, if i try to work with titi in another
> terminal (with vi), it is said:
>
>
> "E325: ATTENTION
> Trouvé un fichier d'échange nommé ".titi.swp"
>   propriété de : mdaté : Sat Jul  6 10:43:30 2019"
>
> because it is already open...

when you open a second file with `e: ', vim opens a new buffer
with the file in it.

you can list te opened files with `:ls', the file marked with % is de
one that is visible. to switch between files you can hit `:bnext' or
-^ to toggle between files. if ` b' is set in your vimrc
(don't know, maybe it is default) you can see the list and switch by
choosing the other file.

when you want to open a file for a second time in another terminal
window, it warns you that the file is already opened -- the .swp
swap-file. editing a file that is already being edited can corrupt your
content. with `:bd' you can close a buffer the right way and the .swp
file belonging to it will be destroyed automatically.

basically there is no really a need to open a second terminal window
with a new instance of vim. keeping all together and switching buffers
permits copy-paste etc between files in a much easier way.

seeing two different files in one terminal window can be done with the
`:split' command

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190706091847.GB929%40trackstand.
For more options, visit https://groups.google.com/d/optout.


Re: Vim terminal syntax highlights

2019-06-02 Thread meine
On Sun, Jun 02, 2019 at 01:18:35AM -0700, Tatenda Biti wrote:
> Might be a silly question. But why doesn't vim's terminal on windows 10 have 
> syntax highlighting like neovim

it probably depends on the colorscheme you use (what and how your syntax
is displayed) and on a line in your .vimrc: `syntax enable'

see also `:help syntax' for further instructions on the use and
possibilities.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190602105953.GB931%40trackstand.
For more options, visit https://groups.google.com/d/optout.


Re: Is it authentic to download the AnsiEsc.vim plugin and install in server local vim area?

2019-05-28 Thread meine
> My doubt is can I use the AnsiEsc plugin without adding/sourcing it in .vimrc 
> file?
> Please suggest me a solution how to see colored display in vim too.I have 
> attached 2 snapshots for reference too.

I don't know what this plugin is about to do, but probably you could
find out what part of the text or syntax needs to be coloured and change
that part in your vim colorscheme.

it takes some time to find out, but IMHO works in a more robust manner.

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190528165138.GC10458%40trackstand.
For more options, visit https://groups.google.com/d/optout.


Re: Trending email signature

2019-05-08 Thread meine
On Fri, May 03, 2019 at 07:50:16AM -0500, Christos Hayward wrote:
>There is a striking new email signature trending among new Vim users.
>An increasing number of emails have now been signed:
>
>:w
>
>:wq
>
>:wq!
>
>ZZ
>
>do a barrel roll



It _could_ be a mistake forgetting to hit  though ;-)

//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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190508194141.GB958%40trackstand.
For more options, visit https://groups.google.com/d/optout.


Re: colorscheme 16-bit

2019-04-20 Thread meine
On Fri, Apr 19, 2019 at 08:52:29PM +0200, meine wrote:
> on how to adapt a vim colorscheme to 16-bits color

Thank all for your replies and reading!

@Salman: you have an interesting option to keep up with developments!

@Frank: TNX for the nickel! My main box has a Nvidia card and I chose
not to use it and stick with the basic `sh' terminal in FreeBSD 12.
Tried the `fish' shell but that didn't give me extra colors, so I'll
have to stick with the basic 16-bits of colors...

@Tony: TNX for your extensive reply! IMHO vim is not only for rescueing
your system. I preferrably use vim in a tty console, because working in
that environment skips all the nuisance and distraction my X11
environment has -- no temptation to get a quick view of mastodon,
twitter or the headlines. When in GUI, I still prefer using vim in an xterm
window, but when I double-click a file in the XFE file manager gvim does
the job.

Have a nice Easter Weekend,

BFN

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


colorscheme 16-bit

2019-04-19 Thread meine
Hi,

There are lot of great Vim colorschemes out there, but beware to use
one in a plain tty console -- it looks like nothing. Recently I adopted
switching relative and absolute line numbers, and that is where coloring
is important. In console most of us probably use a more basic
colorscheme, avoiding all the soft focus and tones that won't
display anyway.

Although most colorschemes in eg. vimcolors.org have a button to select
`Term' savvy schemes, almost all of them are 256 colors and not the 8 or
max 16 colors you have in a decent tty console. `Term' isn't the same as
a plain console without GUI.

This afternoon I did the following (to end frustration ;-):

1. download the colorscheme you like most, and put it in ~/.vim/colors/
Open the file in your preferred editor, and use it with `:color '

2. look for the lines with the parts that most annoy you in console. For
me it was LineNr, Comment and CursorLineNr. The first two where too dark
and the last one I wanted yellow instead of white (nighted.vim
scheme);

3. change the value of `ctermfg' to a 16-bit value that actually works.
Leave the rest that is fine; Search the Net for a `256colors2.pl' Perl
file that gives your console color numbers (top row 0-7, bottom row
8-15);

4. save (as) the changed colorscheme under the same name with eg. `_16b' on
the end to mark your changes;

5. test your adapted colorscheme with `:color _16b' and
evaluate your changes. Don't forget to change the naming of the
colorscheme in the top lines of the _16b.vim file: `let
g:colors_name = '. This is improtant for proper
working in your `vimrc';

6. if it works, just add your `_16b' scheme to your .vimrc.

For me it works!

Happy Easter Weekend!

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Dead keys doesn't work in a terminal window in gvim

2019-04-12 Thread meine
On Wed, Apr 10, 2019 at 02:51:45PM -0700, andalou wrote:
> I'm using gvim 8.1.1140 on Windows 7 with US-International layout
> keyboard.
>
> Normally, when I use the command prompt cmd.exe, with code page 1252,
> and press the ' key (dead key) and the "a" key I get "á", but on a
> terminal window in gvim I get 'a.
> The same happens with the keys "^" and "a". I should get "â", but I get
> ^a.

it depends on how the command prompt and terminal is activated. some
terminals don't display special characters, even when you set the
character set to it. probably neovim does it differently from cmd.exe
and gvim.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin for toggeling line numbers

2019-04-10 Thread meine
> >vimawsome.com has two variants: `numbers.vim' and `vim-numbertoggle'.
>
> I have number and relativenumber set by default, and I use Pope's 
> vim-unimpaired (https://github.com/tpope/vim-unimpaired) for handy toggling 
> of common settings, including these.

Thanks @Paul for your suggestions and code!

using the one and the other to find out my preferred solution, I noticed
that goyo.vim and switching relative (or better 'hybrid') numbers can cause 
cluttered output on the screen.

see eg. https://github.com/junegunn/goyo.vim/issues/42 and other issues.

a regular console makes quite a mess in goyo, putting text on the empty
parts of the screen to the left and right, making navigation and knowing
where the cursor is problematic;

the same is in xterm in a GUI environment

in gvim the output is clean

probably I'll have to make settings more specific to the environments I
use, found some remarks of the maker of goyo on using GoyoEnter and
GoyoLeave with `set:  in .vimrc

I'll just have to find out, preferrably for the console and xterm, as
gvim is not my favourite vim-way.

open for suggestions...

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin for toggeling line numbers

2019-04-07 Thread meine
On Sun, Apr 07, 2019 at 10:40:44PM +1000, Erik Christiansen wrote:
> On 07.04.19 13:51, meine wrote:
> > I found a site where a vim plugin was used for relative line numbering
> > and I want to give it a try. relative line numbers make it easier to
> > navigate in normal mode by just using `3j' instead of `256G'. the less
> > keystrokes the better!
>
> No experience with plugins, but just this in .vimrc does it for me:
>
> noremap  :call Rnu_toggle()" Toggle relative line numbering.
> "
> " Toggle relative line numbering.
> function! Rnu_toggle()
> if  == 1
>  set nornu
>   else
>  set rnu
>   endif
> endfun

This function works like a charm!

I also found andother solution in `Mastering Vim Quickly',  p. 118 to
have relative numbers in Normal mode and absolute numbers in Insert.

Add to your .vimrc

set number
set relativenumber

augroup toggle_relative_number
autocmd InsertEnter * :setlocal norelativenumber
autocmd InsertLeave * :setlocal relativenumber

This way you only use functions that are already aboard in default
Vim...

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin for toggeling line numbers

2019-04-07 Thread meine
On Sun, Apr 07, 2019 at 10:40:44PM +1000, Erik Christiansen wrote:
>
> No experience with plugins, but just this in .vimrc does it for me:
>
> noremap  :call Rnu_toggle()" Toggle relative line numbering.
> "
> " Toggle relative line numbering.
> function! Rnu_toggle()
> if  == 1
>  set nornu
>   else
>  set rnu
>   endif
> endfun

hmm, this looks like an even better solution! I don't know of any speed
differences between a function in .vimrc and a plugin, but I somehow
prefer less extra frills.

I'll try this one, Erik -- TNX

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


plugin for toggeling line numbers

2019-04-07 Thread meine
hi,

I found a site where a vim plugin was used for relative line numbering
and I want to give it a try. relative line numbers make it easier to
navigate in normal mode by just using `3j' instead of `256G'. the less
keystrokes the better!

vimawsome.com has two variants: `numbers.vim' and `vim-numbertoggle'.

from the description both work the same and I installed `numbers.vim'.
this one even shows relative line numbers in mutt (and vim as editor)
while browsing the email in normal mode -- nice!

does anybody have experience with both of them? I'd be curious on your
opinions! maybe there is a third one that is niftier, I'd like to know.

TIA

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Font size change

2019-03-19 Thread meine
> > > I am currently trying to change the font size of files being viewed using
> > > vim from the default ( 9) setting, can someone tell me where this is
> > > defined so I can up it to size 10/11 or 12.

in a graphical environment you can set the font and its size in your
.vimrc with `set guifont=Monospace\ 10` for Monospace size 10. it might
conflict or being overruled by the settings of your terminal emulator en
properly set in (eg.) .Xdefaults on BSD and Linux machines. otherwise
look for the font settings of your emulator -- probably right-click to
get a menu where you can change the font and its size.

in console it is set in a global manner, /etc/rc.conf in BSD.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: termguicolors and xterm

2019-03-04 Thread meine
On Mon, Mar 04, 2019 at 04:06:19AM -0800, Josh Holland wrote:
> On Saturday, 19 January 2019 22:43:30 UTC, Chris Jones  wrote:
> > Has anyone been able to get the 'termguicolors' option to work on xterm
> > or does xterm altogether lack the capability?

I don't know if it works for you and I don't have any experience with
'termguicolors' but following lines are part of my vimrc:

43 if has('gui_running')
44 colorscheme molokai_dark
45 set guifont=Monospace\ 10
46 set columns=85 lines=30
47 elseif has('x11')
48 colorscheme molokai_dark
49 set guifont=Monospace\ 10
50 "   set columns=85 lines=30
51 else
52 colorscheme evening
53 set t_Co=256
54 endif
   
I use both the console and the xterm terminal emulator. Since xterm has
a lot more colors than the console, I use the above do trigger the right
colorscheme for that environment. The top 'if/elseif' part looks double
as x11 and GUI are the same for the user of a system. Somehow I noticed
differences eg. between different terminal emulators.

I hope you can use this to resolve your problem on coloring vim and
syntax.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Colorscheme vanishes after edit

2019-02-24 Thread meine
On Sat, Feb 23, 2019 at 07:28:58PM -0800, Ben Fritz wrote:
> Try increasing the 'redrawtime' option.
> 
> Just a wild guess though because I've been hitting that a lot on my old 
> computer recently, so it's fresh on my mind. It likely won't work.

Another thing I encountered with the same problem is to look for
certain characters that are in your edited and/or pasted text. backticks
(`) or missing paired parenthesis and braces can mess up the coloring of
your text or stop it altogether. Just look from what point proper coloring 
stops, test by adding 'syntax coloring' triggers, to find the disturbing 
beast.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: mksession restore just deleted buffer

2019-02-16 Thread meine
> Nothing complicated,
> 
> your advise is coded in the function! geometry#MkSession() 
>   silent! execute 'mks! '.g:geometry#sessionfile 
> 
> And this function is called just before leaving Vim (au VimLeavePre * call 
> geometry#SaveGeometry())

Merci!

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Feature/plugin dependency checks in plugins

2019-02-16 Thread meine
On Sat, Feb 16, 2019 at 09:54:01AM +0100, BPJ wrote:
> What is the best practice when a plugin needs a minimum version of 
> Vim with certain features, or on some other plugin? 

several times a week I run an update of all software on my machines, 
and therefor I always use the most recent version of Vim avaliable.

together with a minimal use of plugins ---in fact I only use Goyo---
there aren't any compatibility problems.

regular updates are a good security and performance habit in any way, so
you win on both edges...

I must confess that updates and upgrades are very easy on my FreeBSD
boxes.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: mksession restore just deleted buffer

2019-02-16 Thread meine
On Fri, Feb 15, 2019 at 08:57:52AM -0800, nivaem...@gmail.com wrote:
> Le vendredi 15 février 2019 11:57:05 UTC+1, meine a écrit :
> > On Thu, Feb 14, 2019 at 01:31:26PM -0800, nivaem...@gmail.com wrote:
> > > I have two buffers in buffers' list and after buffer deleting the second 
> > > one, restarting vim, it is always in the buffers's list.
> > > 
> > > I don't understand why it appears again.
> > 
> > You have to update the vim session you made by using `:mks!`
> > 
> > //meine
> 
> It's done via these :
> 
> 
> if has('autocmd')



I'm not a coder, so I don't see the details of how you do this,

but isn't it a rather complicated way instead of a built-in vim
function?

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: mksession restore just deleted buffer

2019-02-15 Thread meine
On Thu, Feb 14, 2019 at 01:31:26PM -0800, nivaem...@gmail.com wrote:
> I have two buffers in buffers' list and after buffer deleting the second one, 
> restarting vim, it is always in the buffers's list.
> 
> I don't understand why it appears again.

You have to update the vim session you made by using `:mks!`

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Evaluating the cost to type something in vim

2019-01-25 Thread meine
On Tue, Jan 22, 2019 at 02:20:50PM -0600, Peng Yu wrote:
> Is there a tool to evaluate the least cost to type something in vim as
> accurately as possible? Thanks.

'cost' best can be measured with two variables: time and
keystrokes/mouse distance. for both there must be software to keep
record of typing time, the number of keystrokes and the distance and
number of clicks with a mouse.

I don't know of any comparisons that quantify the vim statement 'editing
with the speed of thought', but you could do a test with a few
writers/programmers to make quasi accurate, but comparable measurements.
just ask people to reproduce the same text/code with their favourite editor,
make measurements and then compare.

I think it is important to let your testers work with _their_ favourite
tool. that way you make use of their high(er) level skills, which should
give more accurate time/keystroke measurements on the long run. it is
not realistic to ask a Word user to try the same text in Vim, or ask a
profound Vimmer to use a GUI editor -- both get lost (the Word user will
never quit ;-)

will be a nice experiment, maybe you can ask more people over the net to
participate and make your 'n' bigger.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: repeat insert characters until end of line or getting the last col in a buffer?

2018-12-29 Thread meine
> Is there a way to insert a repeat of characters to the width of a buffer?
> 
> That is, I can repeat a series of characters, i.e. 12i- inserts 12 
> hyphens [1]

bcause vim is a text _editor_, implementing layout and markup elements
can best be used from some markup language of your choice. because you
only edit text, layout is of no concern at that level (by 'vim
philosophy' AFAIK it is even strictly separated, just as normal and
insert mode). the number of columns in your vim buffer is just for 
navigation when editing.

examples that you could try:

* markdown -- can produce a horizontal ruler by using three or more
hyphens, asterisks or underscores: 
https://daringfireball.net/projects/markdown/syntax#hr

* LaTeX -- has some elements to provide horizontal rulers and specify
the width of it: 
https://tex.stackexchange.com/questions/371286/draw-a-horizontal-line-in-latex

* HTML -- `' provides a horizontal line between the page borders,
width, height and color can be set. the  tag is discontinued in
HTML 5, but still might work: https://www.w3schools.com/tags/tag_hr.asp

I use vim to make and edit text and use `pandoc' to translate everything
into a pdf file or different format. pandoc nicely makes a horizontal
ruler between the page margins, based on just `-' in my vim .md
file. see: https://pandoc.org/MANUAL.html

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Question about color settings

2018-12-27 Thread meine
>I am using MS Windows both in GUI and command prompt mode. What kind of
>terminal is set when IĀ
>start VIM from a DOS command prompt?

you could add some lines to your .vimrc to distinguish between GUI en
CLI environment but use the same settings like line numbering in both
envoronments. the blocks can be extended as you like. it is possible
that naming the environment (`x11' for using the X window system) has to
be called differently on a Windows box. I don't have any experience with
that.

below is the part I use:

if has('gui_running')
colorscheme molokai_dark
set guifont=Monospace\ 10
set columns=85 lines=30
elseif has('x11')
colorscheme molokai_dark
set guifont=Monospace\ 10
"   set columns=85 lines=30
else
colorscheme evening
set t_Co=256
endif

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: from the old vi faq - squeezing blank/empty lines

2018-10-06 Thread meine
>  * 2018-09-30 Eli the Bearded:
>  > :v/./$s/$/./|'';/./-1j|$d
>  > Replaces multiple blank lines with just one blank line.
>  * 2018-09-30 Mikolaj Machowski <[2]mikm...@gmail.com>:
>  > What's wrong with: :%s/\n\n\+/\r\r/
>  * Tony Mechelynck <[3]antoine.mechely...@gmail.com> [2018-10-01
>  15:06]:
>  > or with :%s/^\_s*\n/\r
>  > Variation: the same, plus suppress end-of-line whitespace:
>  > :%s/\_s*\n/\r
>  > (both of these use the fact that * means "as many as possible")
>  i always used this one:
>  Â  :g/^$/,/./-j

nice to see that vim makes it possible to do the same thing in different
ways

nice to see here the possibilities shared, so that we can learn from
eachother

TNX

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: syntax highlighting stops somewhere in a file -- why?

2018-10-02 Thread meine
> the vim syntax coloring works on the extensive md-set, where other
> characters can be used as formatting tag. using this extensive set
> brings more formatting options as well.

should have RTFM completely, the backticks are explained on the
daringfireball.

just found the ~~ as striketrough marker as a new one.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: syntax highlighting stops somewhere in a file -- why?

2018-10-02 Thread meine
> Vim help doesn't explain the syntax of every kind of file you might
> edit with it. IIUC, by putting text between grave accents in Markdown
> `like this` you make it appear in monospace: for instance in Github
> comments about Vim problems, this marks inline stuff that would be
> typed literally in Vim. (To make a block stand out you put three such
> characters above and below it.)
> 
> OTOH manpages often use a grave accent as an opening quote and an
> apostrophe as a closing quote, which is one place where unpaired, or
> differently paired, such characters might be found (and unwittingly
> got from, by copying and pasting).

this solved some previous problems with my markdown files as well, when 
pandoc printed some lines in monotype -- now I know the reason.

I only use the basic set of markdown as described on the daringfireball
site. there code is tagged by four spaces, one tab or a  tag. 

the vim syntax coloring works on the extensive md-set, where other
characters can be used as formatting tag. using this extensive set
brings more formatting options as well.

-- a bit OT, but probably useful for other vimmers here...

cheers,

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: syntax highlighting stops somewhere in a file -- why?

2018-10-02 Thread meine
On Mon, Oct 1, 2018, Tony Mechelynck wrote:

> try syn-sync

I read the suggested documentation and tried 

:set syntax fromstart

, but it made no difference for a correct syncax coloring.

On Mon, Oct 01, 2018 at 05:39:46PM +0200, Bram Moolenaar wrote:
 
> Have you tried changing the value for 'redrawtime'?  The syntax
> highlighting may just be too slow.

I put

set redrawtime=1

in my vimrc, but it had no effect.

The file in question is of limited length, only 36 lines and 995 words.
Therefore I suspected that the correct coloring being in sync shouldn't
be the real problem, but thanks to your reactions I was able to exclude
this.

I am a relatively novice in vim and don't do much technical stuff.
Writing and editing files I only do on basic (markdown) writing and
editing pdftotext files and text copies of webpages -- both containing
lots of digraphs. Those 'leftovers' from different text formats
sometimes cause trouble in the expected coloring as is my observation.

In the file at hand I looked for unusual characters and tested the
change of coloring by copying a small block of '[text](link)', that
displayed proper coloring in the beginning of the file.

Then I found 'the Beast', it was a solitary ` mark (Digr '!).

It was the only one used on that text-saved webpage. Secondary testing 
by putting a ` more to the beginning of the file 'switched off' syntax 
coloring.

I couldn't find any difference in the meaning of ` and ' in vim help,
probably it has something to do with a non-closed tag.

Last and least is that especially in tty it is hard to see the diffence 
between the two accents, making it harder to find the Beast anyway...

TNX again for your thoughts!

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


syntax highlighting stops somewhere in a file -- why?

2018-10-01 Thread meine
Hi,

I use vim a lot with regular markdown --
see: daringfireball.net/projects/markdown

in several files syntax coloring suddenly stops, and I can't find why.
this happens with files while typing, as well as in files while editing
afterwards.

for example some markdown pieces of text:

[text](http://link.to/highlight_text) which makes the text clickable
in a PDF after converting the markdown file. the word between [] is in a
different color;

 HTML codes used in markdown to provide accents etc, used a lot in
Dutch language. the code is in a different color.

my vimrc has two lines activating syntax coloring:

syntax on
syntax enable

because at least in the beginning of each file markdown syntax coloring
works fine, my 'evening' colorscheme can't be the problem.

I hope anyone can give me a clue to make syntax coloring work for the
entire file!

TIA

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use vim to write a aligned plain text (txt) file as the vim help files?

2018-09-23 Thread meine
On Sat, Sep 22, 2018 at 12:02:51PM -0700, Hausen Schaff wrote:
> vim help files are in plain text format. They'are under /vim/vim80/doc.Lots 
> of  characters are used to align the contents.
> 
> Interestingly, I can't find a good way to write such  aligned texts by 
> vim. Every plugin use space to align words. Some bring this issue up on these 
> project homes, and no solution is provided.
> 
> I'm curious how the vim developers write the help documents?

I didn't look at the documentation and help files in detail, but they
have a relatively narrow width, not too many columns width. also they
have a fixed format, linu by line.

to reproduce this you could easily use tabs or spaces to align text.
when you also use a narrow width for your document, there will be no
need for the text to rearrange itself over the full width of your screen
or window, text is formatted line by line through a sentence.

> Plugins

IMHO vim is perfect the way it is and I'm not using any plugins for this
kind of regular tasks --- that besides the fun of learning vim's
capabilities.

for the rest I mainly use vim to make text with basic markdown that I 
process with pandoc to make nice pdf's, and pandoc does the clean 
outlining of markedup text.

my solution would be to set the right tabwith or tabstops at the needed
position of the rightmost column in vim and/or use spaces
to make a column layout. find out how to automate with basic vim, best
is to make your document and do the formatting afterwards (vim-way:
separating writing and editing)

when you want to make such files to publish as pdf or whatever
environment, just use basic
[markdown](http://daringfireball.net/projects/markdown/) as a markup
language and use pandoc to convert it to your needed environment.
markdown has some great ways to produce a good layout.

in vim I use markdown to make nice aligned lists with

* text after the bullet goes here

text in a separate paragraph that belongs to the bullet above is
indended in vim with '>>'

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I delete from the end of the line through space (up to) the first word?

2018-09-16 Thread meine
On Tue, Sep 04, 2018 at 04:24:00PM -0600, 'Grant Taylor' via vim_use wrote:
> How do I delete from the end of the line (where the cursor is at) 
> through the space after the first word?
> 
> example.net <-- actually important
> different.example.com <-- not actually important

in a macro: 0WhD
j.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Opening remote file with scp and netrw on Windows 7

2018-08-29 Thread meine
On Tue, Aug 28, 2018 at 09:22:04PM +0200, Oliver Graute wrote:
> Hello list,
> 
> I tried to open a remote file in Vim with this command:
> 
> :e scp://root@192.168.1.229://home/root/output.log
> 
> on Linux this is working fine. But on Windows 7 just a command line
> window is opening with this Error message:
> 
> C:\Windows\system32\cmd.exe -c "pscp -q -P  
> "root@192.168.1.229:/home/root/output.log" 
> "C:\Users\OGR\AppData\Local\Temp\VIA3B61.log""
> 
> The command "oot" is either misspelled or could not be found.
> shell returned 1
> 
> Hit any key to close this window...
> 
> I'am using vim 8.0 with netrw v156
> Some hints howto fix this?

I guess this has nothing to do with vim, but is in the way Windows
translates and interprets your scp command.

when using (g)vim in Windows, just use the proper command for that
environment ('pscp' ?), so it doesn't need to be translated.

the "oot" error output indeed is somewhat strange...

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to begin using Vim

2018-08-25 Thread meine
> I suggest: learn how to switch to normal/insert mode. And that's all. When 
> you're tired of something, or if you miss a feature, learn the solution.

excellent suggestion, and worked well for me learning Vim!

after the basics learnt from vimtutor, just start working with vim and
leave other editors to force yourself learning

you'll encounter situations where you ask yourself if there is a 'vim
solution' --- search for it and use it! (just use a browser and mouse,
be nice to yourself)

try to learn one, maybe two new vim commands a week

train your curiosity and skills eg. by cleaning up a pdf-to-text
converted file. this is a nice way to excersise find, substitute, funny
characters. take a file that you need to use for other purposes to get
some _drive_

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Formatting text and using the convention of putting 2 spaces after a period

2018-08-06 Thread meine
On Mon, Aug 06, 2018 at 11:40:01AM +0100, David Woodfall wrote:
> I've noticed that when I select a block of text (written English
> prose, not code) and press gq to reformat it, vim will change some of
> the spaces after a period into two spaces, as is the convention among
> some typists.
> 
> Is this intended, and can it be changed?

it could be to enhance formatting, eg. in Markdown. markdown uses two
spaces to force a new line, like  in html.

probably there is a way to change this setting, but I don't know it.

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: hardcopy and double-spaced printing

2018-07-04 Thread meine van essen
> I would like to have hardcopy (printing) respect GUI Vim's linespace
> or some similar option in order to achieve double-spaced printing. Is
> there a way to do this?

you can use vim to generate the text file and use 'pandoc' to convert the text 
file to something publishable, like a PDF. pandoc accepts options to manage 
paper and font size and line spacing. see '$ man pandoc' or pandoc.org

pandoc seems to have a new feature where you can use a bunch of metadata to 
manage the options mentioned, see 
https://stackoverflow.com/questions/14883525/set-double-spacing-and-line-numbers-when-converting-from-markdown-to-pdf-with-pa#29643267
 and its link to the 'YAML-header'

> The current alternative is to copy the text out of Vim (MacVim) and
> paste it into Microsoft Word, and then use their double-spacing
> feature.

that way it looks a practical workaround in the beginning, but it neglects the 
basic separation between vim as the text _editor_ and any publishing tool. just 
take the learning curve using vim for creating (eg.) markdown text files and 
pandoc to handle the publishing part -- each program for it's own specialties. 
(besides AFAIK vim has no 'linespace', its just the way it's put on the screen 
most comfortable)

> I would also be willing to use some kind of Vim command-line fu or
> postscript after-processing with Unix tools, if any of this is a
> possible solution. Is there some way to pass a simple arg to the
> postscript writer?

see 'pandoc'

//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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.