Re: How to delete hidden .swap files (.sw?) if there are no changes?

2017-03-14 Thread Christian Brabandt
Hi L! On Di, 14 Mär 2017, L A Walsh wrote: > Paul wrote: > >You could try https://github.com/chrisbra/Recover.vim > --- >Thanks Paul, it looks like it might be "morphable" into what > I want. It currently has a bug where it defaults the action > to "Delete" when there are no diffs --

Re: 'set paste' toggles 'set ruler': why?

2017-03-14 Thread Christian Brabandt
Hi Eli! On Di, 14 Mär 2017, Eli the Bearded wrote: > Of all the things the ':set paste' setting does, only ':set noruler' > puzzles me.[*] Why should informational settings be surpressed with a > setting for input? > > Can this please, please, be changed? > > [*] Alright. The ':set

Automatically add two spaces between sentences

2017-03-14 Thread Vim the Best
When we use Vim, what's the best way to add two spaces between sentences automatically rather than manually press the space bar twice? That's prevalent in the source code comment like the following: /* * comment comment.more comment. */ Additionally by default, when we join two sentences

Re: Is there any way to update a buffer in the background?

2017-03-14 Thread Yegappan Lakshmanan
Hi, On Tue, Mar 14, 2017 at 2:41 PM, Christian Brabandt wrote: > Hi Bram! > > On Di, 14 Mär 2017, Bram Moolenaar wrote: > >> Would you need more than setline() and getline()? > > We already have getbufline() but are missing setbufline() > I submitted a patch back in 2003 to

Re: Vim maximise weirdness

2017-03-14 Thread Ken Takata
Hi, 2017/3/15 Wed 0:33:25 UTC+9 Eric Christopherson wrote: > On Tue, Mar 14, 2017 at 5:07 AM, A. S. Budden wrote: > > With the newly compiled version of vim (details below), `:simalt ~x` > > doesn't do quite what I was expecting: the window gets bigger but the > > drawn area

Re: Is there any way to update a buffer in the background?

2017-03-14 Thread Kay Z.
Hi toothpik, > if the hidden buffer you want to update was started with the --servername > argument you can send it commands using the --remote-send option > I don't think this is what I'm looking for... -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your

Re: Is there any way to update a buffer in the background?

2017-03-14 Thread Kay Z.
Hi Bram, Thanks for your reply. > I have been wondering about these "no autocommands" operations, since it > makes a cleaner interface to just manipulate the text without side > effects.  And we don't need to switch buffers/windows, which also has > lots of side effects. Can't agree more. I

Re: 'set paste' toggles 'set ruler': why?

2017-03-14 Thread h_east
Hi Elijah, 2017-3-15(Wed) 8:20:03 UTC+9 Eli the Bearded: > Of all the things the ':set paste' setting does, only ':set noruler' > puzzles me.[*] Why should informational settings be surpressed with a > setting for input? > > Can this please, please, be changed? > > [*] Alright. The ':set

Re: How to delete hidden .swap files (.sw?) if there are no changes?

2017-03-14 Thread L A Walsh
Paul wrote: You could try https://github.com/chrisbra/Recover.vim --- Thanks Paul, it looks like it might be "morphable" into what I want. It currently has a bug where it defaults the action to "Delete" when there are no diffs -- **whether or not** the file is already open in another window

'set paste' toggles 'set ruler': why?

2017-03-14 Thread Eli the Bearded
Of all the things the ':set paste' setting does, only ':set noruler' puzzles me.[*] Why should informational settings be surpressed with a setting for input? Can this please, please, be changed? [*] Alright. The ':set noshowmatch' is also puzzling, but I rarely have showmatch enabled.

Re: Is there any way to update a buffer in the background?

2017-03-14 Thread Christian Brabandt
Hi Bram! On Di, 14 Mär 2017, Bram Moolenaar wrote: > Would you need more than setline() and getline()? We already have getbufline() but are missing setbufline() Best, Christian -- Arbeit bewahrt uns vor drei großen Übeln: der Langeweile, dem Laster und der Not! -- François

Re: Is there any way to update a buffer in the background?

2017-03-14 Thread Bram Moolenaar
Kay Z wrote: On 14 March 2017 at 18:18, Kay Z. wrote: > Hmm, seems no one's interested, and the most recent discussion that I can > find on this topic goes back to 2015: > > https://github.com/neovim/neovim/issues/2750 > > There may have been little motivation to update

