Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gvim]

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

1
vote
1answer
22 views

MacVim - how to make mouse based selection be “visual mode”?

Sometimes I select text in vim using the mouse. I'd like that selection to be treated the same as a visual mode selection, so I can immediately start running commands against it. Is there a way I ...
2
votes
1answer
20 views

Stop vim indenting new lines after comma in plain text files

I use vim/gvim as my default text editor. When I'm editing plain text files with no syntax highlighting, it automatically adds indentation when I press enter, if the last character on the finished ...
0
votes
1answer
117 views

gVim menus disappear in upgrade from Ubuntu 18.04 from 16.04

GVim menus have disappear after upgrading to Ubuntu 18.04 (from 16.04). F10 shows a menu but I don't know how to change the font size. GVim is my code editor. It is VIM version 8, and shows as "...
1
vote
1answer
46 views

Not able to map any keys between F1 to F5 in gvim

I am not able to map any keys between F1 to F5 in gvim through vimrc. However all the keys after F5 are being properly mapped. Here is my vimrc file content. map <F1> :q!<ESC> map <...
0
votes
0answers
22 views

Output stream redirected from `GVim` to `Conemu terminal` instead cmd.exe

I would like to stream output that appears after code execution in Gvim to Conemu (Cmder). Right now stream is redirected to cmd.exe and new window pop up every time I run a program. I include cmder ...
1
vote
1answer
47 views

In gvim, how do I get 4 splits into 2x2 layout

I have 4 splits in gvim, with 1 on the left, and 3 on the right. I'd like to get them into a 2x2 tile arrangement. I can't figure out a way to take a window that spans the screen (horz or vert) and ...
1
vote
1answer
59 views

Cannot write changes to hosts file at Windows 7 by GVIM

I removed read only permission from C:\Windows\System32\drivers\etc\hosts file and file is not hidden. I belong to Administrator group at Windows 7 system. When I open file in gvim without ...
1
vote
1answer
150 views

vim not picking up new syntax files

I copied this GLSL syntax file to /usr/share/vim/vim74/syntax/glsl.vim, its permissions are -rw-r--r-- same as other syntax files. I gvim /tmp/x.glsl but it does not activate GLSL syntax highlighting ...
0
votes
0answers
97 views

Could not load library msvcrt-ruby240.dll

I have installed the last version of the x86 version of vim 8 and I have an issue whith the ruby integration. My plugins like LustyExplorer can’t work and when I enter ruby –version I get the ...
0
votes
1answer
94 views

Gvim - Relative line numbers bug (Graphics rendering bug)

I'm not sure if there is a bug in the rendering code of Gvim or whether there is something in my .vimrc / .gvimrc which has caused a rendering problem. As can be seen on the above image, there is a ...
4
votes
1answer
539 views

Vim and Gvim - Change color for cursorline line numbers

I have downloaded and installed the blueshift colorscheme for vim/gvim. This highlights the current line with cursorline, which is what I want, however the background color of the line numbers column ...
1
vote
0answers
203 views

Vim - Detect Caps Lock Status

My question is simple and straightforward! =D In this thread @OsQu... Vim - Is Capslock on? ... says that you can use the Automation Hotkey Scripting (AHK) below to detect the Caps Lock (on/off) ...
0
votes
1answer
137 views

How to control the font used by Athena-gvim in dialogs?

To reduce the number of dependencies, I build gvim to use the Athena widgets only (no GTk, etc.) This works fine, but there is a problem with localization... My locale is set to use KOI8-U. After ...
0
votes
1answer
180 views

Execute a command using a filename from the vim buffer

I'm working with some DokuWiki-like files. The files have companion PNG files in the same directory. They're referenced in the following syntax: {{filename.png}} I want to write a macro which ...
1
vote
1answer
67 views

Open a source code in Different Editor based on your Modifier Key

I use multiple source code editors for my development, namely GVim, Notepad++ and Sublime Text (in that order). (I can consolidate it to one editor, but that is a different discussion). Current setup ...
0
votes
0answers
37 views

How to force vim to edit a file which is open in a gVim session?

I would like to edit a file in an SSH session on a server. That file is on a Network File System. I was editing it while sitting at a workstation in my office and I left a gVim session running with ...
3
votes
0answers
349 views

Why some Mono spaced fonts not recognized by GVim?

I have a cmtt10.ttf font that I would like to use in GVim on Windows. This is TrueType font. And it is recognized by Notepad++. But when I try to use in GVim. It does not work. Here is how I set in ...
2
votes
1answer
56 views

