A feature I often use in Vim is mark and jump-to-mark (')… But they only work within a file.
Is there any way to create a mark which works across files? For example, so I can create mark a on line 42 of foo.py, then jump to that mark while I'm editing bar.py?
...
In Vim script, if I have a file name, how to get it's path? For example, I want to get a path of the temp directory Vim uses. I can get a name of temp file by calling tempname(). But how to extract path from name returned?
...
Is it possible to place each of my vim plugins in a separate directory within my ~/.vim directory?
Unpacking everything into the same place seems kind of messy.
...
I'm editing a network protocol frame stored a file in Unix (\n newlines). I need to insert the carriage return character (U+000D aka \r). When I try to paste it from the clipboard ("+p) or type it using Ctrl+Shift+u-000d, the linefeed is inserted (U+000A).
What is the right way to do it?
...
When vim wrap long lines between words regular movements like j and k will jump from one physical line to the next. Mappings like "nnoremap j gj" as suggested here will do the trick of moving the cursor by display lines instead of physical lines.
There's at least one problem with this approach though. For example, dj will delete two phy...
Often I need to paste something into several adjacent lines, at the same or similar positions. It's a pain to have to move the cursor back to the beginning of the pasted contents every time, when moving on to the next line. How can I paste (as in, the command 'p') without moving the cursor? Or, how can I quickly get the cursor back to wh...
Hello,
Is it possible to create a project based on a remote directory (on an ftp server) in VIM, using the Project plugin?
...
Just want to insert a word or text at the beginning of range of lines, or the entire file. How do it in vim.
thx
...
I have following text in a text file
This is some text for cv_1 for example
This is some text for cv_001 for example
This is some text for cv_15 for example
I am trying to use regex cv_.*?\s to match cv_1, cv_001, cv_15 in the text. I know that the regex works. However, it doesn't match anything when I try it in VIM.
Do we need to d...
I've read heaps of blogs on Vim's supposedly great omnicompletion, and yet no matter what I do I can't get it to work satisfactorily. It took me ages to figure discover that the version of ctags that is preinstalled on my system was the emacs one, and didn't have the --recurse option, but now that I've run ctags-exuberant on my copy of t...
I installed the vim plugin on many different ways. I try to start it with Ctrl-T but what I get is always that error:
E492: Not an editor command: FuzzyFinderTextMate
...
Let's see if I can explain myself.
I use vi-mode in bash, which is really great since I'm used to Vi.
When I'm inside vim and type : (to go to ex mode), since I'm used to the vi-mode from bash, I feel the slowliness of having to use this mode like the "regular" way of using bash.
Question is: is there a way of using vim's ex-mode like...
When trying to set DoMatchParen I get the following error: E492: Not an editor command: DoMatchParen. I thought that pi_paren is a standard plugin. What could be the problem?
Thanks.
...
Hi, I am a newbie when it comes to gVim, Perl & test scripts, so I hope this is not a stupid question?
I have successfully installed Perl::Tags 0.26 under Linux and OS X but am getting installation test errors under WIN32 -- also see perl.cpan.testers
My questions are:
(i) Does VIM need Perl::Tags or can I rely on exuberant ctags to g...
I sometimes open a read-only file in vi, forgetting to do chmod +w before opening it. Is there way to change the file from within the vi?
something like that !r chmod +w filename ?
is there a shortcut to refer to the currently open file without spelling it 50 letter name?
thanks
...
Often when developing I am confronted with a nested object that I'd like to delete from code in the middle of a line like this:
htmlDoc.WriteLine("<b><h3>" + this.cbAllSyncs.SelectedItem.ToString() + "</h3></b>");
The part that I'd like to delete is:
this.cbAllSyncs.SelectedItem.ToString()
I know I can count the number of words and...
Is it possible to select multiple non-consecutive lines (or sections) in VIM's visual mode? If so, how?
...
I am using mvim. I have following lines in my vimrc .
"highlight text that goes over 80 columns
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.*/
Sometimes in my project I see the extra characters highlighted and sometimes I don't . I mean once vim is displaying extra characters then it will conti...
I've used Vim's g:xmldata_ to describe xml possible elements to be able to use omni-compete for xml. The problem is not each 'A' node has 'a0', 'a1', 'an'. Sometimes 'A' node has only 'a0'. And the documentation of
the a0 and A is different and depends on parent of 'A'.
E
|
|--A
| \-a0 // documentation of E.A.a0
| \-a1
|
\--B
\...
How do calculate the number from inside the vim?
...