Hello,
I am trying to do a substitution where the pattern is the text a
visually selected before.
I have looked in the archives and in the tips but I do not find the
right way to do it.
the command I first thought was: :s/@*/bar/ but it won't work.
Does anybody have an idea to do it?
Thanks
There is (I think) no official indent/javascript.vim file.
A new tip has been uploaded that may fix this:
http://vim.wikia.com/wiki/Improved_Javascript_Indent_script_for_Vim
We do not really want pure scripts on the wiki (they are usually
unmaintained and undocumented and unhelpful).
I'm hoping
Thank you very much, Ephraim,
I like to just :set hidden, which keeps all buffers in memory even when they
are not visible. I tend to think the default, which doesn't do this is a
holdover from when memory was much more expensive.
yes, it's very helpful if I can take care not to use :q!
John Beckett wrote:
There is (I think) no official indent/javascript.vim file.
A new tip has been uploaded that may fix this:
http://vim.wikia.com/wiki/Improved_Javascript_Indent_script_for_Vim
We do not really want pure scripts on the wiki (they are usually
unmaintained and
Thibaut wrote:
I am trying to do a substitution where the pattern is the
text a visually selected before.
I think you have an answer, but the really useful procedure is
to use the tip I recently mentioned:
http://vim.wikia.com/wiki/Search_for_visually_selected_text
Standard procedure:
- Select
On 18/05/10 11:39, Efraim Yawitz wrote:
On Tue, May 18, 2010 at 12:36 PM, robert song
robertsong.ja...@gmail.com mailto:robertsong.ja...@gmail.com wrote:
Hi, everyone.
If I in a C file, and try to jump to the definition of one function
with CTRL-] key, but if the file is
On 18/05/2010 5:01 AM, John Beckett wrote:
There is (I think) no official indent/javascript.vim file.
A new tip has been uploaded that may fix this:
http://vim.wikia.com/wiki/Improved_Javascript_Indent_script_for_Vim
We do not really want pure scripts on the wiki (they are usually
unmaintained
Hi.
On May 18, 8:25 pm, robert song robertsong.ja...@gmail.com wrote:
Thank you very much, Ephraim,
I like to just :set hidden, which keeps all buffers in memory even when they
are not visible. I tend to think the default, which doesn't do this is a
holdover from when memory was much
I am using GVIM 7.2 on XP. I can open up a file in VIM and without doing
anything yet to the file have an item paste to a line just by scrolling the
page. Continual scrolling can paste the item multiple times. Obviously on
a large file this can be a problem because I don't necessarily know
On 2010-05-18, Tony Mechelynck wrote:
On Tue, May 18, 2010 at 12:36 PM, robert song wrote:
Hi, everyone.
If I in a C file, and try to jump to the definition of one function
with CTRL-] key, but if the file is modified, I must save the file at
first, is there any way to
On Tue, May 18, 2010 3:27 pm, timezone wrote:
I am using GVIM 7.2 on XP. I can open up a file in VIM and without doing
anything yet to the file have an item paste to a line just by scrolling
the
page. Continual scrolling can paste the item multiple times. Obviously
on
a large file this
thank you, gary,
Another alternative is to use Ctrl-W } to see the source of the tag
in a preview window. That will leave the cursor in the original
window, which is useful if you just want to see the definition and
not edit it.
I tried Ctrl-W }, but it works just like Ctrl-W ] in C source
Hi, everyone.
I executed :!history in vim to execute the external history command,
but find that no result is outputted.
Does anybody know the reason ?
Best Regards,
robert
--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are
On 10-05-18 11:58 AM, robert song wrote:
Hi, everyone.
I executed :!history in vim to execute the external history command,
but find that no result is outputted.
Does anybody know the reason ?
Best Regards,
robert
Yes, :! will start a new shell to run the command in. Since it's new,
it
Yes, :! will start a new shell to run the command in. Since it's new, it
has no history. Try:
:!echo I haz history;history
Shawn,
thank you for your reply,
so is there any way to read the history result to current window ?
just like the other command :r!date.
If this can be done, it's
On 2010-05-19, robert song wrote:
thank you, gary,
Another alternative is to use Ctrl-W } to see the source of the tag
in a preview window. That will leave the cursor in the original
window, which is useful if you just want to see the definition and
not edit it.
I tried Ctrl-W },
On 2010-05-19, robert song wrote:
Yes, :! will start a new shell to run the command in. Since it's new, it
has no history. Try:
:!echo I haz history;history
Shawn,
thank you for your reply,
so is there any way to read the history result to current window ?
just like the other
On May 17, 1:10 am, Bee 200...@calcentral.com wrote:
I use the same .vimrc on several platforms with versions:
vim 6x 7x and now vim.tiny 7x (deb)
But... there is one case I can not make automatic.
The following are valid in vim 7x and vim.tiny 7x but not vim 6x
set showtabline=2
Hi, Gary,
This behavior depends on the shell you're using and how it's
configured. For example, on one Linux system running some version
of ksh, I get the results you describe. On another Linux system
running a different version of ksh, executing :!history lists the
last 16 commands.
I'd
Try this...
!bash -ic 'set -o history; history'
Brett, thank you very much.
It works.
Best Regards,
robert
--
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
I cant figure out how to search for newline followed by non-newline using
vim.
So if I have a file like this:
a b c
d e f
g
h i j
k l
m n o
p q
I want to find the newlines after c, f, j, and o, but not after g or l.
What's the regular expression look like for this?
Thanks,
- Jeremiah
--
On 05/18/2010 02:23 PM, Jeremiah Martell wrote:
I cant figure out how to search for newline followed by non-newline using
vim.
So if I have a file like this:
a b c
d e f
g
h i j
k l
m n o
p q
I want to find the newlines after c, f, j, and o, but not after g or l.
What's the
Jeremiah Martell wrote:
I cant figure out how to search for newline followed by non-newline
using vim.
So if I have a file like this:
a b c
d e f
g
h i j
k l
m n o
p q
I want to find the newlines after c, f, j, and o, but not after g or l.
What's the regular expression look like for this?
On Tue, 18 May 2010, Jeremiah Martell wrote:
I cant figure out how to search for newline followed by non-newline using
vim.
So if I have a file like this:
a b c
d e f
g
h i j
k l
m n o
p q
I want to find the newlines after c, f, j, and o, but not after g or l.
What's the
On 10-05-18 02:33 PM, AK wrote:
On 05/18/2010 02:23 PM, Jeremiah Martell wrote:
I cant figure out how to search for newline followed by non-newline using
vim.
So if I have a file like this:
a b c
d e f
g
h i j
k l
m n o
p q
I want to find the newlines after c, f, j, and o, but not after g
Is there a way of getting rid of the 1 character width gutter on the
left?
Reason is when I need to read/edit a file where a long url wraps over
to line under it the gutter splits the url and consequently urxvt url
matching breaks.
--
Don't look back, the lemmings are gaining on you.
On 05/18/2010 02:05 PM, David Woodfall wrote:
Is there a way of getting rid of the 1 character width gutter on the
left?
Reason is when I need to read/edit a file where a long url wraps over
to line under it the gutter splits the url and consequently urxvt url
matching breaks.
Short answer:
On 2010-05-18, Shawn H Corey wrote:
On 10-05-18 02:33 PM, AK wrote:
On 05/18/2010 02:23 PM, Jeremiah Martell wrote:
I cant figure out how to search for newline followed by non-newline
using
vim.
So if I have a file like this:
a b c
d e f
g
h i j
k l
m n o
p q
I want to
Thanks everyone!
I got plenty of options that work. :-)
- Jeremiah
--
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
On (14:23 18/05/10), Tim Chase v...@tim.thechases.com put forth the
proposition:
On 05/18/2010 02:05 PM, David Woodfall wrote:
Is there a way of getting rid of the 1 character width gutter on the
left?
Reason is when I need to read/edit a file where a long url wraps over
to line under it the
Using vim 7.2 on slack 13.0 32-bit.
Example:
: bdelete 54
result
E516: No buffers were deleted
How may I suppress the message above?
Note: I have tried using 'silent', it doesn't
stop the message.
The goal is to use this in script.
As in
exe :silent bdelete i
or whatever is correct
- Original Message -
From: Tim Johnson t...@johnsons-web.com
To: vim use vim_use@googlegroups.com
Sent: Tuesday, May 18, 2010 4:55:17 PM
Subject: How to suppress a message
Using vim 7.2 on slack 13.0 32-bit.
Example: : bdelete 54
result
E516: No buffers were deleted
How may I
On 2010-05-18, Tim Johnson t...@johnsons-web.com wrote:
Using vim 7.2 on slack 13.0 32-bit.
Example:
: bdelete 54
result
E516: No buffers were deleted
How may I suppress the message above?
Note: I have tried using 'silent', it doesn't
stop the message.
The goal is to use this
* Bryan Venteicher bry...@daemoninthecloset.org [100518 14:39]:
As in
exe :silent bdelete i
or whatever is correct
Try 'exe :silent! bdelete i'
Thanks to Bryan and Gary.
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
--
You received this message from the
How do I get the current word from a Python script? I can get
vim.current.window.cursor which is row,col, and I can get
vim.current.line, but which character we're in is a computation that
considers the tabstop and all the tabs on the line...is there an
easier way?
--
Yang Zhang
On Wed, May 19, 2010 at 10:15 AM, Yang Zhang yanghates...@gmail.com wrote:
How do I get the current word from a Python script? I can get
vim.current.window.cursor which is row,col, and I can get
vim.current.line, but which character we're in is a computation that
considers the tabstop and all
On 18/05/10 22:11, David Woodfall wrote:
[...]
Yep, foldcolumn it is. Hmm though in mutt the urls are still broken,
which was one of the original problems.
Thanks
[...]
It could be that your line got broken by auto-reformatting at the right
margin, and that mutt (or Vim in mutt) doesn't know
On May 18, 5:33 pm, Gary Johnson garyj...@spocom.com wrote:
On 2010-05-18, Tim Johnson t...@johnsons-web.com wrote:
Example:
: bdelete 54
result
E516: No buffers were deleted
How may I suppress the message above?
Note: I have tried using 'silent', it doesn't
stop the
On May 18, 2:42 pm, Gary Johnson garyj...@spocom.com wrote:
It doesn't matter whether or not he's using Windows provided that
the file uses only NL line terminators or only CR-NL line
terminators. As long as the line terminators are purely one type or
the other, Vim sets 'fileformat'
On May 18, 4:36 am, robert song robertsong.ja...@gmail.com wrote:
Hi, everyone.
If I in a C file, and try to jump to the definition of one function
with CTRL-] key, but if the file is modified, I must save the file at
first, is there any way to avoid saving file?
Yet another option (which
40 matches
Mail list logo