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

learn more… | top users | synonyms

2
votes
1answer
401 views

How to compile a gvim from source using the latest version?

I'm using Ubuntu. I performed the following commands in the vim source folder: sudo apt-get build-dep vim ./configure --with-features=huge --enable-gui=gtk2 --enable-rubyinterp=yes ...
0
votes
1answer
81 views

gvim mapping keys to ex commands while in visual mode?

So in gvim, after I press <Shift> + v it goes into visual mode. I normally have an ex command set for the letting 'm'. When I go into visual mode and then hit 'm' it says No range allowed ...
2
votes
1answer
77 views

gVim for Windows: How to properly escape filenames that will be used with !start?

I have this piece of code in my .vimrc in order to make files of different types be opened in different gVim instances. function GetSvrName(ext) if !exists('s:ext2srv') let s:ext2srv = [ ...
3
votes
2answers
61 views

Replacing the pager inside vim?

Note: Not using vim as a pager. That's covered extensively on the Internet. When you press Tab to complete various kinds of stuff inside vim/gvim, it brings up a fairly basic pager. For example, ...
1
vote
2answers
695 views

gvim how to change exisitng colorscheme's syntax colors?

I use gvim and the color scheme which I use is called 'slate'. I mostly just code in python, html and css and I like slate's syntax coloring except for a few syntax colors. Is it possible for me to ...
2
votes
1answer
856 views

how to turn off gvim error highlighting?

I use gvim as my text editor and the syntax coloring is great except it highlights "errors" and gives it a white background with red font. How do I turn off error highlighting? I find it annoying and ...
0
votes
1answer
169 views

gvim how to change entire background color

Okay so im my .vimrc file, I did type hi Normal guibg=#000000 changing the background color to black, however, this only changes the background color of the lines where I have typed out text. If ...
0
votes
1answer
157 views

gvim how to remove word highlighting

Okay so I am using the 'slate' color scheme in gvim and it is really great and I like it a lot except recently I have starting working with html and css files and for some reason, it starts ...
0
votes
0answers
96 views

gvim how to open different FileTypes in different color schemes

okay so I want gvim to open all my files using the 'slate' color scheme except for .html and .css files. I want it to open .html and .css files using the 'ron' color scheme. I tried doing colo slate ...
1
vote
1answer
115 views

(Czech) character set support in gvim 7.3 on Windows 7

I have received the following text on a Skype conversation, so I assume it is encoded in UTF-8. The special characters are from the Latin 2 (e.g. Czech) character set. Štěpánka Now I have tried to ...
0
votes
1answer
106 views

SingleCompile plugin Installation in vim

I'm using debian wheezy. I've downloaded SingleCompile plugin and I installed in vim 7.4. As there's no directory like ~/.vim I created one using mkdir ~/.vim and move the extracted plugins to ...
2
votes
2answers
90 views

Opening search results with Vim ONLY if they exist

:) In my never-ending effort to get lazier, I am looking for a way to improve my "Open Grep/Ack-results in Vim"-snippet. What I'm currently using to open found files is: vim $(ack -il "pattern") ...
0
votes
1answer
57 views

Move display line with Ctrl-E in Vim?

I've set noremap j gj and k gk in gVim for particular filetypes, to make Vim move by display lines rather than "actual" lines during navigation. However, I also frequently use the Ctrl-E shortcut to ...
2
votes
1answer
358 views

'Fixing' the right click menu in gvim in Ubuntu

I have installed gvim in Ubuntu 12.04 and it has no right click menu. For example, if I select a block of text and right click in the region, the size of the selection changes up to the cursor ...
1
vote
1answer
553 views

Changing drive in NERDTree (gVim, Windows)

If NERDTree starts up somewhere in the C: drive, once I reach C:\ itself (which NERDTree considers as "/"), I get the message "already at top dir" if I try to click on the double dot .. NERDTree's ...
1
vote
1answer
592 views

Unable to load any usable fontset

I have recently upgraded to VIM 7.4 from 7.3 on system A, and set up a clean install of 7.4 on system B. When launching gvim on A I get : Warning: Missing charsets in String to FontSet conversion ...
0
votes
2answers
221 views

'show more fonts' option on gVim