How to colorize from character “;” to end of line in VIM?

For example: G28 X0 Y0 ; home X and Y I'd like the ; home X and Y portion to be formatted as MoreMsg or some other class. How do I format from ; to end of line?
1
vote
1answer
213 views

How to map ALT-return in .vimrc?

I'm trying to map a combination of left alt and return keys in my .vimrc, yet without success. I've added all those mappings to my .vimrc file, with no effect: map <M-esc> itest0<return>&...
0
votes
0answers
189 views

Modifying GVIM Themes/Toolbars

I have this problem, that I cannot seem to figure out. On one Operating system, centOS, I have a look that I like. On Ubuntu, the look is different. I don't know where the discrepancy lies. How do ...
1
vote
1answer
117 views

Vim buffer name autocompletion not working after first directory

I have a problem with Vim Autocompletion behavior for buffer names. Target Soft/OS I'm using gVim without plugins on Windows 10 What I would like to do Assuming we have a file tree like : a b > ...
0
votes
2answers
60 views

Where do I override EDITOR to gvim when in X?

When I connect to a machine remotely using ssh, without -X, I'd like for less's v and hg commit to open vim. I know I can do this with export EDITOR=vim. However, if I login locally, or via ssh with ...
1
vote
1answer
67 views

How to map commands in Vim?

I am using gVim and there's no vertical split option in it's File menu item. I want to map the default :split and its abbreviation :sp to :vsplit and :vsp respectively, so that it replaces the ...
0
votes
3answers
968 views

Splitting a single file into multiple windows on Vim

Is it possible to open a part of the file as a separate vertical split window in Vim? Say I have a file with hundred lines, and from the fortieth up until and including sixtieth lines I want to be ...
1
vote
1answer
418 views

Markdown on gVim

I want to edit my Markdown.md file with gVim displaying the formatting (rich-text) and also editing that is converting the text as I type in the markdown format. Is it possible to do that with vim or ...
0
votes
2answers
305 views

Possible to make a backup of original file in vim?

Is it is possible to make a copy of original file before writing the new buffer to the file without having to leave vim and copy it manually?
1
vote
1answer
32 views

man <whatever> opens vim with hidden characters displayed

I'm on Mac/Sierra using MacVim. When I run man MacVim (I have alias vim="mvim" set in my .bashrc) I get the man page with hidden whitepace characters displayed. This only happens for man pages (I ...
0
votes
0answers
576 views

GVim can't find plugins on Windows 10

On Windows 10, I have GVim installed to Users\myuser\Vim. I'm using Vundle to handle plugins and it is working fine. But vim isn't finding any of my other plugin files. They're installed (using Vundle)...
4
votes
3answers
887 views

Vim slow at rendering the buffer with LaTeX syntax highlighting

After fixing a hard-drive failure, I am installing GVIM on my Thinkpad X230T laptop running Windows 10. Things are working well except for the rending speed of buffers for *.tex files. The problem is: ...
0
votes
1answer
268 views

gvim - Highlight cursor and cursor line differently

Using happy hacking, I can't tell where my cursor is in a file with only one line. Usually the column highlighter would allow me to see it. How can I make the cursor field highlight look different ...
0
votes
1answer
55 views

Vim: Error message on sourcing, but not on start up

I'm pretty new to Vim/gVim and am probably doing something wrong. What I want to do is completely reload my configuration (like a restart), but while gVim is running (keep the current session). Here ...
0
votes
0answers
126 views

Make Shift+Insert work in Insert Mode with “set paste” active

I have a Windows client with gvim for Windows 7.4. I want Shift+Insert to work as "Paste", so I added the following settings to ~/_vimrc: nnoremap <S-Insert> "+gP inoremap <S-Insert> <...
1
vote
1answer
2k views

How to install gvim.exe on Windows with Python support?

Problem description: For all the executable installers for Vim that are listed below, the tags +python/dyn and +python3/dyn are unanimous when installed. However, for all my local installations using ...
0
votes
0answers
132 views

How to open windows on RDP thin client

We use RDP thin clients in our company. Each have an IP address with a stand alone linux OS on it I want to open windows(gvim, xterm, ...) after ssh'ing to another remote server. Though I set DISPLAY ...
2
votes
1answer
70 views

How To find a word and replace with changing pattern

