Re: Locating the cursor

2015-02-10 Thread Paul
Erik Christiansen dvalin at internode.on.net writes: |On 10.02.15 04:15, Paul wrote: | I don't suppose that some kind vim-script savvy soul could suggest | how one might other windows from flashing, i.e., have only the | window with the focus flash? | | Well, if you're using gnome, then the

Re: Who maintains cobol.vim?

2015-02-10 Thread Andrew Long
On 10 Feb 2015, at 15:57, John Culleton wrote: There is an annoying error in cobol.vim when used with the traditional layout (i.e. first 6 columns reserved for a line number and all statements in upper case.) The occurrence of the IF verb causes the statement containing it to be red

Re: Who maintains cobol.vim?

2015-02-10 Thread Gary Johnson
On 2015-02-10, John Culleton wrote: In any case cobol.vim should be fixed for all users. Rather than trying to chase down the maintainer myself I thought I would ask here. Maybe there isn't a current maintainer (gloomy thought.) Tim Pope didn't respond to e-mail? His address is at the

Re: Can someone recommend a plugin to fold python long dict spanning over many lines?

2015-02-10 Thread Ben Fritz
On Monday, February 9, 2015 at 10:37:33 PM UTC-6, Bao Niu wrote: I'm looking for a plugin in that can fold something like this: config = { '/': { 'tools.db.on': True }, /UI_JS: { tools.staticdir.on: True, tools.staticdir.root:

View/edit the same file in multiple vim instances

2015-02-10 Thread Jérôme Reybert
Hello, I would like to edit the same file between multiple vim instances. I already saw http://www.vim.org/sponsor/vote_results.php #11, which would simply answer this use case. However, I would like to find a solution before this feature maybe arrive. What I want to achieve is the following:

Re: obtain current visual selection

2015-02-10 Thread Ben Fritz
On Tuesday, February 10, 2015 at 2:22:35 AM UTC-6, Enno wrote: Hello, There is a thread on StackOverflow labelled How to get visually selected text in VimScript The naive and stable approach would be let old_reg = @v normal! gvvy let raw_search = @v let @v = old_reg

Who maintains cobol.vim?

2015-02-10 Thread John Culleton
There is an annoying error in cobol.vim when used with the traditional layout (i.e. first 6 columns reserved for a line number and all statements in upper case.) The occurrence of the IF verb causes the statement containing it to be red highlighted as a syntax error. As a result I have to turn

Re: how to get the maximum foldlevel in a buffer?

2015-02-10 Thread Ben Fritz
On Monday, February 9, 2015 at 10:39:09 PM UTC-6, Bao Niu wrote: Is there a function/variable in Vim that tell you what the biggest foldlevel number is in a buffer? When I set FoldLevel I often need to try many times before it shows any effects, because the current foldlevel is way bigger

Re: Locating the cursor

2015-02-10 Thread Erik Christiansen
On 10.02.15 04:15, Paul wrote: I don't suppose that some kind vim-script savvy soul could suggest how one might other windows from flashing, i.e., have only the window with the focus flash? Well, if you're using gnome, then the simplest pointer location method is to GUI select:

obtain current visual selection

2015-02-10 Thread Enno
Hello, There is a thread on StackOverflow labelled How to get visually selected text in VimScript The naive and stable approach would be let old_reg = @v normal! gvvy let raw_search = @v let @v = old_reg return raw_search but that only works if `set nosecure`. If `set secure` then

Re: Who maintains cobol.vim?

2015-02-10 Thread John Culleton
On Tue, 10 Feb 2015 17:56:29 + Andrew Long andrew.l...@mac.com wrote: On 10 Feb 2015, at 15:57, John Culleton wrote: There is an annoying error in cobol.vim when used with the traditional layout (i.e. first 6 columns reserved for a line number and all statements in upper case.) The

Re: Can someone recommend a plugin to fold python long dict spanning over many lines?

2015-02-10 Thread Tim Chase
On 2015-02-10 09:57, Ben Fritz wrote: On Monday, February 9, 2015 at 10:37:33 PM UTC-6, Bao Niu wrote: I'm looking for a plugin in that can fold something like this: config = { '/': { 'tools.db.on': True }, /UI_JS: { tools.staticdir.on: True,

Re: View/edit the same file in multiple vim instances

2015-02-10 Thread Nathan Schwarz
I'd go with an autocommand: `au BufEnter * silent! edit!` That, of course, requires you to write changes when you leave the buffer (e.g. also through an autocommand). -Nathan -- /\ ASCII Ribbon Campaign \ / - against HTML emails X - against proprietory attachments / \

Re: Who maintains cobol.vim?

2015-02-10 Thread John Culleton
On Tue, 10 Feb 2015 10:03:21 -0800 Gary Johnson garyj...@spocom.com wrote: On 2015-02-10, John Culleton wrote: In any case cobol.vim should be fixed for all users. Rather than trying to chase down the maintainer myself I thought I would ask here. Maybe there isn't a current

Re: Locating the cursor

2015-02-10 Thread John Little
On Wednesday, February 11, 2015 at 4:48:12 AM UTC+13, Paul wrote: I'm using Cygwin's X-windows. Seems like you have an insufficiently visible cursor. In gvim I use set guicursor=n-c:hor20,v:hor25,ve:ver35,o:hor50,i-ci:ver25, \r-cr:hor35-ErrorMsg,sm:block this looks

Re: Locating the cursor

2015-02-10 Thread Paul
Paul Paul.Domaskis at gmail.com writes: Erik Christiansen dvalin at internode.on.net writes: |On 10.02.15 04:15, Paul wrote: | I don't suppose that some kind vim-script savvy soul could suggest | how one might other windows from flashing, i.e., have only the | window with the focus flash? | |

Re: Can someone recommend a plugin to fold python long dict spanning over many lines?

2015-02-10 Thread Bao Niu
No, sorry for this abrupt assertion but indentation is no good in this case. That's why there are many plugins based on expr. Folding is simply too rigid for this job. I just want to write a wrapper function to fold those long ducts. Any thoughts? On Feb 10, 2015 10:15 AM, Tim Chase

Re: Who maintains cobol.vim?

2015-02-10 Thread Andrew Long
On 10 Feb 2015, at 18:17, John Culleton wrote: On Tue, 10 Feb 2015 17:56:29 + Andrew Long andrew.l...@mac.com wrote: On 10 Feb 2015, at 15:57, John Culleton wrote: snip/ I've had problems with COBOL.vim if smarttabs are switched on, after starting a new line. The problem is that the

Re: Who maintains cobol.vim?

2015-02-10 Thread Andrew Long
On 10 Feb 2015, at 18:17, John Culleton wrote: On Tue, 10 Feb 2015 17:56:29 + Andrew Long andrew.l...@mac.com wrote: On 10 Feb 2015, at 15:57, John Culleton wrote: snip/ I've had problems with COBOL.vim if smarttabs are switched on, after starting a new line. The problem is that the