Hello,
For the following vim script in a tmp.vim file:
:!echo 1
:!echo 2
When executing ":so tmp.vim" in a terminal vim (I'm on Konsole of KDE),
the output is like this:
1
Press ENTER or type command to continue
2
Press ENTER or type command
=> On [2012-03-19 15:20:06 -0400]:
David Fishburn Said:
> On 3/17/2012 11:33 AM, stardiviner wrote:
> >I want a vim script to convert SQL keyword(statement, clause, those highlig=
> >ht group in file) to be
> >converted to *uppercase* when I type command `:w` to save file.
> >And another way is w
> I usually close Vim with Alt+F4 instead of :quit and
> associates. The problem is, there sometimes is quite some
> work in the VimLeave autocommand, and a dialog pops up
> saying that Vim is busy and do I want to close it, etc. The
> dialog disappears when Vim really stops, but it's an
Is it possible to use some special keys from a ThinkPad
keyboard for mappings? What I am looking for is to map the
back and forward keys (above the and keys) to
:tabnext and :tabprevious.
The generic answer is "if (g)vim can see them, you can map them".
The question then becomes, can (g)vim
Hi,
Is it possible to use some special keys from a ThinkPad keyboard for mappings?
What I am looking for is to map the back and forward keys (above the and
keys) to :tabnext and :tabprevious.
Thanks,
Razvan
--
You received this message from the "vim_use" maillist.
Do not top-post! Type you
Christian Brabandt wrote:
> On Mon, March 19, 2012 13:02, Constantin Stefanov wrote:
>> Hello.
>>
>> I have the map:
>>
>> nnoremap :call Clearhl()
>> func Clearhl()
>> nohlsearch
>> endfunc
>>
>> When I press Esc twice, search highlighting is switched off, but when
>> after that cursor points to
On 19:50 Wed 21 Mar , Roman Dobosz wrote:
> On Wed, 21 Mar 2012 18:27:03 +
> Marcin Szamotulski wrote:
>
> > You can try:
> > bufdo vmigrepadd /pattern/j %
>
> This is exactly what I was looking for. Thank you!
>
> OTOH I was thinking about some function in python just to scan every
> e
On Wed, 21 Mar 2012 18:27:03 +
Marcin Szamotulski wrote:
> You can try:
> bufdo vmigrepadd /pattern/j %
This is exactly what I was looking for. Thank you!
OTOH I was thinking about some function in python just to scan every
existing buffer for a pattern and than fill up quickfix/location
bu
On Wed, 21 Mar 2012 14:31:18 -0400
Taylor Hedberg wrote:
> > Is it possible to vimgrep all opened buffers, not just the current
> > one?
> Well, :vimgrep really operates on files, not buffers. The `%` in the
Yes, I knew it, however vimgrep with expanding filename by percent
sign made my day :) V
On 3/21/2012 1:53 PM, Roman Dobosz wrote:
Is it possible to vimgrep all opened buffers, not just the current one?
You have received some examples of functions you can add to your .vimrc
to accomplish what you need.
This is what I did when I first started with Vim.
Went here:
http://www.vim.or
On 14:31 Wed 21 Mar , Taylor Hedberg wrote:
> Roman Dobosz, Wed 2012-03-21 @ 18:53:29+0100:
> > Is it possible to vimgrep all opened buffers, not just the current
> > one?
>
> Well, :vimgrep really operates on files, not buffers. The `%` in the
> command I gave previously expands to the filena
Roman Dobosz, Wed 2012-03-21 @ 18:53:29+0100:
> Is it possible to vimgrep all opened buffers, not just the current
> one?
Well, :vimgrep really operates on files, not buffers. The `%` in the
command I gave previously expands to the filename of the current buffer.
You can replace that with a list o
On 18:53 Wed 21 Mar , Roman Dobosz wrote:
> On Wed, 21 Mar 2012 09:37:58 -0400
> Taylor Hedberg wrote:
>
> > If you search with :vimgrep, the results will be placed in the quickfix
> > window:
> >
> > :vimgrep /your search pattern here/ %
> > :copen
>
> Great!
>
> Is it possible to
On Wed, 21 Mar 2012 09:37:58 -0400
Taylor Hedberg wrote:
> If you search with :vimgrep, the results will be placed in the quickfix
> window:
>
> :vimgrep /your search pattern here/ %
> :copen
Great!
Is it possible to vimgrep all opened buffers, not just the current
one?
--
Roman Dobo
I use a Mac locally and use tmux on a Debian box I often SSH into, and I also
sync my clipboard using clipboard=unnamedplus which works fine. However,
whenever I reattach a tmux session on the remote which has a vim session open,
Trying to paste from elsewhere results in a "E353: Nothing in regi
On Wednesday, March 21, 2012 4:42:38 AM UTC-5, Jeri Raye wrote:
> Hi
>
> I have a compiler log with too many lines.
> I would like to strip that document to only the lines I want.
>
> How to that?
>
It's a compiler log. How about using Vim's quickfix capabilities to parse,
present, and USE it
On Wednesday, March 21, 2012 6:36:52 AM UTC-5, danguria wrote:
> Hello vim_use group members.
>
> I want to use vim like notepad++ editor.
> in other words,
> When I find string with notepad++, new window opens and shows find
> results.
> I want to use this feature in vim.
>
> sincere everyone.
On 03/21/12 05:35, Jeri Raye wrote:
Assuming that the interesting part of a block
starts with AAA
end with BBB
Another block interesting block
starts with CCC
end with DDD
And a line that starts with EEE is also interresting
While only getting the details piecemeal, it's a bit hard to give
If you search with :vimgrep, the results will be placed in the quickfix
window:
:vimgrep /your search pattern here/ %
:copen
pgpbu5OkmclFC.pgp
Description: PGP signature
Hello
I see in the help text for globpath() that directory names are separated
with commas, and a comma in a directory name should be escaped with a
backslash, that is "dir\music, videos\title" should be written as
"dir\music\, videos\title".
Should a directory name that actually includes fi
On 20.03.2012 13:31, Benjamin R. Haskell wrote:
On Mon, 19 Mar 2012, Timothy Madden wrote:
[...]
Now, since 'runtimepath' is a user setting, that is 'runtimepath' is
meant to be set and modified by the user, not automatically by my
script, than I want to try to make my script as non-intrusive
Hello vim_use group members.
I want to use vim like notepad++ editor.
in other words,
When I find string with notepad++, new window opens and shows find
results.
I want to use this feature in vim.
sincere everyone.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type
Hi,
Sorry for not being so clear
Assuming that the interesting part of a block
starts with AAA
end with BBB
Another block interesting block
starts with CCC
end with DDD
And a line that starts with EEE is also interresting
+--START OF TEXT --+
Boring line
Not interesting line
Useless line
Bl
On 03/21/12 04:42, Jeri Raye wrote:
I have a compiler log with too many lines.
I would like to strip that document to only the lines I want.
How to that?
For example, I have a text like this
+--START OF TEXT --+
Boring line
Not interesting line
Useless line
Blabla
THIS IS REALLY AN INTERESTING
On Wed, March 21, 2012 10:42, Jeri Raye wrote:
> Hi
>
> I have a compiler log with too many lines.
> I would like to strip that document to only the lines I want.
>
> How to that?
>
> For example, I have a text like this
> +--START OF TEXT --+
> Boring line
> Not interesting line
> Useless line
> B
On Mon, March 19, 2012 13:02, Constantin Stefanov wrote:
> Hello.
>
> I have the map:
>
> nnoremap :call Clearhl()
> func Clearhl()
> nohlsearch
> endfunc
>
> When I press Esc twice, search highlighting is switched off, but when
> after that cursor points to parenthesis ('([' works) the hihglight
Hi
I have a compiler log with too many lines.
I would like to strip that document to only the lines I want.
How to that?
For example, I have a text like this
+--START OF TEXT --+
Boring line
Not interesting line
Useless line
Blabla
THIS IS REALLY AN INTERESTING BLOCK OF TEXT
[111]
[222]
[333]
LA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 21/03/2012 08:23, Phil Dobbin wrote:
> On 21/03/2012 08:11, Christian Brabandt wrote:
>> Hi Phil!
>
>> On Mi, 21 Mär 2012, Phil Dobbin wrote:
>
>>> On 21/03/2012 07:37, Christian Brabandt wrote:
Hi John!
On Di, 20 Mär 2012, John Deg
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 21/03/2012 08:11, Christian Brabandt wrote:
> Hi Phil!
>
> On Mi, 21 Mär 2012, Phil Dobbin wrote:
>
>> On 21/03/2012 07:37, Christian Brabandt wrote:
>>> Hi John!
>>>
>>> On Di, 20 Mär 2012, John Degen wrote:
>>>
I'm trying to compile a huge
Hi Phil!
On Mi, 21 Mär 2012, Phil Dobbin wrote:
> On 21/03/2012 07:37, Christian Brabandt wrote:
> > Hi John!
> >
> > On Di, 20 Mär 2012, John Degen wrote:
> >
> >> I'm trying to compile a huge version of Vim, including gVim, using
> >> Mercurial. I've only managed to install console Vim, and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 21/03/2012 07:37, Christian Brabandt wrote:
> Hi John!
>
> On Di, 20 Mär 2012, John Degen wrote:
>
>> I'm trying to compile a huge version of Vim, including gVim, using
>> Mercurial. I've only managed to install console Vim, and that's a normal
Hi John!
On Di, 20 Mär 2012, John Degen wrote:
> I'm trying to compile a huge version of Vim, including gVim, using Mercurial.
> I've only managed to install console Vim, and that's a normal version,
> without Python and Perl interface. I followed the instructions and issued
> these commands:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 21/03/2012 02:11, pansz wrote:
> On Wed, Mar 21, 2012 at 4:52 AM, John Degen wrote:
>> Am I still missing packages? The Debian package (Vim 7.2.445) installs
>> without problems and offers a huge version.
>
> sudo apt-get build-dep vim
>
> this
33 matches
Mail list logo