All about the VIM editor in one of its graphical incarnations.

learn more… | top users | synonyms

0
votes
1answer
8 views

Stop Vim from automatically tw=78 line-break wrapping text files

I recently updated Vim, and noticed that whenever I open a .txt file, the option tw=78 is set. (Which makes Vim automatically break lines when they would have exceeded 78 characters.) I don't like ...
1
vote
1answer
18 views

Vim - automatically delete SWP file after recovery doesn't change the original file

When the Vim process is abruptly terminated (e.g. system crash), it leaves a SWP file. Opening the original file in Vim later gives the option of recovery. Most of the time the recovered file is the ...
0
votes
2answers
35 views

Gvim: Disable alt-letter behaviour inserting accented/unicode chatacters?

I was using alt-j, alt-l, alt-i and alt-k to go to the beginning/end/top/bottom of the current line. Over the years I noticed there's so much stress on the alt key, so now I decided to go try other ...
0
votes
3answers
39 views

How to concatenate pairs of cells; every second cell to the first

How to concatenate successive pairs of cells in a column, adding the second cell of each pair to the first. For example: santhosh kumar sagar sv sai deva And the result should be: santhoshkumar ...
0
votes
0answers
16 views

saving/:w a python file in gvim is creating two of the same files with different extensions [duplicate]

When I first :w test.py My file saves on my desktop with a picture of a python script and the file type is shown as Python File. Now when I go to save my file without including the name as in :w a ...
0
votes
0answers
81 views

gvim (version 7.4.52 and 7.4.622) doesn't refresh properly on Ubuntu (14.04 LTS)

The problem is happening on Ubuntu 14.04 LTS running Unity desktop under vmware on Windows 7 host. My gvim is sometimes not refreshing its display unless I force it to using Ctrl+L. For example, when ...
1
vote
1answer
126 views

How to “Edit with Vim” as administrator in Windows?

When you install gvim in Windows, you get a right-click Explorer context menu item: "Edit with Vim". Is there a way of either adding a "Edit with Vim as Administrator", or just changing the existing ...
0
votes
1answer
21 views

Vim macro: increase last number of a line by 1

I have a csv file whose last column contains either integers, or the character "-". I need a vim macro that does the following: If last element of current row is "-": Turn "-" to "1" Else ...
0
votes
0answers
49 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 ...
0
votes
1answer
42 views

How can I get gvim to use the system (GNOME) theme?

I use the dark theme on GNOME (Gnome Tweak Tool -> Appearance -> Global Dark Theme -> On), which looks great with Terminal, Files, and almost everything else. But Gvim still has a white window border, ...
1
vote
1answer
96 views

ConEmu: Open files in vim with ConEmu through File Explorer

Is it possible to open files by double clicking an associated file extension or through context menu with vim in a ConEmu tab?
0
votes
0answers
25 views

Colorschemes in vim using mac

I've trying for a while to implement the colors in vim and they does not appear. I have saved various colorschemes in the vim/colors folder and all that seem to be fine. Also, when I load the color ...
0
votes
1answer
28 views

Vim from terminal can locate package, GVim cannot

So I've been installing Syntastic and JSHint for some Vim JavaScript syntax checking. which jshint returns /home/myUser/local/bin/jshint which vim and which gvim return /usr/bin/vim and ...
1
vote
1answer
41 views

difficulty opening a file(man page) with funny characters in gVIM

