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

learn more… | top users | synonyms

0
votes
1answer
27 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
51 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
39 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
33 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
40 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 ...
1
vote
1answer
18 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
20 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
20 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
42 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
27 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
101 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
44 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
77 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
20 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
43 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
52 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
58 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
401 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
69 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
69 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
175 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
587 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
43 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
76 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 ...
3
votes
2answers
160 views

How to format a string substitute, or a text line, in Vim?

Is it possible to format the replacement string when substituting a match with Vim? Say I have a file with a 2-column table, where the entries in each row are separated with a space. The entries (and ...
0
votes
1answer
38 views

Can I change a Vim setting persistently using a shortcut?

Can I change a Vim setting persistently using a shortcut? Hypothetical Example: nnoremap <script> <F7> :call ChangeConfig()<cr> function! ChangeConfig() set virtualedit=all ...
2
votes
1answer
38 views

How to change the searched text under the cursor in vim?

Let say that you have the following text: test_text test_text_1 test_text_2 and you search for "text" (/text) and your cursor will go on the third "t" from "test_text", then how to change it (the ...
1
vote
2answers
41 views

How to determine what buffer was changed externally with gVim?

I am using the following Vim autocommand in my .gvimrc file: augroup MyAuGroup autocmd MyAuGroup FileChangedShell * call FileChanedEvent_BuffUpdate() augroup END function ...
1
vote
2answers
96 views

Why is there a difference in the popup dialog from .gvimrc and command line?

I am using gVim's confirm() function to pop a dialog waiting for the user to click a button. However, there seems to be a difference in the appearance of the dialog when called from .gvimrc: Using ...
0
votes
1answer
36 views

How to change the default button on gVim's W11 (“File has changed”) warning popup?

When working with a file that is regularly changing externally, a popup warning dialog is opened, asking whether to keep buffer contents (the default) or load the updated file into the buffer: Is ...
1
vote
0answers
96 views

How to make Sublime behave like Vim while folding code?

I'm recently moving from Vim to Sublime. Then I find some differences here, when I fold some code in Sublime, it automatically select those code, then I have to press Esc to cancel. Furthermore, if I ...
1
vote
1answer
400 views

how to install a color scheme with yadr

someone advised me to use yadr, which is supposed to make installing dotfiles etc much easier for vim however I just couldn't figure out a way to install base16 through yadr.. before I had to ...
0
votes
3answers
64 views

Vim - Visual Mode - Improve Word Selection

Gentlemen/Ladies, I do not understand why vim is exhibiting the following behavior when I trigger the shortcut below on visual mode (.vimrc): vmap <script> <C-LEFT> :call ...
1
vote
1answer
50 views

How can I check if the cursor is at the end of a line?

Gentleman, Simple question about Vim! How can I check if the cursor is at the end of a line using a function in vimrc? []'s
1
vote
1answer
50 views

How to remap backspace when using ibus and vim?

First I do :inoremap <BS> x and then enter insert mode. Then switch to Hangul input in ibus. Now I try to type 마 and it shows up as ㅁx마 I guess that makes sense, right? ibus must have ...
1
vote
1answer
112 views

Better mouse-click behavior with gVim's virtual edit

I like using Vim's virtualedit=all feature, but I also like being able to click after the end of a line and have the cursor go directly to the end of the line (instead of going to the exact position I ...
1
vote
1answer
47 views

In gvim on windows C-] does not work (but C left mouse works)

Ctrl+] in gVim on Windows does not work for me. I know that the tags file is loaded since the Ctrl+left mouse button works as intended. I did not find anything of help in Browsing programs with ...
1
vote
2answers
201 views

vim - Autosave file to disk, efficiently

I keep a log file, and want it to be written to disk without having to manually save it after every edit. I've used the :au! CursorHoldI,CursorHold <buffer> silent! :update command that I found ...
2
votes
2answers
118 views

How can I pop-up a cheat sheet in GVIM on command?

I know there are lots of cheat sheets for VIM out there, but I hate having to print out so many cheat sheets. Is there a way I can pop-up a cheat sheet with a shortcut? I am using GVIM on Windows, ...
0
votes
1answer
37 views

Using vim for creating fixed width text?

I've got text in the form xxxx yyyyy xx yyyy xxxxxxxx yyyyy x y I'd like the second set in each line to begin at the same point ie xxxx yyyyy xx yyyy xxxxxxxx yyyyy x y I ...
1
vote
1answer
169 views

gvim latex interface not appearing after latex-suite installation

I have been installing gvim with the latex-suite plugin on a laptop running an Ubuntu 13.10 OS. The installation of gvim worked, but I'm not sure if the latex-suite installation did too. According to ...
1
vote
1answer
85 views

gvim suddenly starts triggering User Account Control, on Windows 7, breaks AutoHotkey

On Windows 7, my copy of gVim has suddenly triggered the User Account Control popup "Do you want the following program from an unknown publisher to make changes on this computer?" As far as I can ...
0
votes
0answers
482 views

Compiling Vim 7.4 with GUI support on Fedora 20

I've installed the following dependencies before trying to compile Vim 7.4 from source on Fedora 20 (Default Gnome). I've removed the vim-enhanced package via yum before proceeding: yum install ...
0
votes
1answer
229 views

Cannot get konsole to show the right characters for fancy powerline

I'm using Kubuntu and the patched fonts for powerline are not working as expected... The screenshot is from terminal Vim, but gVim has the same problem in my machine. Does anyone have any ...
10
votes
1answer
2k views

Can't run Vimdiff (7.4) on Windows 7

I recently installed the 7.4 version of gVim on a Win 7 machine. Trying to diff two files from the context-sensitive menu on Windows Explorer, I keep getting the error messages: E810: Cannot read or ...
0
votes
1answer
146 views

Vim not making font italic when it should?

I use gvim and use the colorscheme called slate. I modified it a bit and saved the changes in .vim/colors/slate-mine.vim and all the changes take effect except for one. I wanted to make all comments ...
1
vote
1answer
81 views

vim - how to treat three quotations in a row as a comment rather than a string

I use python and in python, three quotation marks in a row """ or ''' signify a block-comment, and a normal comment is just a hashtag. (#) I want comments to be colored grey and strings to be ...
0
votes
1answer
64 views

how to search for vim files in lubuntu?

I want to change one of gvim's existing colorscheme's syntax coloring. For example, in the colorscheme called 'Ron', it highlights python comments in white. I want to change it to red. According to ...
0
votes
3answers
188 views

How to use my Eclipse CDT syntax coloring setup as my gVim color schemes?

As Eclipse cannot show two pans of code simultaneously, I am used to using gvim to have it. But the color scheme / syntax coloring is different, what makes code review and comparisons hard. Is there ...