Re: Is there any way to update a buffer in the background?

2017-03-14 Thread tooth pik
if the hidden buffer you want to update was started with the --servername argument you can send it commands using the --remote-send option On Tue, Mar 14, 2017 at 12:18 PM, Kay Z. wrote: > Hmm, seems no one's interested, and the most recent discussion that I can > find on this

Can I include /range/ in substitute pattern?

2017-03-14 Thread Pablo Contreras
Hi All, I'm wondering if you gentlemen will be able to help me here. Let's say I have = john[<--current-line] sells kites = if I want to add bikes to John's sales I do :/sells kites/s//\0 and bikes/ which is great because it saves me typing 'sells kites' in the pattern the

Re: Is there any way to update a buffer in the background?

2017-03-14 Thread Kay Z.
Hmm, seems no one's interested, and the most recent discussion that I can find on this topic goes back to 2015: https://github.com/neovim/neovim/issues/2750 There may have been little motivation to update buffers in the background, but with the async channel APIs in place, I think we need

Re: Vim maximise weirdness

2017-03-14 Thread Christian Brabandt
Hi Eric! On Di, 14 Mär 2017, Eric Christopherson wrote: > I can't remember exactly where I got my Vim binary, but the top of its :ver > command shows: > >     VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb  1 2017 23:55:18) >     MS-Windows 32-bit GUI version with OLE support >     Included

Re: Vim maximise weirdness

2017-03-14 Thread Eric Christopherson
On Tue, Mar 14, 2017 at 5:07 AM, A. S. Budden wrote: > With the newly compiled version of vim (details below), `:simalt ~x` > doesn't do quite what I was expecting: the window gets bigger but the > drawn area doesn't - https://snag.gy/3VfqUe.jpg > How interesting -- for me,

Re: How to delete hidden .swap files (.sw?) if there are no changes?

2017-03-14 Thread Paul
You could try https://github.com/chrisbra/Recover.vim -- -- 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

Re: isolate vim environment for plugin development

2017-03-14 Thread Paul
I found the best way is to simply move away the ~/.vim/ directory. You could also try using a Docker approach… -- -- 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

Re: Minimum tabstop to get all columns aligned

2017-03-14 Thread Ethan Hereth
Have you seen this? https://github.com/chrisbra/csv.vim I use it occasionally and I like it. Maybe it'll help you? Sorry if this email is formatted incorrectly, I'm sending from my phone as I'm out of the office... On Tue, Mar 14, 2017 at 7:31 AM Tony Mechelynck < antoine.mechely...@gmail.com>

Re: Vim maximise weirdness

2017-03-14 Thread A. S. Budden
On 14 March 2017 at 10:19, Christian Brabandt wrote: > Hi A.! > > On Di, 14 Mär 2017, A. S. Budden wrote: > >> This is probably one of the most minor problems I've ever had with >> vim, but I thought I'd report it in case anyone understands what's >> going on here. >> >> I've

Re: Minimum tabstop to get all columns aligned

2017-03-14 Thread Tony Mechelynck
To get all columns aligned, you must of course know the width of the widest column. If that can be known from the first line, it should be possible to set 'tabstop' accordingly, depending on that first line's format (in particular, is it a comma-separated list of column widths, or a "format line"

Minimum tabstop to get all columns aligned

2017-03-14 Thread Paolo Bolzoni
Dear list, Lately I often works with cvs-like files where columns are separed by tabs and the first line contains the columns description. To move around those files I setup "nowrap" and "set tabstop=40" (title can be long) and it works fairly well. However, I was wondering is there a way to

Re: Vim maximise weirdness

2017-03-14 Thread Christian Brabandt
Hi A.! On Di, 14 Mär 2017, A. S. Budden wrote: > This is probably one of the most minor problems I've ever had with > vim, but I thought I'd report it in case anyone understands what's > going on here. > > I've just (finally) decided to upgrade to Vim 8. I initially > installed the Windows

Vim maximise weirdness

2017-03-14 Thread A. S. Budden
Hi all, This is probably one of the most minor problems I've ever had with vim, but I thought I'd report it in case anyone understands what's going on here. I've just (finally) decided to upgrade to Vim 8. I initially installed the Windows executable version from