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
1answer
346 views

Can not bring a background running vim to foreground?

If I have a vim running in the background, it seems that I can not bring it back to foreground. Do you have any idea, why?
21
votes
2answers
4k views

vim scrolls very slow when a line is too long

I would never have thought that vim would be so slow. All I have is the following long line: I run vim (MacVim) under Mac OSX with the terminal app. Here is my vimrc. Hope that it has nothing to do ...
1
vote
2answers
367 views

Vim move word skips dot

I'm using MacVim with spf13 and when I use w to move a word forward, dots are seen as part of the word. myObject.myMethod() ^ ^ ^ | | | cursor | ...
0
votes
1answer
28 views

How to disable the leader key in vim insert mode

I mapped the leader key in vim to <Space> and I set timeoutlen to 250 to have time to use shortcuts with the leader key. But, this is annoying in insert mode, because when I hit space, there is ...
1
vote
1answer
21 views

Add additional paths to VIM on Windows

I want to add additional $paths to vim74 under windows. I use $VIM/vimfiles and $VIM/vimfiles/myfunctions a lot and wanted to add them as paths, i.e. $VIMFILES. I had worked out how to do it in ...
0
votes
2answers
42 views

How to disable Pentadactyl per site?

Is there a more definitive way to disable Pentadactyl on a url basis that is not -- PASS THROUGH -- ? When I try to use codepen.io I cannot edit any text fields, with or without pass-through enabled. ...
3
votes
3answers
4k views

Vim Solarized dark theme looks weird on iTerm2

I just installed the solarized colorscheme following instructions on the project's page. This is what it looks like now: which is not like those screenshots on the official page. Any idea how to ...
4
votes
1answer
7k views

What is compatible mode in Vim?

From the vimtutor LESSON 7.3: COMPLETION ** Command line completion with CTRL-D and <TAB> ** Make sure Vim is not in compatible mode: :set nocp Look what files exist in ...
2
votes
4answers
86 views

How can I go to particular line in Vim?

I have typed gg to go to the beginning of the file in Vim. Now how can I directly go to a particular line such as 505?
2
votes
1answer
139 views

In Vim what is the difference between “+ and ”* registers?

In Vim what is the difference between "+ and "* registers? Which one should be used for copying from and pasting to Vim from other applications? Do I need to append anything in .vimrc file to get ...
2
votes
1answer
21 views

What does this vim cmd mean? :%y+

I found a command to select all text in Vi/Vim file. :%y+ Could someone explain the line, please?
0
votes
1answer
21 views

Swap Left Alt and Right Alt on Kinesis Keyboard (or Any Keyboard)

Let me back up my problem a little bit for context. I am trying to use the same modifier-key-plus-letter combination between both vim and tmux so that, if I have a vim pane/whatever on one side and a ...
1
vote
2answers
3k views

My vim plugins are not loading

I am on a Mac. I want to install vim plugins. The problem like always is that after following exactly the instructions on https://github.com/tpope/vim-pathogen the plugin fugitive will not load. I ...
7
votes
3answers
1k views

vim macro to convert CamelCase to lowercase_with_underscores

Is there a vim macro to convert CamelCase to lowercase_with_underscores and vice versa?
0
votes
0answers
18 views

setup vim script to execute python file

I searched SO extensively and I can't get to fix this: I'm trying to code a pathogen friendly python plugin in windows. The setup would be: In \vimfiles\bundle\plugin I have a myscript.vim with: ...
0
votes
1answer
23 views

Why does my vim colorscheme stay after I close vim?

I recently used vundle to install the solarized theme for vim on my Arch Linux machine. Whenever I open vim, the theme is applied, but it stays applied to my terminal window after I close it. I can ...
0
votes
1answer
18 views

cmd-f freezes the program and has unexpected inputs in mac os X

I have a mac os X. After certain point, cmd-f is taking a very long time in every programs. The program freezes so that I have to eventually force quit the program I tried cmd-f. Another cue is that I ...
0
votes
0answers
11 views

Vim: change guicursor to empty rectangle shape?

