Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor.

learn more… | top users | synonyms

0
votes
0answers
42 views

vim leaving empty display on exit

I'm on OSX using zsh and vim clears my screen on exit, unlike less or man and other applications. When I exit vim, the next command prompt is on the very bottom of the screen, leaving empty lines ...
0
votes
1answer
48 views

How to change Audacious keyboard controls, preferably to Vim-like?

I couldn't find a suitable plugin, there is also nothing in ~/.config/audacious. What could I possibly do to change controls? For example, I'd like to have the following: j - move down the ...
0
votes
0answers
78 views

Strange behaviour of vim inside of gnu-screen

I use screen a lot and inside one of my screen windows, I use vim a lot. I have, however, sometimes, some strange behaviour of vim: After a while of using vim and switching forth and back between ...
2
votes
2answers
48 views

Updating the emacs style Time Stamp comments in vim

How can I implement this emacs auto time stamp in vim? I have the following string at the top of a file: // Time-stamp: <> Here // are comment characters. What do I need to do so that ...
0
votes
3answers
42 views

gVim closes automatically when opening python file

I'm using gVim 7.4 , it was running smoothly before installing Plugins after installing pathogen gVim window closes automatically when opening python files. It's working fine for other files except ...
0
votes
0answers
34 views

How to change key binding for backward search in VIM?

I am using VIM 7.2 remotely (in a server), and when I try to hit the question mark (in insert mode) it exits insert mode, and prompts for a backward search. In short, I can't type ? as plain text ...
1
vote
2answers
93 views

vim: library of common substitutions without plugins?

I would be wanting to perform thinks like :'<,'>s/^\ \ \ \ // in an abbreviated form, like :'<,'>s_lw (no matter what would actually be that s_lw) using vim base functionality, initially ...
0
votes
0answers
219 views

Why is my Gvim font so ugly and grainy under Windows 7?

I use Gvim on Linux and Windows. On Windows 7 Gvim just looks ugly. Mainly because of the font. The fonts looks very grainy and poorly rendered. I tried a few different fonts. ...
1
vote
4answers
244 views

Select all matching text in Vim?

I have a bunch of data, and I want to yank everything that matches the following regex to a register : /'user': '[a-Z]*' Is there any way to copy all the matches to a register in vanilla vim? I've ...
0
votes
1answer
58 views

Strange backspace behavior

In both command line vim and gvim alike, I have a situation where the backspace functionality behaves like some of my old vi experiences. If I press backspace in edit mode, the character is not ...
1
vote
2answers
39 views

How do I add a regular expression to a mapping command in vim?

I want to map :b<buffer_number><cr> to <leader>b<buffer_number>. I have: nmap <leader>b :b which is not enough, because I still have to press Enter. I also tried: ...
0
votes
1answer
42 views

How to bring vim back to foreground in Powershell

launch vim from powershell hit control+z (you are dropped back to powershell, vim is in background) ??? How do you bring Vim back to foreground? EDIT: I have tried fg
0
votes
1answer
33 views

Restore previous Vim search term?

Is it possible to save/restore Vim search terms in a map? For instance, I have the following in my .vimrc: map ,/ :s/^/\/\//<CR> If I have turned on highlighting (:set hls) previously in the ...
0
votes
0answers
120 views

Nerdtree crashes (mac) vim

I consistently get vim to basically fail when I use NERDTree and would like help! If I type :NERDTree & inside of any split (usually as a typo), macvim will become unresponsive and vim will throw ...
1
vote
1answer
93 views

Unable to find source of environment variable

So I did the mistake of removing an earlier version of Vim manually on Windows without going through the "Uninstall Program" dialog. The result left me with the enviroment variables of "vim" and ...
0
votes
1answer
27 views

vim: how to make the cursor as wide as the tab-character it is currently on?

When I navigate a file with vim, the cursor always highlights the current character. This works for normal characters having width 1. But for control characters or tabs which take up more space on ...
1
vote
2answers
237 views

How to reload vundle plugin after configuration change

I am using Vim with Vundle and I just changed a plugin specific setting in my .vimrc: let g:NERDTreeWinSize = 60 How do I reload the plugin to pick up this setting(s) without restarting vim?
1
vote
1answer
53 views

