Re: Vertical split changing GVim application window position

2012-06-21 Thread geoffrey . wood
On Wednesday, 20 June 2012 13:46:26 UTC+1, Yukihiro Nakadaira wrote: On Tue, Jun 19, 2012 at 8:24 PM, geoffrey.w...@thomsonreuters.com wrote: When switching the display to show a vertical split (e.g. use :vsplit, or switch to a tab that's already split), if the GVim Application window is

Re: Vim splits resize switching between dual monitors

2012-06-21 Thread geoffrey . wood
On Tuesday, 1 November 2011 14:59:22 UTC, lessthanideal wrote: Using Vim 7.3 patches 1 - 333 (the Vim without Cream version) on XP SP3. I have a dual-monitor system ... ... pressing Ctrl-F12 moves the selected window between the two monitors. ... ... The problem is that sometimes, doing

Re: Determining which plugin is catching a command?

2012-06-21 Thread steen
Thanks for the great info guys. I have Done Something Weird and now cannot reproduce the error I was having. But I have seen related things happen sporadically in the past, so this will definitely come in handy debugging in the future. Really, I mostly just need to do a major purge of unneeded

Slowdown / lockups reading helpfiles

2012-06-21 Thread steen
I'm having a rather odd issue and am having no luck googling. Whenever I try to load a helpfile, the response time is _extremely_ slow, sometimes to the point of locking my window for upwards of 10 seconds. Also, CPU gets pegged by the Vim process. True of macvim and console vim, it feels like

Re: Slowdown / lockups reading helpfiles

2012-06-21 Thread Marc Weber
Excerpts from steen's message of Thu Jun 21 12:47:19 +0200 2012: this by stepping through disabling them until stuff works again. But it strikes me as odd that any plugin could do anything to just affect the reading of helpfiles. Yes - that's the way to go. Start by moving your .vimrc and your

Re: Slowdown / lockups reading helpfiles

2012-06-21 Thread steen
On Thu, Jun 21, 2012 at 3:57 AM, Marc Weber marco-owe...@gmx.de wrote: If its caused by your .vimrc and or .vim/ then disabling plugins piecewise will help. vim-addon-manager may be very helpful for such testing. switiching filetype plugin etc off may also give some pointners where to start.

Re: TOhtml - select without linenr

2012-06-21 Thread Ben Fritz
On Wednesday, June 20, 2012 6:35:50 PM UTC-5, Tarlika Elisabeth Schmitz wrote: On Mon, 14 May 2012 11:45:00 -0500 Benjamin Fritz fritzophre...@gmail.com wrote: Dynamic folding [...] Could you attach an example? I don't use folding, not even in vim. Maybe I get an idea if I see the

Re: TOhtml - select without linenr

2012-06-21 Thread Tarlika Elisabeth Schmitz
On Thu, 21 Jun 2012 07:37:34 -0700 (PDT) Ben Fritz fritzophre...@gmail.com wrote: On Wednesday, June 20, 2012 6:35:50 PM UTC-5, Tarlika Elisabeth Schmitz wrote: On Mon, 14 May 2012 11:45:00 -0500 Benjamin Fritz fritzophre...@gmail.com wrote: Dynamic folding [...] It gets very complex

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
First, I want to thank everyone who responded on this thread, and to apologize for taking so long to get around to responding. After raising the issue, other things became higher priority, and I just didn't have time to respond to all the interesting suggestions. In the interim I did

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
On Jun 6, 2012, at 12:41 AM, Marc Weber wrote: Thank you Marc. You forget that I'm an idiot. I understand very little of the language you guys speak. I read the readme for this but I understood very little of it either. This is not backhanded criticism. Just stating the facts. I appreciate

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
On Jun 6, 2012, at 4:47 AM, 孔晓泉 wrote: maybe you can alias vimf='vim -o5 xx.file1 file2 file3 file4' ,then you type vimf Thanks for the suggestion. Is it really that simple? If so, it might meet my need. Would I need to include the path to the files? And what does the -o5 part do? I looked

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Tim Gray
On Jun 21, 2012 at 11:52 AM -0400, Eric Weir wrote: At first I continued sourcing the 'mksession' file after restarting, till I realized it was overwriting the changes I had made. So I'd like to find a method that avoids this problem. I mentioned it before and I'll mention it again. Check

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Tim Gray
On Jun 21, 2012 at 12:08 PM -0400, Eric Weir wrote: Thanks for the suggestion. Is it really that simple? If so, it might meet my need. Would I need to include the path to the files? And what does the -o5 part do? Try looking in the help: ':h -o' should get you there. I looked for help with

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
On Jun 7, 2012, at 9:28 PM, Michael Henry wrote: Yes, I typically use the ! as Christian suggests. Since I generally save my state to a single session file, I have it in my Vim command-line history. So I really just press :mk and then press the up-arrow key to recall the most recent

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
On Jun 7, 2012, at 9:37 PM, Michael Henry wrote: I listed a bunch of options without knowing your environment, but since you're on a Mac, you could use a shell script, an alias, or an icon on your desktop. The icon might be your preferred approach. If you can make a copy your MacVim icon,

Going back to empty brackets and quotes

2012-06-21 Thread Dotan Cohen
Hello, I have this terrific mapping which takes me back to the previous empty brackets or quotes: inoremap jk c-o?\({}\\|\[]\\|\\|\\|()\\|\\|''\\|lt\)?s+1Return This works great if there is no whitespace between the empty brackets / quotes, so I added the whitespace check: inoremap jk

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
On Jun 21, 2012, at 12:09 PM, Tim Gray wrote: On Jun 21, 2012 at 11:52 AM -0400, Eric Weir wrote: At first I continued sourcing the 'mksession' file after restarting, till I realized it was overwriting the changes I had made. So I'd like to find a method that avoids this problem. I

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
On Jun 21, 2012, at 12:14 PM, Tim Gray wrote: On Jun 21, 2012 at 12:08 PM -0400, Eric Weir wrote: Thanks for the suggestion. Is it really that simple? If so, it might meet my need. Would I need to include the path to the files? And what does the -o5 part do? Try looking in the help: ':h

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Tim Gray
On Jun 21, 2012 at 01:11 PM -0400, Eric Weir wrote: A quick scan of results on these topics gives me a vague idea of what they are. I'll have to study more carefully to get clear how I would construct an alias to access the files I want to load. I.e., whether the path needs to be explicit.

Re: TOhtml - select without linenr

2012-06-21 Thread Ben Fritz
On Thursday, June 21, 2012 10:04:40 AM UTC-5, Tarlika Elisabeth Schmitz wrote: On Thu, 21 Jun 2012 07:37:34 -0700 (PDT) Ben Fritz fritzophre...@gmail.com wrote: On Wednesday, June 20, 2012 6:35:50 PM UTC-5, Tarlika Elisabeth Schmitz wrote: On Mon, 14 May 2012 11:45:00 -0500 Benjamin

[semi-OT] Vim clutch pedal

2012-06-21 Thread Tim Chase
Stumbled across this today: http://hackaday.com/2012/06/21/building-a-clutch-for-vim/ I'm not sure it produces great gains over just typing i/esc but it made me laugh and it was too fun not to share. -tim -- You received this message from the vim_use maillist. Do not top-post! Type your

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Gary Johnson
On 2012-06-21, Tim Gray wrote: On Jun 21, 2012 at 01:11 PM -0400, Eric Weir wrote: A quick scan of results on these topics gives me a vague idea of what they are. I'll have to study more carefully to get clear how I would construct an alias to access the files I want to load. I.e., whether

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
On Jun 21, 2012, at 1:29 PM, Tim Gray wrote: Here's a (random) page about aliases. Should answer most of your questions: http://www.thegeekstuff.com/2010/04/unix-bash-alias-examples/ [...] You might want to pick up a book or read some tutorials on Unix and Bash. Thanks, Tim. For the

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Eric Weir
On Jun 21, 2012, at 2:26 PM, Gary Johnson wrote: Rather than use a bash alias, since Eric said he seldom uses a terminal, why not just put a Vim command in ~/.vimrc? For example, instead of alias vimf='vim -o file1 file2 file3 file4' use command All :args file1 file2 file3

highlighting search results from within a function

2012-06-21 Thread richard emberson
I've got a function: function! () execute '/this' endfunction and when I run it: :call () my cursor is positioned at the first 'this' but the text is not highlighted (nor is the text of any of the other 'this' highlighted). If I go into search history, the search is there and if I

Re: highlighting search results from within a function

2012-06-21 Thread Tim Chase
On 06/21/12 15:59, richard emberson wrote: I've got a function: function! () execute '/this' endfunction and when I run it: :call () my cursor is positioned at the first 'this' but the text is not highlighted (nor is the text of any of the other 'this' highlighted).

Re: highlighting search results from within a function

2012-06-21 Thread richard emberson
Thanks, that did the trick. On 06/21/2012 02:44 PM, Gary Johnson wrote: On 2012-06-21, richard emberson wrote: I've got a function: function! () execute '/this' endfunction and when I run it: :call () my cursor is positioned at the first 'this' but the text is not highlighted

Mode line in template not run, but is run when reloading file.

2012-06-21 Thread hardkrash
When using qtmplsel.vim the mode lines in my templates are not processed. So when I have expand tabs set and other options in model lines they are not being followed. How can I programmatically evaluate the text to yes the freshly inserted modeline. Currently I need to write the file and

Re: Mode line in template not run, but is run when reloading file.

2012-06-21 Thread Tony Mechelynck
On 22/06/12 00:43, hardkrash wrote: When using qtmplsel.vim the mode lines in my templates are not processed. So when I have expand tabs set and other options in model lines they are not being followed. How can I programmatically evaluate the text to yes the freshly inserted modeline.