The only cursor shape options I found were ver, hor and block. But what I actually want is this: It appears for a couple of milliseconds when I unfocus gVim and give focus to another window (e.g. ...
2
votes
1answer
62 views

vim wrong encryption key

When opening a vim encrypted file, it prompts for the password. But if I get it wrong, vim will show me garbage. How do I tell vim to reopen the file with a new password? Even if I close the buffer ...
5
votes
3answers
501 views

Vim command mode complete word

Is there a way to get Vim in command mode to complete words from the current file? Say I have this file: one two three once and I enter command line mode :myruncommand o| where | denotes the ...
0
votes
1answer
18 views

Editor with dictionary word completion [closed]

Is there an linux editor which can autocomplete words from a dictionary? I don't ask for autocompletion of already written words in a document (like gedit does). Also I am not looking for (personally ...
0
votes
1answer
437 views

ubuntu:terminal+ssh+vim, resize

Background: OS:ubuntu 12.04 Display: two, one is laptop, and another is a extended monitor, which is bigger. Problem: Open a gnome-terminal in the bigger display, and log on the remote Linux ...
5
votes
3answers
2k views

Vim completion - always suppress the newline after I select a suggestion with the Enter key

Sometimes, after I select a suggestion (from the completion pop-up that appears when pressing Ctrl-N) using the Enter key, Vim will insert a newline and the cursor will be moved to the following line. ...
1
vote
2answers
23 views

How to autocomplete single-double quotes, parentheses, etc in VIM editor?

I need that everytime a write a single or double quote, parentheses, curly braces, square braces... automatically vim should create the closing one and put the cursor inside in order to continue ...
0
votes
3answers
3k views

“.ssh/config” E212: Can not open file for writing

I'm new to linux. I downloaded an image of ubuntu 12 for VirtualBox and I want to configure the .ssh/config file to access via ssh to an application in development. I access /home/ubuntu folder and I ...
0
votes
1answer
18 views

vim-commentary clears line instead of commenting

I have vim-commentary installed through vim-plug (you can see my full dotfiles here with my .vimrc here). When I use the gcc command and then hit the down key (a range selection) on any line, vim ...
0
votes
2answers
117 views

Gvim middle mouse click horizontal scroll

I'm running Windows 7 x64 with Gvim 7.4 Using my external mouse, I was wondering how to achieve 'horizontal scroll', I read all the documentation about it but still haven't figured out how to achieve ...
10
votes
4answers
3k views

iTerm2 Vim alt+right/left arrow

As a Linux user, I am very used to jump from word to word in vim/nano using ALT+left or right. This doesn't seem to work properly using iTerm, I am using zsh, I tried adding; bindkey -e bindkey ...
2
votes
2answers
52 views

Is it possible to show the current file I have open in vim in my screen tabs?

Was wondering if it'd be possible to somehow show the current file I'm editing in the tabs of my screen Because it'd be way easier to know what I'm switching between.
8
votes
3answers
2k views

Count highlighted string length in VIM

I wonder is there a way to count highlighted symbols in vim (including white spaces)? UPDATE It shows rows count if my selection is on multiple rows. I need symbols count.
0
votes
0answers
15 views

Tmux + Vim split screen artefacts

I recently switched my whole workflow to tmux + vim and so far it was awesome; However I have on very frequent problem: There are artefacts after scrolling around in a file. Note that on the right ...
1
vote
2answers
691 views

Vim: Copy selection

Having a chunk of text selected in Vim's visual mode, I'd like to copy that to the system's clipboard (be it the primary or X11's). Is there an easy solution for this? Obviously, a simple y doesn't do ...
17
votes
4answers
5k views

How do I get the numpad to work in vim using iterm2 on osx with term=xterm?

My numpad works in iterm2 (bash), but it inserts characters instead of numbers in insert mode for vim. How can I get vim to recognise the correct escape codes. I have tried editing the escape codes ...
0
votes
2answers
31 views

vim/gvim command line switches?

I've just spent 1/2 hour trying to find a list of command line switches for vim. Since vim is a "command line editor" a search on "vim command line ..." is not very useful. I got curious trying to ...
1
vote
1answer
26 views

