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

learn more… | top users | synonyms

1
vote
2answers
49 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
68 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
33 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
21 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
78 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
26 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
30 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
32 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
67 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
27 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 ...
0
votes
0answers
16 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 ...
0
votes
1answer
85 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
2answers
38 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
38 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
22 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
56 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
25 views

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

For some reason the follow tag (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. There is nothing on the help ...
0
votes
2answers
62 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
69 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
29 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
86 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
50 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
160 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
66 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 ...
5
votes
1answer
570 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
61 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
55 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
43 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
56 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 ...
0
votes
1answer
67 views

Ctrl-[ not working in Windows 8 or XP running in Parallels virtual machine

I'd like to have Ctrl-[ work, i.e., have it exit insert mode, in VsVim in Visual Studio and in gVim both on my Windows XP and Windows 8 Pro virtual machines under Parallels 9 running on OS X Lion. I ...
0
votes
1answer
59 views

how to set default working directory in vim and cygwin?

My system is gvim 7.4+xp+cygwin. Everytime i open vim or cygwin,input pwd pwd in cygwin to get : /cygdrive/c/Documents and Settings/sy I want to set the default directory ...
0
votes
1answer
30 views

Should I bother moving stuff from vimrc to gvimrc?

Is is worth moving gui-related options out of my vimrc and into a gvimrc if there's only a couple such options? I'm kind of inclined to keep everything in one place and house gui options inside if ...
0
votes
4answers
50 views

Vim: Jump to previous cursor position, NOT edit point

I am trying to write a tiny macro to append a ; to the end of the current line (A;), then return to the cursor position from which I jumped before executing the macro. C-o and C-i are not what I ...
0
votes
0answers
14 views

why the wm=10 has no effect in my gvim?

Here is my .vimrc configuration file. set nocompatible set textwidth=90 set wrapmargin=10 let $LANG = 'en' set langmenu=en please see the attachment. I reopen gvim, why did the set wm=10 ...
0
votes
1answer
84 views

Vimscript: Error while checking for substring

I am currently trying to tie together a function to do something depending on current file path, triggered whenever I change the current buffer with autocmd BufEnter In my .vimrc autocmd BufEnter * ...
1
vote
0answers
61 views

Vim will not stop creating backup files (Windows 8)

I'm using Gvim on Windows 8.1 and even after setting nobackup and nowritebackup in _vimrc, Vim insists on creating those pesky backup files (the .ext~ ones). I'd like to disable this behavior ...
0
votes
1answer
49 views

Vim uses wrong encoding when invoking commands in the terminal

I'm using Vim (GVim, to be precise) under Windows 8 and I want to compile with the usual :!g++ %, but the name of the directory where my file is stored has accents, and Vim seems to have problems with ...
0
votes
2answers
140 views

gvim startup slow: huge GUI delay

vim starts up quickly. gvim takes ages, with or without loading plugins. The --startuptime option shows: 733.162 467.301: starting GUI 733.945 000.783: reading viminfo 25801.849 25067.904: GUI ...
1
vote
2answers
166 views

Shortcuts in gvim

I'm trying to migrate from Windows to Linux and am having difficulties with the shortcuts in gvim. For something as simple a copying you press "+y and I'm wondering 1)does order matter when ...
1
vote
3answers
36 views

How to Copy words highlighted after search directly into command line with shortcut?

Here is the situation, for example, I have several lines like this: foo test foo I searched "foo" with "/" and all the two "foo"s above are highlighted. And now I want to replace "foo" with ...
0
votes
1answer
220 views

Gvim fails to open: E25: GUI cannot be used: Not enabled at compile time

I'm new to Linux, and I just installed Linuz Mint under VMware Player. I'm trying to learn how to program, and I was trying Gvim (Vim's GUI). I installed Vim using sudo apt-get install vim and tried ...
0
votes
2answers
33 views

How to unbold listchars

My listchars characters looks like they are in bold as shown in screenshot below. How do I unbold them? I think it's set under the colorscheme but I don't know which setting to change.
2
votes
1answer
67 views

vim on Windows -Turn syntax highlighting OFF

I have downloaded Vim 7.4 on Windows 7 64 bit, and would like to turn off syntax highlighting. I have been using Vim for a long time on Unix, so I know to place "syntax off" in my vimrc. However, ...
0
votes
1answer
34 views

regarding swp files and same file opened in different vnc

I have different VNCs at work and many times, i forget to save or close some files opened in gvim. Later, I'll open up the same file in another VNC. Though it'll tell me that it is already opened ...
0
votes
2answers
74 views

Why there are '~(tilde)' in every file's extention when I edited with gVIM?

I'm using gVIM on Windows. Everytime I edit text file and save it, VIM makes a file with '~(tilde)' in extention - like this : 'crappycode.txt~' It's so annoying that I have to delete it manually. ...
0
votes
1answer
209 views

Why isn't the scripts in my autoload folder being executed in Vim?

I'm trying to use Pathogen to manage my Vim extensions. My bundle folder looks like this: .../bundle/ ├── vim-pathogen │   └── autoload │   └── pathogen.vim └── vim-smoothscroll └── autoload ...
0
votes
0answers
128 views

Gvim 7.4: how to save the default font setting? Any improvements from gvim 7.3?

As the following post demonstrates: How to change the default font of gVim on Windows 7 it is impossible to save the default Gvim font from the Gvim program. Closing Gvim will cause it to completely ...
0
votes
1answer
104 views

Czech language input method and font support in gvim 7.4 on Windows 7

I would like to reopen a question related to the following: (Czech) character set support in gvim 7.3 on Windows 7 Basically, in that post I noticed that some Czech characters were being displayed ...
1
vote
1answer
32 views

Return control to shell DURING `gvim -f`

I occasionally use gvim -f to start gvim but force the shell to wait for the gvim session to end before resuming execution of whatever it's doing (for instance, I usually edit my bash aliases using an ...
0
votes
1answer
73 views

Gvim on Windows 7: ALT codes not working

I would like to be able to enter ALT codes in Gvim on Windows 7 as documented on the following site: Alt Codes On Windows (Windows 7 in my case), to generate a character via an ALT code you ...