Tagged Questions
vim (Vi IMproved) is a text editor supporting different editing modes.
2
votes
2answers
39 views
Move to next capital letter
Is there an easy way to move to the next capital letter with vim? I'm often working with camel-cased variables and it could be useful.
4
votes
1answer
33 views
creating vim plugins
I would like to attempt my first VIM plugin and wondered where there are some good docs on this? From going threw the plugins I use it seems to me that it is a mix of BASH and some sorts of VIM api is ...
5
votes
2answers
38 views
vim - don't highlight search term after a search & replace?
After performing a search and replace, my installation of GVIM highlights any text remaining that still matches the search pattern.
Example input text:
foo
foo
fighters
I run :%s/foo/bar/gc and ...
5
votes
1answer
32 views
Vim syntax highlight certain lines
I have php files well any file type in general that I would like vim to highlight here docs sections using a different syntax highlighting.
<?php
echo <<<HTMLDOC
<h1> I am ...
1
vote
1answer
24 views
Vim remembering settings of edited files
I read some where about creating files in vim to save things like open windows and folds. I tried to Google it but had trouble finding reference to it. What should I be looking for?
1
vote
5answers
137 views
Display output to console while grep is used
In vim I use the following command to compile a tex file:
pdflatex\ \-file\-line\-error\ \-shell\-escape\ \-interaction=nonstopmode\ $*\\\|\ grep\ \-P\ ':\\d{1,5}:\ '
this works in terms of getting ...
1
vote
2answers
49 views
Filetype not detected
I'm using vim to try a template system named handlebars, and I installed a vim plugin to get some syntax-highlighting for *.handlebars. I can get coloration if I do this : :set filetype=handlebars, ...
8
votes
2answers
103 views
VIM: show all lines edited in session
Is there a command or plugin that I can use to show all the lines I have edited in a Vim session? I would like to be able to have all the changes I have made highlighted when working in co-workers ...
2
votes
3answers
64 views
Vim multiple windows / hide
If I had x or more windows open in a VIM session and I wanted to quickly hide all but the active one for a moment then return the windows to the layout I had them int how would I do it?
3
votes
3answers
66 views
What does . match?
In working with regular expressions, I have been told that a dot character . will match everything.
Except for newlines \n.
Are there any other exceptions? What about the NUL character \0, or the ...
5
votes
1answer
63 views
Jump to specific character in a line in VI
In VI, I know that if you do
:some_number
and hit enter, you will jump to the line specified by "some_number". Is there an equivalent for jumping to a specific character in a single line?
...
0
votes
0answers
33 views
How to copy and paste to and from the system clipboard? [closed]
Possible Duplicate:
How to copy text from vim to an external program?
I have no idea why this is so hard, but I can't get vim to use my system clipboard. All copy and paste commands seem to ...
4
votes
0answers
64 views
Note-taking and outlining using Vi: On startup, highlight tags and display tags in a preview window
I am using vi as a note-taking and outlining tool and therefore I thought that this stackexchange site would be appropriate to ask this question. I am constructing the "tags" file by myself. What I ...
1
vote
0answers
35 views
Vi: On startup, highlight tags and display tags in a preview window
I am using vi as a note-taking and outlining tool. I am constructing the "tags" file by myself. What I would like to do is that when I open my notes or
outline file, vi reads the tags present in this ...
3
votes
2answers
51 views
Issues with Vim while using ZSH
I just changed my shell to ZSH. However, when I tried to edit a .py file in vim I got a strange error:
"test.py" [New File] Error detected while processing
...