I can't replace line breaks in vim and iterm

In Vim in iTerm, I frequently encounter issues surrounding line breaks. For example, if I have a file containing the dreaded ^M most online tutorials will say that to perform a replacement I use a ...
0
votes
1answer
11 views

vim delete to tab character key

In vim I can delete from current cursor position up to a certain character, say g, using dtg. How do I delete up to the next tab char though? Is there a key to represent a tab in that situation?
0
votes
1answer
45 views

Vim very annoying and slow behavior with Conemu

my problem description gif image - link to imgur My executin environment -Windows7 SP1 -Vim74 (windows verson) -ConEmu latest version x64 version -My .vimrc file link to codepad Settings ...
14
votes
4answers
8k views

Vim shows strange characters <91>,<92>

while using vim over ssh I copied some content from a webpage to my ssh/vim session and got the following result SIZE=`df -h|grep $DISC|awk <91>{print $2}<92>` apparently <91> and ...
0
votes
0answers
16 views

Vim on windows 8.1 backspace is half-working

I'm using vim 7.4 on windows 8.1 64bit. I have set the path variables and it should be working 100% perfect, however when it comes to backspace the letters won't get erased 'visually'. What I mean ...
1
vote
3answers
231 views

Vim assembly formatting

Vim is not properly indenting assembly code, regardless of if I want it to do it automatically or if I try gg=G it'll just says ## lines indented even though it didn't change anything and all my text ...
2
votes
1answer
1k views

vim-powerline colors are out of whack in urxvt

I have attached two images showing what my vim-powerline looks like. As you can see, something has happened to the colors and I cannot figure out how to fix it. I'm running Fedora 17 on a clean ...
0
votes
2answers
30 views

The dot “.” isn't repeating last command

Somehow the dot "." command isn't repeating the last command for me. I'm searching a file for the string "xml" by issuing :/xml and vi, as expected, takes me to the next find. But now when I press "." ...
10
votes
6answers
2k views

Using Vim key bindings in Onenote

I found ViEmu, which allows you to use Vim key bindings in Visual Studio and certain Office applications. Does anyone know of similar software for using Vim key bindings in Microsoft Onenote? Free or ...
0
votes
0answers
21 views

How to get Vim to interpret only printable ASCII characters?

What I want is pretty simple, so hopefully the fix is pretty simple. I want whatever file I open in VIM to treat each byte as a low-ASCII character. I want the character to be displayed normally if ...
0
votes
0answers
94 views

Why doesn't Ctrl+[ (control + left bracket) work in GVim on Windows 8?

I'm on a macbook pro with a bootcamp partition running Windows 8.1. This problem also occurs on my PC with Windows 8.1 as well. In GVim, pressing Ctrl + [ should be equivalent to Esc but it does not ...
2
votes
2answers
29 views

Get rid of null character in vim variable?

I'm trying to fix vim's Backspace behavior on one of the platforms I use. I got the name of this platform (call it bad_platform) from the system's get_platform command. Following the advice in :help ...
0
votes
1answer
32 views

Scroll up command history in Vim without using function key

I recently bought HHKB (Happy Hacking KeyBoard), and it doesn't have direction keys -- it's through Fn + ;'[/ to achieve direction key. Therefore, I'm trying to avoid using direction key as much as ...
11
votes
3answers
5k views

Enable Bottom-Right Numbers in VIM

I've noticed VIM on my Mac doesn't have the line/column numbers in the bottom-right corner of the window whereas VIM on Ubuntu does. Is there a profile setting I can use to get my Mac to show these ...
1
vote
1answer
34 views

How does one append to the clipboard register in vim?

I already know that you can copy something the a register using: (plus a yank, delete, etc. command) "a I also understand that you can append to the a register using: "A In addition I understand ...
0
votes
0answers
29 views

Place pagebreaks in vim

How would I place pagebreaks in vim (equivalent to match printing specifications to a white xerox paper of 8.5 x 11 in size)? This is so that I don't have to manually adjust the lines to match how ...