vim (Vi IMproved) is a text editor supporting different editing modes.
2
votes
1answer
147 views
Beep when typing backslash in cvim normal mode
I installed the cvim plugin for vim.
Almost all the cvim commands start with '\'.
But I when enter this character in normal mode, all I hear is a beep. Nothing happens. What might be causing this ...
0
votes
1answer
24 views
is there a vim shortcut or can I create one for 'tabe other_file'
When possible I create 1 or 2 letter abbreviations for aliases and the like, e.g. x for exit or p for pwd at the command line.
When using vim and doing multiple tabs for different files (which I can ...
1
vote
1answer
98 views
Is there a file menu plugin for vim (not gVim) that creates a text-based GUI menu system?
I'm curious to see if there are any plugins that create a menu inside vim (not gVim). Perhaps something simple like a menu bar at the top, with drop down menus that are drawn with text.
EDIT: The ...
25
votes
6answers
11k views
How can I edit multiple files in VIM?
I know I can open multiple files with vim by doing something like vim 2011-12*.log, but how can I switch between files and close the files one at a time? Also, how can I tell the file name of the ...
0
votes
1answer
85 views
VIM(Mercurial) +python3.2 on debian wheezy: Could not load library function PySys_SetArgv
> ./configure --enable-python3interp=dynamic --enable-gui=gtk2
> --with-python3-config-dir=/usr/lib/python3.2/
make
vim --version|grep pyth
+cryptv +linebreak -python ...
4
votes
2answers
119 views
How to consistently start Vim's command line to make a mapping work in any mode?
I try to normalize access to Vim's command line mode from any other mode in order to simplify my actual mappings. For example to make the <f6> key work from anywhere I define the following ...
4
votes
2answers
780 views
No syntax coloring in vim for me, but ok for my students
My students get syntax coloring in vim, but I don't!
Even when I "syntax on" as a command syntax on or put it in my .vimrc and/or .exrc.
The terminal is xterm.
I am missing something in vim or is ...
6
votes
6answers
3k views
Are cygwin vim commands different than normal vim?
I am unable to edit text files using vim in cygwin.
I have to press i many times to insert text. Sometimes it works and sometimes doesn't. Whenever I move cursor up down I have to press I many times.
...
3
votes
1answer
46 views
TERM=(linux|xterm) vi in an xterm or the AAABBBBBBCCDDD-problem
Usually when I want to run vim in a desktop konsole session, I make sure the TERM variable is set to linux as the arrow keys don't work in insert mode with TERM=xterm. They show capital A..D instead ...
4
votes
7answers
215 views
Uncommenting multiple lines of code, specified by line numbers, using vi or vim
I have learned from this Stack Overflow question that it is possible to use vi/vim to comment out a specified range of line numbers. For example, suppose I have the following bash script:
...
5
votes
2answers
72 views
How to re-run vim auto-indentation on a tex file?
I have a LaTeX source file with its indentation messed up.
I am looking for a way to force vim (may be through one of vim-latex-suite commands) to re-run the automatic indentation commands over the ...
4
votes
1answer
58 views
How can I jump to files from vim opening them in a separate tab?
I have installed tags so I can jump to a function body in another file via CTRL + ]
I know that I can do gf to jump to another file.
I know that I can do CTRL-w s to split the vim window.
What I don't ...
1
vote
4answers
40 views
Pasting with spaces added into heads of lines (analogy to comment-chars)?
Please, consider a situation, where you find a nice example and want to copy it to your existing code to see, how it works.
The indentation is almost never right right away. If there are several ...
2
votes
1answer
46 views
Vim gg=G (reindent whole file) without losing current position
Recently my main work was editing .xml files. Google told me that for re-indenting a file I need to press gg=G in normal. But moving to gg is something that I don't want. Is there any way to do the ...
1
vote
1answer
47 views
Deleting Word text-objects in VIM
In the expression (word (first-Word second-Word)) on typing diW with the cursor on f, I get (word second-Word)) when I would like just the Word first-Word deleted. On typing diW with the cursor on s ...