In the Select Font... dialog of gVim, there's a link at the lower left that says Show more fonts. When I click it, I'm simply taken to the Fonts folder in Control Panel. How can I use that to set a ...
0
votes
1answer
38 views

Why is GVim displaying the output from system() function as ^M and ^@

function! g:insert_date() let l:pattern="\\d\\{2}:\\d\\{2}" let l:match=match(getline('.'),l:pattern) let l:curline=getline('.') echo "Current line: ". l:curline normal gg ...
0
votes
1answer
114 views

Start gvim at specific line, from a doubleclick on line in sumatraPDF

I use sumatraPDF and gVim to edit LaTeX files. Sumatra supposedly has a feature to open an editor at a specific line by the variable %l. As far as I can see, I can start gVim with the +<num> ...
0
votes
2answers
289 views

Making MacVim/gVim “block” the terminal until closed

A long time ago, before I switched to vims, I used an editor for OS X known as TextMate. (Anyone remember that? ;) Its command-line binary, mate, allowed for a mate -w flag, which would block the ...
2
votes
2answers
764 views

How to invoke Windows' gvim in a Windows environment from within Cygwin?

When I give a gvim command in Cygwin, I want it to invoke the gvim I've installed in my Windows. I tried writing a function in my .bashrc called gvim that invokes the gvim.exe in my Program Files ...
0
votes
1answer
150 views

gvim: Map a command which uses the current file name (%) in vimrc

In gVim in windows, I want to map a command in the vimrc file that uses the current file (%). I write something like: map <F5> !mycommand % But then, when gVim first loads, it runs vimrc and ...
0
votes
1answer
40 views

Autohotkey's text expansion not working in gVim

All other hotkeys are working, but a simple expansion like the following are not working. :*:po::p{^}o :oc:win::Windows They work fine on terminals and other applications, just not in gVim. I ...
2
votes
1answer
114 views

how to open cmd from gvim without waiting the cmd window to be closed

In gvim I can open cmd typying :!cmd, but gvim keeps waiting for the cmd window to be closed. Is there a way to tell gvim NOT to wait?
1
vote
1answer
430 views

Open all files in a VIM split window view with grep/ack command

I did a ack-grep on files that contain a string. I then want to open these files in a VIM veritcal split window view. How can this be done via the terminal?
2
votes
1answer
100 views

gvim in windows, need to preserve or correct path casing (e.g., c:\windows vs. C:\Windows)

I use gvim in a windows environment and have ClearCase for source control. My problem is that windows paths aren't case-sensitive, however, ClearCase enforces case sensitivity. So, when editing a ...
1
vote
1answer
167 views

gvim view script output in realtime in quickfix window

I'm using gvim in a windows environment and have some custom scripts that I use to build with. Currently, all of my build output redirected to a new tab, but I have to wait for my build to finish ...
0
votes
1answer
134 views

Can I make the font size in my NERDTree window smaller than in all other windows of Vim?

Can I make the font size in my NERDTree window smaller than in all other windows of gvim? I like large font size of 15 but I'd like the folder tree window of NERDTree to be 12 - is this possible to ...
-1
votes
2answers
81 views

Is vim better installed in C:\Program files\

I've installed gVim and the install has gone into here: C:\Program Files (x86)\Vim Would there have been advantages to installing it in the following location?: C:\Users\myName\Vim
0
votes
1answer
458 views

How to run NERDTree manually it it was setup with pathogen?

I'd like to install NERDTree (I'm on 32-bit Win 7, anyway). And to make vim plugins management easier, pathogen needs to be installed first. So here's the steps: Take pathogen.vim and put it on ...
0
votes
1answer
746 views

gVim does not source .bashrc, .bash_profile, or .profile from non-interactive non-login shell

I have the following on my .vimrc set shell=C:/cygwin/bin/bash set shellcmdflag=-c set shellxquote=\" So the shell I am using is non-interactive and non-login. I thought that non-login shells ...
1
vote
1answer
208 views

How to change the default font of gVim

Edit: I moved the original question to 'The docked gVim in Windows 7 jumps upon tab switch' After struggling with my .vimrc, I am resorting to setting the font from windows registry instead, because ...
0
votes
1answer
60 views

How do I move to the next line in gVim running on Windows 7?

Finally decided to take the plunge and start learning vim. I am however having an issue whereby I can't go the end of the line i.e. after the last letter so that I can hit enter on my keyboard and ...
0
votes
3answers
304 views