I did man ssh_config>a from cygwin I generated the file I want to print $ man ssh_config >a I then opened it in gvim as you see from the screenshot. I might join many of the lines (vim's J) ...
0
votes
1answer
33 views

How to separate Vim themes for LUI and GUI with same general configuration?

I like twilight theme for my Vim, but this theme has 2 major versions, twilight256.vim dedicated for terminals and twilight.vim designed for graphical interfaces. I just wondering how to separate ...
2
votes
0answers
260 views

Vim silent launch of ConEmu (into Git Bash) - Windows 7 Command Prompt seizes

From a Windows 7 Command Prompt: ConEmu.exe /cmd "C:\Program Files\Git\bin\sh.exe" --login -i && exit opens ConEmu (or a new tab therein) logged into Git Bash for the current directory, and ...
0
votes
0answers
22 views

Hide buffers not tied to a file from bnext/bprev buffer list

I love VIM buffers and do use :bnext and :bprev to navigate my buffer list. I even have mapped them to <tab> when in normal mode. Simple and convenient: " Maping next/prev buffer to <TAB> ...
1
vote
1answer
105 views

Firefox — How to open a link (to any text-based file) in Vim?

Rather often, I see web pages with links to files that I want to open directly in gVim (when browsing with Firefox on Windows). Chrome-specific answer — also good to have. Attempting to get this ...
2
votes
1answer
142 views

gVim: Pathogen not loading plugins properly (Windows)

I'm using gVim 7.4 on Windows 7 x64. When I place a plugin in the bundle folder, the plugin's commands don't seem to be registered. My setup is as follows: gVim is installed at C:\Program Files ...
0
votes
1answer
25 views

How do I open multiple files as part of gVim's launch procedure?

I use gVim a lot in Windows at work to edit text files. I want $VIMRC to always be in buffer 1, and my vim_cheatsheet to always be in buffer 2. I tried putting "e $VIMRC" in my .vimrc, which didn't ...
0
votes
3answers
156 views

Why is the cursor flashing at the end of the line in gvim?

I recently started using vim/gvim and I have this really annoying problem where cursors flashes at the end of the line with every character I type in insert mode. Take a look at this video and you'll ...
0
votes
3answers
33 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
148 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. ...
0
votes
1answer
41 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
1answer
89 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 ...
0
votes
1answer
44 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
1answer
379 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 ...
1
vote
1answer
291 views

Vim - How Recognize Spaces as Tabs (set listchars=tab)

I wonder if it is possible to use a configuration for that command "set listchars=tab:▒░,trail:·" to "see" 4 spaces as tabs and get the effect of the picture below (using real tabs)... I use the ...
0
votes
1answer
88 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 ...
0
votes
0answers
12 views

Lost gvim feature

In version 6.4 (windows) I could issue the commands such as gvim . gvim .. gvim \ .. and gvim would present the directory directory in question and allow navigation through the file system until ...
0
votes
1answer
242 views

let mapleader = “\<Space>” not working arch linux

I'm trying to map space bar to leader key by using the code above but there's a problem - whenever I press space, the pointer moves forward a character, which annoys me. What am I missing? (gvim@arch ...
2
votes
1answer
32 views

Plugins cause gVim window to move (become “unsnapped”) in Windows

I have a couple of Vim plugins that seem to cause aero-snapped windows in Windows 7 (Aero windows, not Vim windows) to pop out of their "snapped" position when certain events occur. I don't know ...
0
votes
1answer
136 views

How do I use a font with a space in its name in gVim?

I just installed vim-airline, and I want to use a font that has support for the cool arrow glyphs that vim-airline supports. So, I downloaded the font "Liberation Mono for Powerline" from the ...
0
votes
0answers
37 views

Gvim font loading issue

Possibly related: Gvim displays wrong font when set from _gvimrc, but correct font when set from menus I'm experimenting a weird behavior with gvim (under GNU/Linux) while trying to set up a specific ...
0
votes
1answer
43 views

Vim line numbers in insert mode

For some reason, Vim (gVim for Windows) turns off the line numbers when I enter insert mode. This can be rather jarring, because it shifts all the code to the right or left when I leave or enter ...
0
votes
1answer
47 views

setting gvim as editor for crontab

I've see many post saying that by setting the following evnironment variable EDITOR=vim or VISUAL=vim will allow to use vim as code editor for crontab. I would likt to try to use gvim instead ...
0
votes
1answer
374 views

Line length highlighting works correctly in console Vim, not GUI

This question is related to this one. Damian Conway provided a nice snippet for marking excessive line length in his recent OSCON 2013 talk about Vim. highlight ColorColumn ctermbg=magenta call ...
1
vote
1answer
77 views

Make (g)vim buffer a remote file

I regularly work remotely on a linux machine using vim. Sadly the connection to the remote host is not very good, giving me a very tough time. Is there a way to make my locally running vim or gvim ...
-1
votes
1answer
158 views

How to define default path to CtrlP for Vim in windows 7?

This is what i put in _vimrc to make E:\Workspace as project folder after hit Ctrl+Space after activate Ctrlp nnoremap <C-Space> :CtrlP E:\Workspace\<CR> but when I hit Ctrl+Space it ...
0
votes
0answers
32 views

gvim – Map en-dash and em-dash

I use a custom keyboard layout that has keys for the en-dash (–) and the em-dash (—). I’d like to map these to commands in gvim. Currently when I press either of those keys in normal mode, gvim beeps ...
1
vote
2answers
72 views

Vim: Open current windows/tabs in GVim instead

Let's say I have been working in a given Vim session for some time, and come to a point where I really would like to have everything I am looking at in GVim instead. The actual use-case is a terminal ...
0
votes
0answers
70 views

“Open with… Vim” does not load _vimrc settings

I use Vim (gVim to be precise) to write and edit files. When executing the editor directly, everything works fine. But if I open a file using the "Open with..." command on Windows, the _vimrc settings ...
-2
votes
1answer
70 views

Vim - Using Functions to Search (.vimrc)

I'm have a timing problem with a function that I use to search in Vim. I need the search to be executed immediately, not after the function ends. I'm using "feedkeys" function (eg. ...
0
votes
1answer
1k views

Change menu/ui language of vim to english

I search on google and I read several answers but I am unable to change the menu/ui language of vim to english. Im my .vimrc I have set langmenu=en_US.UTF-8 language messages en_US.UTF-8 but it ...
0
votes
1answer
173 views

Vim experts: how to find a number within a range based on two numbers? Eg “777” matches “667:888”

I need to search for numbers in a text with Vim. The numbers I need to find are often within a range based on two numbers and I need to match that range based on a single number. For example, in my ...
2
votes
2answers
175 views

Highlight Search (hls) matches of multiple search terms with different colors

Many times when working on code, I search for the occurrences of variables with similar names. For examples, find all matches of var1 and var2 as: /\<var1\>\|\<var2\> Now I really like ...
1
vote
2answers
221 views

What color scheme is used for the code examples on o'reilly atlas site? [closed]

I would really like know what colorscheme this is, and if it is already available for vim. The screengrab is taken from the O'Reilly Atlas site. Link to the actual site with more code examples.
0
votes
1answer
1k views

Can't get vundle or neobundle to work on GVim on Windows 7 64bit

Can't get these add-ons (vundle or neobundle) to work on my Windows 7 machine. Everytime I try to install plugins I'm getting the following error messages: Error detected while processing function ...
0
votes
1answer
47 views

How do I keep the window centered on a particular line number while switching files in vim?

I need to quickly compare different versions of a file and need to constantly change to a new file. Is it possible to fix the cursor on a particular line number while I cycle through different files? ...
1
vote
0answers
128 views

Unable to use vim-fugitive when running Windows gvim from Cygwin

I'm running Windows version gvim from Cygwin which I have set up an alias in my bashrc based on this answer: alias gvim="HOME=/c/Users/user cygstart /c/Program\ Files\ \(x86\)/vim/vim74/gvim.exe" My ...