Move to next fold of level 1 in vim

I am looking for a good way to jump between function definitions in C++ code. I like the idea of using folds for that, because I can move to the next function/method using zj, but that only works if ...
1
vote
1answer
62 views

How to set ouput of the command execution in gVim to be in gVim window in Windows?

From time to time I use gVim in windows. I am used to running commands with :!which in Linux outputs into gVim window but in Windows the new command line window is opened. How to force gVim to output ...
0
votes
1answer
44 views

Why was vim deleted after system (ubuntu 14.04) update?

Everytime I compile vim and install it (I always use manual from the site), it is deleted after an Ubuntu update (not all updates but some of them). After such updates ubuntu always ask me to use ...
1
vote
1answer
139 views

Hitting enter in the quickfix window doesn't work

Normally, hitting enter in the qucikfix window leads to jump to the corresponding line. But when I hit enter, there is a message in the status line, says "xxx matchs, xx lines", instead of jumping. It ...
1
vote
1answer
27 views

Vim replace occurences of word with and without first capitalized in one S&R command

eg I have this peace of Java code public String setType(String newType) { this.type = newType: } I select all of it and I would like to search and replace type by model, but regardless of the ...
0
votes
1answer
36 views

How to switch windows in Vim in Windows (the OS)?

I've read that Ctrl-W + hjkl switches windows in Vim from this answer, but when I try that it simply closes my terminal. I'm on Windows and using vim on a remote account in my terminal.
1
vote
0answers
93 views

Neither less or less -X clear screen on exit. (Trust me, I googled…)

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
0
votes
1answer
46 views

Cursor in gvim changes very slowly between insert and normal mode

I noticed rather annoying behavior in gvim which relates to changing my Linux distro to openSUSE. When switching from insert to normal mode (hitting ESC) the cursor needs at least second! to become ...
1
vote
0answers
97 views

Full Keyboard Navigation PDF Reader With Highlight Function on Windows

After being addicted to VIM, I feel I hate to move my hand out the keyboard to reach the mouse. I'm currently using Acrobat, sometimes I want to highlight some text. I have to select the highlight ...
1
vote
2answers
75 views

Vim colorschemes ONLY works in .vimrc

If I'm editing specifically ~/.vimrc in vim :colorscheme <some colorscheme> will do exactly what it's suppose to do. Only schemes in /usr/share/vim/vim74/colors will work though and not say in ...
1
vote
0answers
58 views

Display soft hyphens in VIM

How do I get (G)VIM under Ubuntu 14.04 to display soft hyphens in a UTF-8 encoded text file? The encoding and the fileenconding settings are both set to utf-8, and characters like the German umlauts ...
1
vote
1answer
32 views

In vim how do I auto shift-back a tab space when closing a tag

E.g. if I have <html> <head> </head> </html> </html> should shift back to be inline with the other tag, I've tried googling things like my title but all I ...
0
votes
2answers
82 views

Shortcuts in the vim minibuffer

In Vim, there is line at the bottom of the screen where commands are typed. IE :q :w :help etc I call this the minibuffer, but this is probably the wrong term. My question is: When I am typing a ...
0
votes
1answer
84 views

vim's vimrc messes up vim completely

i am using manjaro linux, and i installed vim using $ sudo pacman -S vim then i modified my vimrc file $ sudo vim /etc/vimrc then i added some cool things: set background="dark" set number set ...
0
votes
1answer
38 views

How to run something insert mode, get user input then return to insert mode?

I have inoremap <C-d> <C-o>:%s/\<<C-r><C-w>\>\C//g<Left><Left>, which works great (emulating sublime text's find-all multi cursor more or less). However it ...
0
votes
1answer
45 views

How can I get VIM to maintain the creation date for a file? (OS X)

So whenever I save a file in VIM on OS X, it seems to overwrite the entire thing instead of updating it. If I run ls -tU I can see that the creation date changes and it does indeed update to the last ...
0
votes
1answer
143 views

VIM Crashes/Freezes on specific files Mac OSX Mavericks

