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

learn more… | top users | synonyms

4
votes
1answer
58 views

How to use Vim buffer window as Unix Shell

Is it possible use a split a window in (g)vim as unix shell?
1
vote
3answers
375 views

Missing toolbar in gvim 7.3

I recently compiled gVim 7.3.592 using gcc 4.7.1 from the MinGW distro available through nuwen.net. It was built with Python 2/3 and Ruby language interfaces (or more specifically, I had set the ...
2
votes
1answer
1k views

gvim on Lubuntu [duplicate]

Possible Duplicate: How to install gvim on Ubuntu 10.10? I can't seem to use gvim on lubuntu. After installing vim with sudo apt-get install vim I cannot seem to start it: $ gvim The ...
2
votes
1answer
220 views

Is it possible to show gridlines in the background in vim?

Is it possible to show gridlines in the background in vim (ideally each four characters)? Or, if not possible in vim, is it possible in MacVim?
3
votes
2answers
253 views

in Vim, how can i select enclosing block or paragraph

I want to select a current block recursively . for example i have this ruby code 1 def function 2 if true 3 if also_true 4 do this 5 end 6 end 7 end for example im in the 4th ...
1
vote
1answer
609 views

How to move previous opened file in NERDTree?

Does NERDTree have a stack to track opened files? I want to go back to previous file easily(As like ctags does by Ctrl+T). But I can't find the feature in it's manual. Is it even possible?
1
vote
1answer
262 views

How can I set Vim to obey accents of my spoken language?

When pressing w or e in sentences with accents (written in my native language), such as the first one (marked **) here: **Éj-mélyből fölzengő** - csing-ling-ling - száncsengő. Száncsengő - ...
1
vote
1answer
274 views

Python not Working in Vim

I have a new install of VIM from the automatic windows installer: gvim73_46.exe I have Python 2.7 (32 bit) installed. If I open gvim, and type: :set python? I get E518: Unknown option. If I try ...
8
votes
3answers
2k views

Vim - dynamic list of open buffers in a window

I've investigated a few ways to maintain a list of open buffers in Vim, and some of them are very good, but none of them seem to behave the way I'd like. It's very possible that nothing like what I ...
1
vote
1answer
330 views

Setting 'dead' area background colour in gVim

In gVim on Linux (confirmed on Windows as well), depending on the selected font family & size and the window dimensions, sometimes a 'dead' area appears on the right and bottom of the window as ...
1
vote
2answers
589 views

How to disable mouse in gvim without breaking selection?

If I select text from command-line vim and copy it to the clipboard, it includes line numbers (from set relativenumber). Gvim is smart about selection and does not copy the line numbers. However, if I ...
1
vote
2answers
3k views

VIM: Save a file as a different filename, but keep :w as the current filename

As a sort of poor-mans version control, I need to save a file someFile.c as someOtherFile.c, but I want :w to continue saving as someFile.c. Is this possible? The environment is Windows XP SP3, but I ...
0
votes
1answer
154 views

GVIM: diff against the saved file in Windows

Under Linux, I diff the currently open file against the saved file like so: :w !diff % - Is there any way to do this under Windows in GVIM? Thanks.
0
votes
1answer
2k views

No syntax highlighting in GVIM on Windows with _vimrc

My GVIM 7.3.46 install on Windows XP Professional SP3 32bit does not perform syntax highlighting if there exists a _vimrc file, at least not PHP and C. Even explicitly mentioning set syntax=php I get ...
4
votes
1answer
458 views

Is it possible to get gVim to execute external commands in cygwin by default?

Is it possible to get gVim (on windows) to execute external commands in cygwin by default? i.e. !ps will open a cygwin terminal showing the currenty running processes?
0
votes
1answer
512 views

How to set PHP syntax highlighting in GVIM on Windows?

My GVIM 7.3.46 install on Windows XP Professional SP3 32bit does not seem to have PHP syntax highlighting. I have added this file to C:\Documents and Settings\myUsername\vimfiles\syntax and set this ...
1
vote
1answer
2k views

How do I install plugins in Gvim?

I want to do R scripts in Gvim. I downloaded a zip file called vim-r-plugin-0.9.6.zip Then what?
1
vote
1answer
414 views

Gvim --remote to open file and focus on the newly opened file

I got a fairly old gvim (6.3) on CentOS 4.5. There's no --remote-tab-silent option yet. Instead, I use --remote to open file in same gvim instance. However, there's a problem that all files are ...
1
vote
3answers
120 views

VIM disable highlighting upon search deletion

I recently learned a new shortcut in VIM that I find extremely useful. d/search_text Which will delete everything up to, but not including, "search_text", from the current position. However, the ...
2
votes
1answer
312 views

How can I set a particular shortcut key for an item in the Windows 7 Explorer right-click context menu?

For me, this issue is specific to opening files through the context menu with gVIm, but it probably applies to more general situations too. In particular, I want to get gVim to open a file with a ...
4
votes
1answer
128 views

What are those tildes in gVim for?

I realize this is probably a very, very obvious question, but I couldn't find anything on it. (Probably because it was so obvious) What are all those tildes in gVim at the end of the file? I can't ...
1
vote
1answer
639 views

Snipmate + Pathogen + Git - Custom Snippets don't work on Windows

Here is my setup: My .vim directory is under source control with git I use Pathogen for managing my plugins My SnipMate plugin is a git submodule under .vim/bundle/snipmate This means I can't ...
1
vote
0answers
21 views

How can I select a vertical column of text in GVim? [duplicate]

Possible Duplicate: How to select a rectangular range in VIM? I am very new to Vim, I am using gVim for Windows... Is it possible to select a "vertical column" of text? If I wanted to ...
0
votes
1answer
144 views

Disable tab pages completely in vim

I want to disable tab pages in Vim completely to let Vim open every file in the same single tab page. How to disable tab pages in Vim?
3
votes
1answer
276 views

Can I view gvim tabs in separate windows?

I'd like different tabs to be visible at once, managed as separate windows (window manager windows, not Vim windows). This is impossible, right? Just checking.
0
votes
1answer
280 views

vim mksession colorsheme issue

I can sees that when I use mksession it writes file to save session. The file looks ok and session is loading ok. But It change my colorsheme when I load the session whith so. After session is opened ...
0
votes
1answer
305 views

vim missing bottom toolbar on Linux Mint

I've been trying Vim/Gvim, in both Windows and Linux (Mint), but something seems to be missing. I'm missing the bottom "status" bar on the Linux version, the one that indicates the key pressed. ...
0
votes
1answer
321 views

Changing gvim double-click behavior

When I double click in gvim it causes the current word to be selected. However, by default, a 'word' excludes special characters. I would like, for example, to be able to double click on a UNIX or ...
4
votes
1answer
328 views

!xdg-open <URL> doesn't open the website in my default browser

I am using gvim 7.3.401 on archlinux. The shell command :!xdg-open http://www.vim.org doesn't open my default browser with that link. In fact, it appears to do nothing. This works as expected within ...
1
vote
1answer
170 views

gvim text select with mouse misses last character

In gvim, if I click on a character and drag the mouse backwards in the text, I get a highlighted text selection. However, the actual character I click on, which I expect to be the last character in ...
2
votes
3answers
639 views

Should I learn Vim without mapping keys?

I have been using vim for a few months its been a love/hate relationship. I love the concept of modal editing and never having the need to move you hands from the keyboard. The problem is that a lot ...
1
vote
3answers
217 views

Is it possible to page up/down in Vim without moving the cursor?

Is it possible to move to another page in gVim without moving the cursor from its present location? Splits don't count :)
6
votes
3answers
4k views

Alternate page-up in vim?

I just stumbled on shift+enter to page-down in vim. I'm wondering if there is something as useful (i.e. easier to reach than ctrl+B) for paging up. I'm looking for something that is already there, ...
0
votes
2answers
527 views

How do I switch buffer with gVim?

If I create multiple buffers on gVim (gnome interface for vim), how do I switch buffer ? Vim doc says it's F8 key but it doesn't work... Any idea ?
1
vote
1answer
181 views

Opening files from Eclipse in gvim skips vimrc and gvimrc

When I try to open a file in an Eclipse project in gvim (using Eclipse's "open with -> other"), gvim seems to skip loading the global gvimrc and vimrc files and opens a bare white window with the ...
0
votes
1answer
217 views

set file type in vim according to the hashbang line

In vim, how can I set the file type not only according to the extension, but according to the #! line at the beginning? For instance, I would like vim to recognize files as coffee-script files when ...
4
votes
5answers
1k views

Disable mouse clicks in gvim on ubuntu

How do I make gvim ignore mouse clicks. I'm really sick of the trackpad making my cursor all over the place. I use xubuntu if that means anything.
2
votes
2answers
981 views

How to open a new file in the current directory with gvim on Windows?

If I'm working on a file located on e.g. ~\myprojects\testproject\hello.txt and then want to open a new file in the same directory e.g. todo.txt (located on ~\myprojects\testproject\todo.txt), how can ...
3
votes
2answers
716 views

How to force vim to end all lines with a single linefeed character (LF)

As the title says, I need to force vim (in my case gVim) end all lines with a single linefeed character (LF). How can I do this? I'm trying to follow the standards for PHP coding, specifically ...
1
vote
1answer
1k views

“E212: Can't open file for writing” when saving in gvim on Windows

I opened a new file with :e ~\mypath\myfile.txt using gvim on Windows. But when I try to save my file using :w I get this error message: E212: Cannot open file for writing How can I solve this? ...
4
votes
1answer
2k views

How to open a new file in gvim? E303: Unable to open swap file

I use gvim on Windows. How can I open a new file? I have tried with :e ~\mypath\myfile.txt but I get this error message: E303: Unable to open swap file for "C:\Users\Jonas\mypath\myfile.txt", ...
2
votes
1answer
2k views

How can I set the default font for gvim on Windows?

I use gvim on Windows. By default it uses the Fixedsys font, but I would like to use Consolas as the default font instead. I tried to set it using the menu option; it worked but it was reset the next ...
0
votes
2answers
436 views

In Vim, I'm trying to have all class methods fold automatically when I open a file

When I open a PHP file that contains a class, how can I have Vim automatically fold the document up like this?:
4
votes
2answers
635 views

Close all locations list or quick fix windows in vim

Is there a way to close all locations lists and quick fix windows with a single command in vim/gvim?
0
votes
2answers
514 views

Gvim Tab Completion

How can you make gvim do tab completion like the terminal-based vim? The terminal-based vim displays suggestions instead of auto-completing with the first result in the folder and cycling through ...
1
vote
1answer
345 views

SSH Connect to Existing Gvim Window

From what I understand, gvim is an X-window application, so it's possible to start the application remotely and be connected to the window via SSH. Is it possible to connect to an existing gvim window ...
1
vote
1answer
541 views

Executing commands in “gVim Easy”

I have installed the windows version of gVim, which comes with "gVim Easy", a version of VIM configured to make it very easy to use by constandly being on insert mode, however most of the power of the ...
1
vote
2answers
163 views

Vim visual mode 'w' select

When using gvim 7.3, I can select a word by typing v and then w. The word selected does not include the punctuation after the word. When using vim 7.2 on Linux, selecting a word by typing v and then w ...
2
votes
2answers
2k views

How can I force gvim in awesome to fill the screen?

I know this is a common problem but I've never found an answer that really works. When I start up gvim, the following sequence of events takes place: GVim window opens A rule in my rc.lua sets ...
1
vote
0answers
90 views

Integration of GVIM with Firefox with Mozplugger

I am wanting to make my Firefox browser open the GVIM application for codes and plain-text. I added the following lines in mozpluggerrc: text/x-c++src:c++: C++ File text/x-c++src:C: C++ File ...