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

learn more… | top users | synonyms

0
votes
1answer
515 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 ...
1
vote
1answer
551 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
419 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
1answer
1k 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
130 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
220 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 ...
1
vote
2answers
505 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
720 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
119 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 ...
1
vote
1answer
1k 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
94 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
133 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
65 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 ...
1
vote
2answers
839 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. ...
1
vote
1answer
2k 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
1k 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
330 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
91 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
655 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 ...
0
votes
1answer
101 views

vim default save is no file type? default setting advisable?

I just came across a problem that I seemed to have found a solution, but was a little surprised by the issue. In gVim, when I save a new document (new from "within" gVim), ala :w afile I ...
0
votes
1answer
26 views

mvim: display number of columns in window?

I'm transitioning to MacVim from terminal vim, and I've gotten used to the "80 x 24" display at the top of terminal windows (COLS x ROWS). Is there a way to enable some such display in MacVim?
3
votes
1answer
405 views

Unable to copy from vim to system clipboard

I read and tried several different solutions but I am still unable to copy from vim to system clipboard. Viceversa works, copying from outside vim and pasting with p is ok. I have installed clipboard ...
0
votes
2answers
104 views

Multi level or progressive or incremental file search [closed]

I am looking for a GUI tool in Windows, where I can do search and pass the result to next search and continue. I know I can do this in command line by piping one search result to another, but I am ...
5
votes
0answers
132 views

Windows 8 start screen does not do partial name matching for all apps

When I bring up the Windows 8 start screen and start typing the name of an App, it will do a partial match, on most apps but not all apps. For example, if I type "wor" it finds "Word 2013" and ...
1
vote
1answer
168 views

How to use sudo tee in GVIM for Windows

Can I use something like :w !sudo tee % in GVIM for Windows? Is there any analogue? Or can I disable UAC for one program only and always run it as administrator?
2
votes
1answer
659 views

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

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
134 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 ...
3
votes
1answer
134 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
103 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
1k 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 ...
3
votes
1answer
2k 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
274 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
230 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
125 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
160 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
130 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
132 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
80 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 ...
3
votes
1answer
622 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
796 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
1k 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 ...
1
vote
2answers
450 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
57 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
158 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
3answers
486 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 ...
3
votes
2answers
1k 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
258 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
64 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 ...
3
votes
1answer
266 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
639 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?