I've recently switched over to using VIM and use a friends .vimrc that works well for him https://github.com/dtothefp/dotfilesv2/blob/master/vim/vimrc.symlink I first installed vim through Homebrew ...
1
vote
1answer
27 views

Vim - mapping for moving between buffers silently

in my .vimrc I have the following mapping to move between buffers: nnoremap <silent> <C-b> :bp<CR> nnoremap <silent> <C-n> :bn<CR> This mapping works but it ...
0
votes
0answers
236 views

vim (7.4) command line does not display on win8.1 64 bit

The vim (7.4) command line does not display on win8.1 64 bit in mintty, rxvt, or command prompt windows. I am using the same config files on win8.1 as on win7, where vim displays correctly (same ...
0
votes
2answers
106 views

How to get vim like split open (horizontal) in notepad++

I would like to use notepad++ like vim split open in horizontal mode. Opening files in vertical mode can be done by move file to other view. I need to open files in vertical. Is there any plugin ...
0
votes
1answer
125 views

vim CTRL-B behaviour at top of file

I've been practicing to use VIM for some time now, but I still find the CTRL B behavior near the top of a file irritating and would like to know whether (or how) I can modify how it works. Normally ...
0
votes
1answer
230 views

Inconsolata font with powerline support and italics

Is there an Inconsolata font package with italics and support for powerline? I have only been able to find: powerline-fonts - has powerline support but no italics Inconsolata-LGC - has italics but ...
1
vote
2answers
81 views

Recompile vim with the same features

I want to recompile vim with the same features for a different linux distro. I only kept the source tar and I don't remember any of the arguments I gave ./configure the first time. What's the easiest ...
0
votes
1answer
78 views

Can't remap ctrl or alt combinations to commands

In Vim, I am ttempting the following remaps: nnoremap <A-1> :make<CR> inoremap <A-1> <Esc>:make<CR>i Basically, I want to remap alt+1 to :make. However, this remap ...
1
vote
1answer
621 views

E185: Cannot find color scheme for synload.vim (Line 19)

I've specified the location of .vimrc and .vim: .vimrc file saved at ~/.marslo/.vimrc .vim folder saved at ~/.marslo/.vim After set the rumtimepath, plugins (installed by vundle) and colorscheme ...
0
votes
2answers
291 views

Why the runtimepath in vim cannot be set as a variable

I've specified the .vimrc and .vim location. In my vimrc file, I found the runtimepath can be set as a absolute value likes: set rtp+=~/.marslo/.vim/bundle/vundle But it CANNOT be set as a ...
0
votes
1answer
1k views

Open Macvim within terminal without opening a new window

Every time I try to edit a file, I do mvim file.txt in the terminal then a new MacVim window pops up. But if I do vim file.txt, it will not open a new window. Instead, it will initialise vim within ...
0
votes
0answers
110 views

Linux, vim and ssh: why is vsplit slow?

As soon as I have more than one file visible with a vertical split (= :vsplit) the moves and screen refresh become sluggy. I've noticed that on many different Linux systems (old and my very recent ...
3
votes
2answers
261 views

Autoformat for Perl in Vim

I got a piece of code about perl: if ($a==1){ &err_report("$a"); while($b!=1){ &err_ok(); } } And, I want to format it in vim. After using command: gg=G, the code ...
1
vote
1answer
218 views

how to cancel highlighting the 80th column in vim?

I use python-mode and solarized plugin in my vim, and I think either one of them sets highlight at 80th column, so that I get a visual on how long each line should be, but actually python-mode will ...
0
votes
1answer
200 views

mapping command mode on iPad

On my Mac, I put the following in my .vimrc to use ii as the key. Note, I include the : in the .vimrc file, i'm not sure if you're supposed to but it still works :) :imap ii <Esc> I'm now ...
1
vote
1answer
44 views

What is the meaning of the @ symbol in a :let command

The Vim docs provide this command to clear the last search. Is one supposed to type @/ or /. I'm assuming the former, but it gives wonky results. If it is the latter, what's the purpose of @ :let @/ ...
0
votes
1answer
105 views

getting clipboard support for vim

I am using vim in a terminal emulator on Ubuntu 14.04. I have been using it for a while and had been getting along fine, until I had to copy lines from one file to another. After some searching I ...