Zarko Coklin wrote:
Is it possible to have a setup in .vimrc so that every
time I select tag either through "CTRL-]" or by
holding CTRL and pressing left mouse click to open a
new buffer in a new tab?
Regards,
Zarko Coklin
:map :exe "tab stag" expand("")
:map :exe "
Peng Yu wrote:
Hi,
Suppose I want to replace "string1" with "string2" in a file from vim.
1. Highlight "string1" (in visual mode) and then type "y".
2. Highlight "string2" (in visual mode) and then type "p".
However, the problem with the above procedure is that "string2",
instead of "string1",
Is it possible to have a setup in .vimrc so that every
time I select tag either through "CTRL-]" or by
holding CTRL and pressing left mouse click to open a
new buffer in a new tab?
Regards,
Zarko Coklin
Findin
I think that the best way to do this is just with registers. So what
you would do is:
v"ay
v"ap
what this does is use the a register to yank to/put from.
For more info see :help y and :help p
On 3/10/07, Peng Yu <[EMAIL PROTECTED]> wrote:
Hi,
Suppose I want to replace "string1" with "string2
Hi,
Suppose I want to replace "string1" with "string2" in a file from vim.
1. Highlight "string1" (in visual mode) and then type "y".
2. Highlight "string2" (in visual mode) and then type "p".
However, the problem with the above procedure is that "string2",
instead of "string1", is in buffer. T
Rafal Maj wrote:
A.J.Mechelynck wrote:
:map :wall !clear ; make && make run
Method II: intermixing internal and external commands
:map :wall exe "!clear" exe "make" !make run
Note: Method II does not intercept the return status from the first make.
Method III (untested) try to
I have a problem when i am in visual mode and i have text highlighted.
Instead of being able to run a command, it just overwrites my selected
text instead. im sure its because of something in my vimrc but i just
cant pinpoint it, can anyone help?
P.S.: If anyone sees some errors in my vimrc or ma
Peter Nasholm wrote:
Thanks for the hint,
Indeed there seems to be something about what you suggest. At least, I get
:verbose au cursorhold
--- Auto-Commands ---
Hit ENTER or type command to continue
I will try to dig a little bit deeper into this to see if I find a
solution. However, there is
Rafal Maj wrote:
How to map F9 key to following action:
1. run buildin make (!make)
2. run shell command "make run"
I tried:
map :wall:!clear:make && !make run
but then the F9 key results in:
Press ENTER or type command to continue
g++ a.cpp -o a.elf -lboost_thread -s -pthread
/bin/bash: !
Eric Leenman wrote:
Hi,
I have mapped CTRL-Z as u
I'm not sourcing mswin.vim, and also not behave as windows
CTRL-Z does most of the times the undo-function.
But why does it also does minimize the screen sometimes?
Rgds,
Eric
How did you remap Ctrl-Z ?
:map u
or
:noremap u
Eric Leenman wrote:
Hi,
How do you making inoremap filetype depend?
What I want is
if (filetype == vim) then
inoremap @a A
else if (filetype == c)
inoremap @a aa
else if (filetype == vhdl)
inoremap @a AAAaaa
else
inoremap @a aaaAAA
end if
Best regards,
Eric
autocmd Fi
Vu The Cuong wrote:
In the path I often used command to indent my php file or C# file:
gg ... G
mean go to the top of file and indent code until the end of file.
But Unfortunately I forgot.
Could anyone tell me what I forgot?
Thanks
see
:help =
Best regards,
Tony.
--
hundred-and-
Joel Brobecker wrote:
Hello fellow vimmers,
I am working on an x86-linux machine running Debian testing.
I have switched to vim7 soon after it came out, and it's been awesome.
There is just one thing that changed and causes me some trouble: When
I select a visual region, the text region gets cop
petern wrote:
Hi dear vim lovers.
When I type some text in input mode and for example go to make a coffee
without leaving the input mode, and then get back to my computer, vim has
exited input mode. That's OK. But what confuses me is that some parts of my
input has been repeated and been inserte
lin q wrote:
Hi,
I downloaded the vim 7.0 package to my RedHat Enterprise 3 machine.
I do not have administrator previlidge, so I setup the env like this:
export DESTDIR=
export prefix=
Then I run
make
make install
But when I run vim, /usr/local/bin/vim, I get this error:
Error detected
On 3/9/07, Simon Jackson <[EMAIL PROTECTED]> wrote:
Is it possible to use tidy to clean up my html in the current document?
Hi Simon,
Yes, this can be done. Here's a vim tip
(http://www.vim.org/tips/tip.php?tip_id=18) that explains the process.
Scroll to the bottom to the last comment that e
How to map F9 key to following action:
1. run buildin make (!make)
2. run shell command "make run"
I tried:
map :wall:!clear:make && !make run
but then the F9 key results in:
Press ENTER or type command to continue
g++ a.cpp -o a.elf -lboost_thread -s -pthread
/bin/bash: !make: command not
But If I want to create a New file if I hit CTRL + Return
when I am over CamelCaseWord with the cursor.
That's because viki isn't enabled for the new buffer. It has to be set
for every buffer.
If I want to active :VikiMode nothings happens. No highlightning of
Headings, list, CamelCase, ...
Hello James,
* On Fri, Mar 09, 2007 at 10:22:22AM +0100, James Kanze <[EMAIL PROTECTED]>
wrote:
> I'm having trouble automatically positionning the cursor when
> opening an existing file.
>
> Basically, all of my files have a standard header (copyright
> blurb, etc.), and I'd like to have the cu
Hello,
* On Sat, Mar 10, 2007 at 07:59:21AM +, Eric Leenman <[EMAIL PROTECTED]>
wrote:
> How do you making inoremap filetype depend?
> What I want is
>
> if (filetype == vim) then
> inoremap @a A
> else if (filetype == c)
> inoremap @a aa
> else if (filetype == vhdl)
I use f
Hi,
* On Wed, Mar 07, 2007 at 07:48:24PM +, Eric Leenman <[EMAIL PROTECTED]>
wrote:
> Triggered by the video presentation of Bram by making a iabbreviation
> or inoremaps of things you type often in combination with the reply of
> Gavin, would you like to share some of your inoremap mappings?
Hi list,
new to the list.
work on ubuntu 6.10, vim7 with patches 1-35
Have some problem with viki
http://www.vim.org/scripts/script.php?script_id=861
I extracted viki.zip into my ~/.vim. Just mulitvals.vim ist additional
installed, otherwise there are no other vim configuration files.
A .vim
> How do you making inoremap filetype depend?
> What I want is
>
> if (filetype == vim) then
> inoremap @a A
> else if (filetype == c)
> inoremap @a aa
> else if (filetype == vhdl)
> inoremap @a AAAaaa
> else
> inoremap @a aaaAAA
> end if
untested, but would the following
Hi,
I have mapped CTRL-Z as u
I'm not sourcing mswin.vim, and also not behave as windows
CTRL-Z does most of the times the undo-function.
But why does it also does minimize the screen sometimes?
Rgds,
Eric
_
Find what you need at
24 matches
Mail list logo