Giuseppe Lo Brutto | 22 Jul 10:28 2014
Picon

wrap text by command

Hi all,
I'm wondering if there is a way to surround a line or a block of text by a snippet in php code. 
For example I wuold like to surround a number of lines of code by a try catch block or an if else or even a
function definition.

THX in advance

G.

-- 
--

-- 
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 | 21 Jul 16:42 2014
Picon

Treat section of file as entire file

Say you have a file that contains many code functions, and you're only concerned with one particular
function. I wonder if there's a plugin that will let you select a part of a file, in this case our function,
and limit vim 'things' to only this selected section. For example, doing a / search would only search
within the target area. :%s// would only look inside the area, etc. I know I could copy the area to a new file,
edit that, then paste it back, but I really want it the same file, because for example I might want to do a
:make on it, which requires the other 'outside' bits of the file to be present.

Anyone know if such a thing exists?

-- 
--

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

JomarBueyes | 17 Jul 19:13 2014
Picon

vim crashes when saving buffer

Hi,

I'm using vim (version 7.3) under X11 and Mac OS X 10.7.5. Often, when I'm editing two files in split windows,
saving one of them (i.e. a simple :w) causes vim to crash with the following error messages:
--
Vim: Caught deadly signal SEGV
Vim: preserving files...

Vim: Finished.

Segmentation fault
---
This usually, but not exclusively, happens when both buffers have changes that have not been saved to the
corresponding file.

Is this a known bug? Is there a patch or setup to avoid it?

Thank you in advance for any help, 

Jomar

-- 
--

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

Igor Forca | 17 Jul 15:34 2014
Picon

eVim - easy Vim - How to make it work on Ubuntu?

Hi,
I have been running Vim for several years and I like it a lot. But recently some of servers where migrated from
Windows to headles Linux servers (Ubuntu and openSuse) and now we have Windows users who very rarely have
to edit some configuration files. To learn Vim text editor is just a waste of there time. You know between
two Vim usage they forget most of the commands.

To solve this problem I have researched eVim program (Vim in eVim mode). I started testing on my Windows 7 PC
where is my day to day Vim.exe installed.

So starting Vim in eVim mode from command line:
vim -y myfile

Now Vim becomes eVim (you know dummy insert mode all the time and using classic CTRL+action key like in
Notepad for Windows). Now I can use:
CTRL+C to copy text
CTRL+X to cut text
CTRL+V to paste text
SHIFT+arrow_keys to select text
CTRL+A to select whole file
CTRL+S to save a file
CTRL+L to get into command mode and type :q to exit eVim
CTRL+O to get into command mode just for one command and then back to insert mode

All this works fine on Vim for Windows, but does not work at all in Vim for Ubuntu and Suse. All Vim's version
are 7.4.

Now the question:
I have logged to Ubuntu 14.04 (also on Suse SLES) server and started the "vim -y myfile" command and
CTRL+action commands just don't work.

(Continue reading)

Carfield Yim | 17 Jul 11:45 2014
Picon

Question about setting default syntax highlighter

Hi, I need to use vim to edit config files for Visual Studio project a lot, all the config file are XML but edit
with *.conf. How can I config vim to use XML syntax highlighter for all *.conf file?

-- 
--

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

Ben Klein | 17 Jul 19:11 2014

syntax region start and end patterns: "inherit" group above?

I have a syntax region where I want the start and end patterns to basically be ignored, highlighting-wise. Thus e.g. if I have an expression marked with ${}, and what is *contained* in the ${} should be highlighted, but the ${} is within a pair of quotes, the ${} characters should be highlighted as the quotes and the text in them is highlighted.

"This is text with ${foo} in the middle of it."

foo should be highlighted one way, and "This is text with ${", and "} in the middle of it" should be highlighted another way.

How can I do this? I tried setting a matchgroup and also tried setting it to NONE, but either way it is not highlighted, whereas I'd like to have it "inherit" the highlighting of the "" text.

Ben

--
b

--
--
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.
James Cole | 15 Jul 16:27 2014
Picon

Vim LaTeX - shortcut for looking bibtex definition of a citation?

Hi,

I just started using Vim LaTeX, and I'm wondering if there's a shortcut which I can use while the cursor is on
an existing citation (e.g. \cite{anAuthor2007}), and which will bring up the bibtex definition of the
cited item (perhaps showing the definition in a separate split)?  I've tried to find one but haven't been
able to.

Thanks,
James.

-- 
--

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

fengidri | 14 Jul 11:21 2014
Picon

how to hidden the ^M without change the file

when the file has '\r\n' and '\n', I donot want see the ^M, but I donot
want change the file.

thanks!
feng

-- 
--

-- 
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 | 14 Jul 02:59 2014
Picon

--remote unknown option argument

I'm trying to use "vim --remote" to open a file in vim from a Mac OS X terminal window in an existing Vim session running in another terminal window. It outputs "Unknown option argument: "--remote". Is that option not supported in non-gui vim on Mac OS X?

--
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.
Pierre Masci | 13 Jul 13:57 2014
Picon

trying to autostart the rainbow_parentheses plugin in all new buffers

Hi, I'm starting to use rainbow_parentheses.vim in order to get colourful parentheses (very useful for
nested code):
    https://github.com/kien/rainbow_parentheses.vim
and I want it to be activated by default in all new buffers.

To activate the plugin manually, I have to do:
    :RainbowParentheseActivate (or :RainbowParentheseToggle)
    :RainbowParentheseLoadRound
That works great but I don't want to type this every time I open a file.

So I tried the options proposed in the doc to have it "always on":
    au VimEnter * RainbowParenthesesToggle
    au Syntax * RainbowParenthesesLoadRound
It does work on the first file that I open, but not on any extra other buffers that I open afterwards (with :vs
for example).

Just for the sake of experiment, I tried to replace this line:
    au VimEnter * RainbowParenthesesToggle
with that one:
    au VimEnter * RainbowParenthesesActivate
but now even the first file that I open doesn't have any coloured parentheses.
I can't understand why: Activate seems to work like Toggle when I use them manually.
But if I put this, then it works on that first file:
    au VimEnter * RainbowParenthesesActivate
    au VimEnter * RainbowParentheseLoadRound
but still not on other buffers that I open.

I've tried to add this but it doesn't work either:
    au BufNewFile,BufRead * RainbowParenthesesActivate
    au BufNewFile,BufRead * RainbowParenthesesLoadRound
    au BufNewFile,BufRead * echo "TEST"
even though "TEST" gets printed.
I just can't understand what's going on.

Any idea how to solve this, or even just how to investigate further?

PS: I'm asking for help here because the Github repository does not allow to create issues, and the author
hasn't done anything on Github for a year now.

-- 
--

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

Linda A. Walsh | 13 Jul 01:09 2014

RFE: honor 'eol' setting regardless of 'binary' flag.


Have two request, actually,

1) first is to honor the 'eol' setting in text files just as
in binary

2) is to not make changes to a user's file unless they
ask them to be made (i.e. 'eol' would be "true" by
default -- don't modify end-of-file).  With the
option to modify EOF by adding an 'eol' being
the optional behavior?

thanks... while 2 might generate some controversy, is there
a reason why "1" would be problem?

thanks again!
linda

-- 
--

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