I have a text like the following: case "UID": if (!Convert.IsDBNull(objDataReader["XYZ"])) { objQualitativeAssessmentBiz.XYZ = objDataReader["XYZ"].ToString(); } break; case "GeneratedChaseId": ...
1
vote
2answers
401 views

Windows gVim edit file from Command Line

I have a Windows batch file that I use to edit files using Notepad++ @echo off if [%1] == [] ( C:\PROG\Notepad++Portable\Notepad++Portable.exe ) else ( C:\PROG\Notepad++Portable\Notepad++...
1
vote
1answer
113 views

I want to replace multiple strings at a time using VIM Editor command

104116001|PRODUCT|511|RAMP||2016-03-18|2016-03-23|060.00|1||R|012 104116001|PRODUCT|512|RAMP||2016-03-18|2016-03-23|060.00|1||R|012 104116001|PRODUCT|514|RAMP||2016-03-18|2016-03-23|060.00|1||R|012 ...
1
vote
2answers
507 views

Copy/Paste in gvim broken after creating personal vimrc

I'm using gvim on win 7. If I use the default installation copy/paste with Ctrl+c/Ctrl+v works fine. As soon I create a personal _vimrc file in my home folder I have to use the menu to paste something ...
1
vote
0answers
42 views

gvim flashing cursor at bottom of the window

I have experienced a similar problem as this question, except the cursor flashes at the bottom of the window when I move it, and I don't use vim-airline. (I made a video to illustrate what I mean.) I ...
0
votes
1answer
169 views

In Gnome3, how do I create a keyboard shortcut for opening a file with a variable in the file name?

Typing gvim note_$(date +%F).md in terminal, opens a file in gvim that has today's date in the title. When I try to bind a keyboard shortcut to the same command, gvim throws an error message: "note_$(...
0
votes
1answer
29 views

Multi display: how to restore last gVim display?

I have 2 displays. I start gVim. It window always opens on display 1. I move it to dislpay 2 then close it. After this I start gVim again. It opens on display 1 again but I want it to open on display ...
0
votes
2answers
261 views

Why does Vim break lines when editing Windows files?

On Windows 8, I want to edit with Vim (v7.4), files that were originally created with Windows Notepad. However, when I begin to write, Vim/gVim spontaneously breaks lines into smaller ones by ...
1
vote
1answer
116 views

How can I unconditionally open any fold present, without errors, when invoking from the command-line?

So, this is similar to ‘execute command with range silently’; but that's in a mapping, and so the solution isn't applicable to what I'm trying to do. I'm using the Skim PDF-viewer with LaTeX Sync, ...
2
votes
1answer
706 views

Windows gvim - use unix grep

Using Windows 10. I have gvim installed. I also have git, and I have git's bin in my PATH (C:\program files (x86)\Git\bin), which puts git's gnu grep in my path so I can use it in the command shell. &...
0
votes
1answer
99 views

gVim: Once in command-line mode, how can I paste a selection?

In gVim, once in command-line mode (typed ':'), how can I paste a selection made with the mouse after entering command-line mode, into the command-line? For instance, I start typing :g//s//_ Then, ...
3
votes
1answer
462 views

How to keep Vim's visual mode selection while scrolling with Ctrl-F?

When I select text in Vim's visual mode, scrolling with Ctrl-F cancels the selection. How can I keep the selection while scrolling (with Ctrl-F)?
1
vote
0answers
408 views

gVIM on Windows 7 crashes due to COMCTL32.dll

My gVIM 7.4 (and also 7.3 before that) keeps crashing when I work on .py files (other files don't cause the problem). The crashes appear periodically but unpredictably - at least to me there doesn't ...
5
votes
2answers
369 views

Can't copy certain gvim text, eg :version or error messages

Generally, my copy/paste works just fine in vim. However, when I type :version, my mouse pointer becomes a symbol like: While I can select text, I can't copy it to the clipboard. Exactly the same ...
4
votes
1answer
3k views

Do I really need 4GB of Xcode to run gVim on a Mac OS machine?

I’m using my wife’s MacBook Pro to see if it would be reasonably painless to integrate a MacBook laptop into my Linux workflow. It seems like the main port of gVim to Mac is MacVim which requires ...
2
votes
0answers
359 views

VIM: Characters not displayed correctly in GVIM 7.4 on Ubuntu 14.04 LTS

Using GVIM 7.4.52 on Ubuntu 14.04 LTS in a Virtualbox VM. Sometimes the characters are not displayed correctly as can be seen in the following image This totally renders GVIM unusable. The problem ...