'traycerb' via vim_use | 18 Nov 03:16 2014

TabClose autocmd?

Is there anyway to emulate the function of an autocmd which would trigger on closing of a Tab?

The reason is, I'd like to have a function (maybe a plugin) to track, in order, the most-recently-used (MRU)
tabs, and maintaining that history requires reshuffling when a tab is closed.  I looked through h:
autocmd-events and though TabLeave is promising, ultimately it's insufficient because tabs can be
closed without having focus (e.g. :tabonly, or mouse).  Various file and buffer triggers/events aren't
suitable because files/buffers exist independently of tabs.  Any ideas, or is this out of reach?

-- 
--

-- 
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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Charles Campbell | 17 Nov 16:18 2014
Picon

missing characters

Hello:

I just downloaded an upgraded Starry Night Pro (v7) -- and it demanded
an upgraded .NET and ASCOM.  It also heavily uses the NVIDIA graphics card.

I run linux via VmWare, and inside linux I run gvim.

Ever since the upgrade, gvim has been dropping characters.  It gets
them, it just does not display them (ex:  :s/test/TEST  shows up as  :  
est/ EST).  I suspect Starry Night Pro has changed some setting on the
NVIDIA card.

Any suggestions on how to get gvim working properly again?

Thanks,
Chip Campbell

-- 
--

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jack Donohue | 17 Nov 14:56 2014
Picon

Slow loading in Windows 7

I have had a problem with slow loading (~ 5 seconds) in gvim on my Windows 7 computer.  I had the problem for a while, then it went away, now it's back for good apparently.

Running --startupgtime, the culprit is "GUI prepared"

000.000  000.000: --- VIM STARTING ---
000.000  000.000: Allocated generic buffers
000.000  000.000: locale set
5260.000  5260.000: GUI prepared
5261.000  001.000: clipboard setup
5261.000  000.000: window checked

This doesn't happen on my other Win 7 machine (yet?) and I have no idea what causes this.  Has anyone else had a similar problem and determined the cause?  It's so annoying that I've started using plain vim for most things on that computer.

Jack

--
--
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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Volkmann | 16 Nov 23:13 2014
Picon

cinoptions

I want to set cinoptions so the following JavaScript function gets the indentation shown.

function foo(a, b,
  c, d) {
  return (a + b) / (c + d);
}

Setting cinoptions to (1s gets me close, but the last two lines get indented by one extra shiftwidth. I want the indentation of lines 3 and 4 to be based on the beginning of the function on line 1, not the opening brace on line 2. Is this possible?

--
R. Mark Volkmann
Object Computing, Inc.

--
--
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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eric Smith | 15 Nov 20:46 2014

syntax highlighting for empty lines

Hi

How do I highlight a line with no characters (except of source a
newline one)?

The effect I want is a solid background line to divide
paragraphs.

-- 
Eric Smith

-- 
--

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

ping song | 15 Nov 18:17 2014
Picon

vim taglist: jump to local file first

this annoys me for quite a while...

I started some scripts and created some functions/procedures in it.
later when I created new script I simply borrowed these (well tested)
fucntions/procedures in new scripts, but I may modified them here and
there to get the new task done.
now I end up with multiple files, each with overlapped function definitions.

this is fine for the scripts - there is no cross reference so they all
works good.

now the issue is, I started taglist in one of the script1, and when I
want to go to definition of script1:function1, I sometime end up to to
have another script2 opened
and I was put in the postion of script2:function1 definition.

I had impression taglist/ctags always go to local file first, so I am
wondering what happened and how to fix it?

b.t.w I have vim easytags installed, so all tags were generated automatically...

-- 
--

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

Submitting a new Vim syntax file for DTS files

Hi,
   I've written a vim syntax file for DTS (device source tree) files which are common in Linux world.
I am wondering if it can become part of future vim releases. How can I explore this ?

Thanks,
Mahendra

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

Submitting a new Vim syntax file for DTS files (device tree source)

Hi,
   I've written a vim syntax file for DTS (device source tree) files which are common in Linux world.
I am wondering if it can become part of future vim releases. How can I explore this ?

Thanks,
Mahendra

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

Graham Lawrence | 15 Nov 01:02 2014
Picon

:%s//\= <at> o/gce ignores c flag in key mapping

In a key mapping I use the command ':%s//\= <at> o/gce'.

The command executes as expected except that it behaves as if the c flag were not set.  Is this flag unavailable in a key mapping, or is there some other option that needs to be set for it to work.  It works as expected at the command line.

--
Graham Lawrence

--
--
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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Henry | 15 Nov 00:18 2014

How to scroll then click in inactive window without jumping back?

All,

I normally run Gvim on Linux with two vertically split windows.
Often, I'll be editing in the first window and I want to take a
look at something off-screen in the second window, so I hover my
mouse over the second window and use the scroll wheel to look
around.  If I see something interesting in that inactive window
that I'd like to interact with, I try to click in the window and
position the cursor where I'm looking; however, the click causes
the inactive window to first scroll back to its original
position to make the original cursor visible, and only then does
the click take effect.  This can be frustrating, as I then need
to find the new location again which may be several pages away.

You can recreate the above scenario by starting Gvim with an
empty buffer, then doing:

  ; Put 500 lines of "Inactive Window" in one buffer:
  500iInactive Window<CR><ESC>

  ; Split and make an empty buffer
  <C-w><C-v>:enew<CR>

  ; Put 500 lines of "Active Window" in another buffer:
  500iActive Window<CR><ESC>

This leave the cursor on line #501 in each window.  Now
demonstrate the problem as follows:

  ; Hover mouse over "Inactive Window" and use scroll wheel
  ; to scroll back several screens toward line 1.

  ; Click in Inactive Window.

The inactive window will scroll back to put line #501 back at
the bottom of the screen, and only then the click will be
accepted.

Is there any way to prevent Gvim from scrolling the inactive
window back to the original position before accepting the click?
I've done a bunch of Googling, but I can't seem to hit upon the
right search terms to find anyone discussing this issue (though
I see many people who would like to solve the related problem of
allowing the cursor on the *active* window to go off-screen when
scrolling with the mouse wheel).

Thanks,
Michael Henry

-- 
--

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

Enno | 14 Nov 12:44 2014
Picon

history for dot operator

Is there, perhaps via a Plugin, a way to recover the second last text editing operation in normal mode ? The
dot '.' operator keeps only the last operation.

-- 
--

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


Gmane