GoTouch Go | 3 Jul 21:23 2015
Picon

Is it possible to redirect vim input?

Hi there,

I am looking to make vim work with gdb in an easy way I like. I looked around and does not seem to see a solution.
There is gdbmgr but that means I still need to type in gdb command which is too long.

What I prefer is to let vim get input from my program, which sends editing input to vim so as to show a file, go to
specific line, etc. This way I can press Fn hot keys, send commands to gdb, and move the cursor in vim as well.
I can still edit in vim, and save the change, recompile and restart gdb.

So what I am looking to is basically sending input to vim through a pipe. Do you know a way to do so? vim probably
does not get input from STDIN because reading from STDIN cannot respond to individual key strokes.

Thanks for any clue.

-- 
--

-- 
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.
Bram Moolenaar | 3 Jul 13:50 2015
Picon
Picon

Vim-multibyte mailing list is closed


Hello Vim users,

The number of messages on the vim-multibyte mailing list has gone down
to nothing.  Multi-byte text is a core part of Vim these days, mainly
because UTF-8 is wide spread now.

Therefore I have closed the vim-multibyte maillist.  The archive will
remain, but posting new messages is no longer possible.  You can use the
vim-use and vim-dev lists for multi-byte questions and discussions.

-- 
hundred-and-one symptoms of being an internet addict:
174. You know what a listserv is.

 /// Bram Moolenaar -- Bram <at> Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
--

-- 
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.
(Continue reading)

rexdf | 3 Jul 07:03 2015
Picon

how to move tab by mouse

We can use :tabm buffer_Number to move tabs. How to use mouse to move it?

Can I custom tab menu?

Can autocomplete list selection support mouse?

-- 
--

-- 
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.
wolfv | 2 Jul 03:14 2015
Picon

Vim hangs and consums 24% of CPU

This is a weird bug.

When the attached test_vim.txt file is opened in Vim, and scrolled down to line 372, Vim hangs and consumes
24% of CPU.
This only happens with the attached vimrc and test_vim.txt.  All other files I tried work nice with the
attached vimrc.

The test_vim.txt file works nice if it is:

	* opened in less

	* opened in vi

	* opened in Vim with the last 7 lines of the attached vimrc commented

The test_vim.txt file also works nice if a blank line is inserted on line 372 like this:

	        FILE_CONTENT  FILE_CONTENT  FILE_CONTENT

 http://www.linux4windows.com/Articles/linux_concepts_for_beginners5.html

The attached test_vim.txt file is 504 lines long.
I have reproduced the bug by copying lines 360 to line 375 into a new file, but it only hangs for a couple
seconds.  And does not hang if the last 7 lines of the vimrc are commented.

I am running Vim version 7.4.6.40 on Linux Fedora 22 on hardware Haswell Intel NUC Kit D54250WYK.

Thank you.

--

-- 
(Continue reading)

ping song | 1 Jul 18:41 2015
Picon

vim: what is the best python IDE plugin?

experts:
I'm learning python now...as always I don't want to miss any VIM magics.
is there a "best" plugin to help me develop python scripts in vim?
trying to google and don't find one.

thanks.

regards
ping

--
--
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.
Rick Dooling | 29 Jun 17:52 2015
Picon

syntax region end when either pattern occurs?

I am trying to syntax highlight yaml blocks in Markdown files.

Right now, I can get it so it handles either blocks that look like this:

---
author: me
document: Help
---

or

---
author: me
document: Help
...

But not both. Is there a way to do both?

I tried end=\(/^---$/\|/^\.\.\.$\)  but that didn't work

unlet b:current_syntax

" Bring in YAML syntax for front matter
syntax include  <at> Yaml syntax/yaml.vim

syntax region yamlFrontmatter start=/\%^---$/ end=/^---$/ keepend contains= <at> Yaml
syntax region yamlFrontmatter start=/\%^---$/ end=/^\.\.\.$/ keepend contains= <at> Yaml

let b:current_syntax='markdown'

-- 
--

-- 
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.
David Fishburn | 29 Jun 16:25 2015
Picon

Catching "swap file exists" and dealing with it in code

