vim (Vi IMproved) is a modular text editor that is upwards compatible to vi. The speciality lies within the editing modes which provide different tasks. Each mode can be reached by one or more specified keys. Normal (ESC): copy, (re)move, replace words and lines, text formatting Insert (i,a,o): ...
0
votes
1answer
64 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 ...
3
votes
1answer
30 views
Configure vim's :make to switch or open tabs on error
When I run :make from vim and there's an error, it opens that file on the error line number in the current buffer. If possible, I would prefer it switch tabs to the file if it's already open, or make ...
4
votes
1answer
43 views
How can I disable terminal resizing
Vim scripts sometimes resize the whole shell (in my case the Taglist plugin).
I don't want this behavior, which is possible with the shell command resize, too.
Is there a way to suppress the whole ...
0
votes
1answer
68 views
Vim freezes for a short time
When I work in vim, it happens (often) that it freezes for a second or two... after that it comes back to a normal life, executing all what I have typed when it was frozen
I saw this behavior on two ...
2
votes
1answer
25 views
VIM -Change waiting time for combined key maps
In VIM, When I map for example <F9><F10> to a command and <F9> to another command , it waits for 1-2 seconds when I press F9 to allow me press <F10> to access the command ...
1
vote
1answer
36 views
Multiply certain numbers in a text -file by certain constant
I want an alternative solution to this jQuery hack, tasting a bit reinventing the wheel -- look I am sure I could do this with some one-liner using basic *ix tools. Look much easier and ...
2
votes
1answer
74 views
Repeat the nth last command in vim
I've noticed vim can be pretty intuitive, but I'm having trouble finding a way to repeat the second-to-last command (or third-to-last, fourth-to-last, etc.). By typing . in normal mode it will repeat ...
5
votes
2answers
108 views
why inode value changes when we edit in “vi” editor?
When I edit a file in "vi" editor the inode value of the file is changing. But when edited with cat command the inode value is not changing.
8
votes
2answers
154 views
Vim interface on web browser input fields?
I am looking for a browser plugin which inputs textin of input boxes with the same keyboard interface of the Vim text editor. I have adopted Vimium which makes general navigation much more effective, ...
2
votes
1answer
94 views
Vim visual mode to system clipboard?
Using the vim text editor, I am looking for a method to copy content highlighted in visual mode to the system clipboard (i.e. I would then be able to Ctr-v that content say in a browser window).
Is ...
1
vote
1answer
73 views
vimrc mapping line numbers
I have these lines in my .vimrc file:
:map <F9> :exe ':!gdbset bp "%:'.line(".").'"'<CR><CR>
:map <F8> :exe ':!gdbset clear bp "%:'.line(".").'"'<CR><CR>
They ...
6
votes
2answers
113 views
Indent the middle of multiple lines
I often run int situations like this:
title : Jekyll Bootstrap
tagline: Site Tagline
author :
name : Name Lastname
email : [email protected]
github : username
twitter : username
feedburner : ...
1
vote
0answers
25 views
Using VIM, how do I remap directional keys from right hand to left hand?
This is the best solution I've seen so far:
" Map Right Directionals to Left Commands
noremap s h
noremap d k
noremap f j
noremap g l
" Map Left Commands to Right Directionals
noremap h s
noremap k ...
2
votes
1answer
60 views
Replace using VIM, reuse part of the search pattern
I am working with VIm and trying to set up a search and replace command to do some replacements where I can re-use the regular expression that is part of my search string.
A simple example would be a ...
3
votes
3answers
96 views
Run a vim macro from inside a bash script
In a bash script I want to edit a file. Is there a way to write a macro in vim, save it and then call it in bash script?