I have a text document like so:
<table width="10">
</table>
I open the document with the VI editor. I want to replace all instances of width="somenumber" with nothing. I issue this command in the VI editor:
:0,$s/width="[\d]+"//gc
VI says no pattern found. I also tried this and it doens't work:
0,$s/width="[0-9]+"//gc
This o...
I'm noticing that even for system modules, code completion doesn't work too well.
For example, if I have a simple file that does:
import re
p = re.compile(pattern)
m = p.search(line)
If I type p., I don't get completion for methods I'd expect to see (I don't see search() for example, but I do see others, such as func_closure(), func_...
Hi guys,
Recently I've been trying my hand at using vim instead of TextMate and one of the features that I've missed most in VIM is TextMate's jump to method function (CMD + Shift + T for those who don't know). From looking around I havn't seen any particular way to emulate this functionality and was wondering if anyone here has had exp...
Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but its not using clipboard to store those lines.
So is it possible?
...
Possible Duplicates:
Autocompletion in Vim
Vim, Python, and Django autocompletion (pysmell?)
I don't know if that's the right word for it. When I use Ctrl+n in VIM to use autocomplete it doesn't do a very smart job of suggesting member functions or variables or what-have-you. Visual studio's intellisense makes suggestions that...
The characters for extended regular expressions are invaluable; is there a way to turn them on so that I don't have to escape them in my Vim regex, much like the -E flag I can pass to grep(1)?
...
Is it possible to combine registers in vim? For example, if I have registers "a, "b, "c, can I easily create register "d which is a concatenation of all three? That is, without pasting them all and then selecting the whole thing.
...
Hi
I'm using vim for ruby, php and perl development. There is the shortcut % to jump from the begin of a block (subroutine/function/method/if) to the end and vice versa.
For me a % on a do/end tag in ruby doesn't work.
How can I do that with vim?
...
Hey guys
I've been trying to get colourschemes to work properly in VIM when using it over ssh with PuTTy as a client but unfortunately I haven't had much success. I can only get 8bit colours working with PuTTY even though I've enabled 256 colors in putty and set t_Co=256 in VIM. They don't turn out as they should. I've been trying to re...
I'm trying to get OmniCppcomplete to work and I'm running into trouble. I've followed the steps on this page (including the things to add to the .vimrc file). I downloaded and extracted the zip file to ~/.vim, I ran the commands it says, I did everything there and it still doesn't work. I also tried downloading the modified stl for the _...
I am using mvim and I use 10 << to move 10 lines to 2 columns left. However there are times when I want to move 10 lines to 7 columns left. Is there a better way to do that?
...
I am currently visually selecting the code and typing ">" which moves the code by 2 tabs. But I only want to move it by one tab.
Is there any alternate command in VIM to move the code by a tabspace.
Ideally I would like to put a marker and then move the whole code block by a tabspace.
Thanks
...
In Vim I have:
simulación (fig.),pretexto (fig.),excusa (fig.).
My goal is:
simulación ,pretexto ,excusa .
I have tried with: :%s/\(fig\.\)//g, but it doesn't work.
Thanks in advance!
Ps: sorry my english
...
Is it possible to mark a range of text in Vim and change the highlight color of it (to red) than select another range of text and change that color (to green) keeping the previous highlight and so on?
...
I'd like to run vimdiff on MacVim. Is there an easy way I'd be able to do it?
...
Hello,
I'm working at a project on a remote server. I don't want to have the swap files on the server. I would like all swap files for Vim (and, of course, gVim) to be saved on the specified directory. How could I do that?
...
Please share and vote for the best!
Please do not close this. This is a subjective question, but is programming related and can be beneficial to people.
...
I'm using pythoncomplete omnicompletion in vim.
It works great when I instantiate classes directly, eg
import numpy as np
x = np.ndarray(l)
then x attributes complete correctly.
But I work with numpy and matplotlib so usually use factory functions ie
x = np.zeros((2,2))
f = plt.figure()
ax = f.add_subplot(111)
Is there any wa...
I feel like this should be simple, but can't figure it out: What's the bash command(s) to look through a folder and open the largest file using VIM?
...
I've read this question, but I want to know how can I delete the line when the pattern DOESN'T occur.
...