Windows 32bit Vim 7.4.1-729

My work flow is this.

Have gVim open, editing a file.
Flip over to my revision system (Perforce) and do a diff on the file to have a look at the changes I have made with what is currently in the repository.

P4 just launches gvim -O -d %1 %2.

I am writing my own plugin to do something different like this instead:
gvim --servername gDiff +"RemoteDiffFiles '%1', '%2'"

If the file I choose to diff, so happens to be open in my usual editing Vim instance then Vim rightly displays the popup, indicating the .swp file exists and what I would like to do ... Open Read-Only, Delete it, Quit,...


What I want to be able to do is catch this message and deal with it in my own code and show a message.  

Greping through the vim74 directory, "Open Read-Only" seems to be part of the Vim binary itself.  

I know I can wrap my :edit / :view command in a try catch, but assuming I manage to catch this condition, is there a Vim command I can use in VimScript to make one of those choices?  My Googling around didn't get me what I needed.

TIA,
David


--
--
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.
Paul | 29 Jun 15:26 2015
Picon

Changing buffer changes display area

I have two buffers open on two different files. In buffer 1, I go to the bottom with G, and zz to put the cursor
into the middle, and see the ~'s in the bottom half of the window. I swap to buffer 2 with :bn. I swap back with
:bp. Vim has 'optimised' the display area by moving the bottom line of the file to the bottom of the window. I
would like it to keep it in the middle, or wherever I had put it. Is it possible?

When I search for this online, I see only results for moving the cursor position with startofline, nothing
about keeping the displayed area as it was.

-- 
--

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

Meino.Cramer | 28 Jun 06:00 2015
Picon
Picon

Auto-commenting

Hi,

when using vim for editing Perl sources, vim proceeds
the next line with an comment sign '#', if the previous
one was a comment line using <RET> in insert mode.

To not to miss even one of the wonderful feature of vim ;)  :

Suppose the situation is as follows (inser mode)

    # this is a comment in perl _

and "_" is, where my coursor is, Now I want to start
coding in the next line. <RET> gives me a new line, but
with a "#" in front of it, which I need to delete.

Another way to get "commentless" to the next line would
be <ESC>o

Is there any other more elegant and/or shorter way to accomplish this?

Thanks a lot for any help in advance!
Best regards,
Meino

"I dont know all these editor wars. There is only one editor." ;)

-- 
--

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

BPJ | 26 Jun 17:33 2015
Picon

How get a list of substrings matching a pattern?

I have succeded in writing a function which splits the contents of 
a visual selection on a pattern, reverses the resulting list, 
joins it together on a separator and puts the result back into the 
visual selection (Yes that's kind of basic, right?):

     fun! RevList(...)
         let reg_save= <at>  <at> 
         let pattern=!exists('a:1') ? '\s*,\s*' : a:1
         let sep=!exists('a:2') ? ', ' : a:2
         normal gvy
         let  <at>  <at> =join(reverse(split( <at>  <at> ,pattern)),sep)
         normal gvp
         let  <at>  <at> =reg_save
     endfun

What I want to do is to make this smart enough to not split on 
commas (or whatever) which are inside quotes, so how do I extract 
all substrings which match a pattern rather than split on a 
pattern, the equivalent of `my  <at> list = $string =~ m/($pattern)/g` 
in Perl? (Hopefully a pattern like '\v%(%(\s*\,\s*) <at> !.)+' will 
match the non-quoted parts...)

-- 
--

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

Paul | 25 Jun 00:24 2015
Picon

gvim colorscheme is run before global variables restored

My color scheme checks for the existence of a global variable
g:Lapscreen and modified colours accordingly.  The colorscheme is
invoked from my vimrc.  I have sessionoption set to include globals so
that the colorscheme does the right thing when my session is restored
-- or rather, that's what I'm aiming to accomplish.

When I restore a session, however, the my colorscheme is invoked as if
g:Lapscreen doesn't exist.  Would I be correct in assuming that the
globals are restored *after* the colorscheme is invoked?  I examined
my session file and found no invocation of my colorscheme.

-- 
--

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