The % key is one of the best features of vim: it lets you jump from { to }, [ to ], and so on.
However, it does not work by default with quotes ( " or ' ), probably because the opening and closing quote are the same character, making implementation more difficult.
Thinking a bit more about the problem, I'm convinced that it should be ...
Hello,
Vim's multilayered views (Windows, Buffers and Tabs) left me a little confused. Let's say I split the display (:sp) and then select a different buffer to display in each window. Now I want to close one of the buffers, yet I don't want the window to close (After the closing it can display the next buffer on the list or an empty bu...
VIM: Is it possible to change the color of these symbols:
~!%^&*()-+=[]{},.<>?:/;
like Visual Studio does?
...
I'm trying really hard to learn vim after using TextMate for the last few years. I've started to commit some of the in-file navigation to memory, but I'm struggling with navigating between multiple files. In my workflow, it is pretty common that I'm flipping between a handful of files pretty regularly (enough files such that split-pane w...
I'd like to be able to use ctags to browse the apple iphone sdk docsets with vim. Is there a way to generate a ctags file that links to the docsets in question?
I use Objective-C to program for the iPhone, so I ended up using Objective-C Ctags, and changed my commandline to be:
ctags -f iPhone.tags -R --langmap="ObjC:.m .h" --fields=+...
I am programming in C++ or Java. So I want to use Vim editor, because it is very flexible. I have heard that I can configure the Vim editor to be able to go
from object to the definition
from function to the definition
from class name to the definition
Do we have any professional Vim-er that could tell me how exactly to configure Vim...
I've been trying to get into emacs lately, and one of the things I need to get right is indentation.
Example 1:
sub foo {
my $bar = 'quux';
|
Example 2:
sub foo {
my $bar = 'quux'; |# foo
Imagine that the pipe character in the above examples indicates the cursor position. Now, I use (4) spaces for every indent le...
Not a dup of http://stackoverflow.com/questions/391710/in-vim-what-is-the-simplest-way-to-join-all-lines-in-a-file-into-a-single-line, as I specifically mean to use the gq reformating functionality.
I used to write latex in vim using 80 character textwidth. However, I've now switched to an infinite textwidth, so my lines go on forever.
...
Related to vim-how-to-reformat-a-set-of-lines-into-a-single-lines-if-the-line-is-a-single
I'd like gq to treat a '.' as the end of a sentence in latex. Combined with a high value of tw, the intention is automatically reformat a paragraph into a list of lines.
(FYI, this is a much nicer way to edit latex, if you are wondering)
...
I am using the closetag.vim plugin, but it doesn't seem to work for all tags. In the plugin code there is the ignored tags var that contains some one that I noticed were not closing ex dd dl, but there are many others that aren't in the list that are not working (p, ul, li).
Nothing seemed to happen after updating the list of ignored ta...
Hi Guys,
I need to change
1 A
2 B
3 C
4 D
to
A
B
C
D
which means the decimal letter at the begining of every line and the following one or more blank should be deleted .
I'm only familiar with Reqex in Perl, so I try to use :%s/^\d\s+// to solve my problem, but it does not work. so does anyone of you can tell me how to get ...
I have seen this a lot in code, even vim marks it as a special case. #TODO and #FIXME are two other fix markers vim highlights but what does #XXX means?
...
how can I easily indent html files with linux or vi or vim.
...
Is it possible to map a vim command to a combination of keys involving more than one modifier? For example: ctrl-alt-v.
As far as I can tell, the only modifier key that can be used in combination with another is shift. e.g. <C-v> and <C-V>. Or am I missing something?
...
I have a file with about 1000 lines. All lines begin with a seven-digit number except for the occasional line. I need to catch these lines and actually join them with the previous line.
I've managed to be able to match any line that begins with a seven-digit number by using the following regex pattern:
^\d\{7}
I can't seem to get it ...
How do you manage big projects (hundreds of files) using only VIM?
I personally start having problems in any larger than small project.
is there any way to quickly 'go to file', preferably with name completition?
same for 'go to class definition', when it is in another file
I kinda know all the VIM basics, so I don't have problem us...
Hi folks,
I have a number of text files (700+) and I need to get each file's name into the start of every line in the file.
Example, for filename myfile0072.txt
mike 160
jane 174
to
myfile0072.txt mike 160
myfile0072.txt jane 174
I don't have access to bash or c or perl or anything at work. Is there something I can do in vi...
Is there an easy way to add a file in nerd tree? Currently I go into my shell, add the file and then refresh the tree.
...
In vim, if you, say, copy-paste a block of code into a file and it gets all wonky, you can hit == or =G to apply space formatting to the line (or to the end of the file). Is there a way to get this functionality in Visual Studio 2008? I found this gem:
Ctrl-K, Ctrl-F
Applies the indenting and space formatting for the language as spe...