Why does Vim require every key mapping to have a unique ascii code?

My understanding is that Vim cannot differentiate between <c-s-[key]> and <c-[key]> because they map to the same ascii code. And also the same reason why <c-i> is equivalent to ...
1
vote
2answers
529 views

Hide dot and dotdot (“./”, “../”) directories in NERDTree gVim

This is in gVim on Windows. NERDTree is registering ../ and ./ links in every directory. By the -> I thought perhaps they were shortcuts/symlinks that got added to all my directories, however in ...
1
vote
3answers
475 views

Git for Windows: Run vim in background without ampersand (&)

On my Windows machine, running gVim appears to tie up the git for windows shell, whereas if I run from the command prompt, this is not the case. How might I be able to run gVim (or any other program, ...
0
votes
1answer
104 views

Vim; Executing another application by :MyCommand

I want to execute "go install" in current directory (where currently open document resides) with a command (Like :GoInstall). How can I do that? Note: I want to see the output of that command too. ...
1
vote
1answer
184 views

Vim Script: Is it possible to refer to script-local variables in mappings?

I know that you can refer to script-local functions using <SID> but what about script-local variables? I tried the following, and hitting <c-space> fails: let s:testVar = "foo" function! ...
1
vote
1answer
117 views

VIM: Searching for text in fold titles without automatically opening folds

In many cases it would be useful to search for text only in the currently visible fold titles, instead of having Vim automatically opening lots of different folds along the way. Is there a way to do ...
2
votes
3answers
42 views

VIM: Is it possible to add custom behavior when using /c with the substitute command?

There's been a few cases where it would be convenient to hook into the search and replace behavior for certain things. For example, I have the following mapping in my vimrc: nnoremap n nzzzv Which ...
1
vote
2answers
409 views

How to run gvim.exe inside conEmu

I have seen in the screenshot that gvim is running inside of conEmu. But I am not knowing how to do this. Any guideline will be very helpful
1
vote
1answer
110 views

VIM: Moving to next sentence/paragraph without adding to navigation history

I like to use the CTRL-O and CTRL-I keys to move around. The problem is that it quickly fills up with small movements like moving by paragraph with }/{ or moving by sentence with )/( . Is there a ...
2
votes
1answer
185 views

How to force gvim to display All Files (*.*) in Edit File dialog box

I am using gvim on Windows 7. My question relates to the Edit File dialog box that appears when File->Open is selected from the gvim menu bar. At the bottom right of the Edit File dialog box is a ...
1
vote
4answers
1k views

vim: delete all lines but unique?

I am looking for a way in VIM to delete all lines that are duplicates and only leave unique lines that exist in the file. I would prefer a macro but a command or function would be great. Say I have ...
2
votes
2answers
336 views

ubuntu mono font on vim across linux and windows have different spacing?

On Windows gVim: On Ubuntu gVim (same on Vim): Why is the padding across the two operating systems so different? Is this a changeable feature?
4
votes
1answer
3k views

Using an external text editor to edit VBA code

I have inherited a lot of VBA code to maintain and so far I am using the VBE. Sometimes is quite hard to do some tasks, like advanced text search, so usually I export the module, edit the content with ...
1
vote
1answer
1k views

Vim: How do you remap the functionality of CTRL-W to a different key?

I'd like to map CTRL-W to something else, but I'd also like to retain the functionality of CTRL-W, for resizing windows, moving between splits, etc. So I'd like to move it to something like CTRL-Q. ...
2
votes
2answers
126 views

Vim: Moving around using relativenumber and adding it to the jump list for use with CTRL-O

I have relativenumber enabled and often navigate to a specific line by pressing 25k or 7j, etc. The problem is that after I've changed the line I often find myself wanting to go back to where I was ...
0
votes
3answers
155 views

In Vim, how to move text to be edited to the middle of the window?

Is it possible to have the text in a (g)Vim window in the middle? This is the default: And this is what I would like to achieve (mockup created with gimp):
2
votes
2answers
206 views

How to compile GTK2 on Linux machine without administrator privileges?

I'm working on a "SUSE Linux Enterprise Server 10 (x86_64)" machine, which has GVim version 6.4.6, which is quite old, and not supported by some plugins. This is a corporate machine, and no one will ...