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.

0
votes
0answers
9 views

Requesting aliased :guifont rendering in Vim on Windows

Non-AA font rendering seems available everywhere except for Windows. In MacVim, this is possivle via noantialias. When using GTK2 front-end, the same can be achieved by adding antialias=false to the ...
0
votes
0answers
15 views

how can I open a terminal split in vim 8.1 without switching to it or going back to the previous split inside a vimscript

Basicly I want the following functionality: Using vims new terminal functionality, I want to be able to press a button, that opens a new terminal window, without stealing focus from the file I'm ...
0
votes
0answers
8 views

Vim always stay on the last line in output buffer

So I made myself a build console ini vim using the following funciton: function Printbuild() "let logjob = job_start("cmake\ -Bbuild\ -H.\ &&\ cmake\ --build\ build/\ --\ -j4\ -w", {'...
0
votes
1answer
35 views

Can I open a split build window in gvim 8.1 that shows the build output live while I can continue looking at code?

I like using gvim but I think its kind of time consuming to have to always watch the build process complete until I can continue editing. I'd like to just hit a key and have a bottom split open up ...
0
votes
1answer
38 views

Vim run command in background, but show output live in vsplit

How can I run a terminal command (for instance build) in vim while working on a file, while simultaneously showing the output live in a vsplit?
0
votes
1answer
40 views

How to set vim as the default Text editor?

I'm trying to set gVim to be the default text editor on Windows but it won't work. It works with notepad++, editor... but not with Vim. Any ideas how to fix it? Screenshot: http://prntscr.com/lm069a ...
0
votes
0answers
54 views

How to make Vim play nice with Python 3.7 on Windows

I want to use Gvim 8.1 with some plugins, but some of those mostly require Python 3.7 Fine, I found one Gvim installation ( https://github.com/vim/vim-win32-installer) that was compiled with Python 3....
1
vote
0answers
20 views

where are the windows gvim language default settings?

I am running gvim 8.1 on w7 x64 US english. My windows system regional setting is Germany though as I am located in Germany and I want German currency and date settings. When I run vim and type :lang ...
0
votes
1answer
35 views

Different vimrc by filetype

As the title says: can I use different _vimrcs for different programming languages or filetypes? I have to use a lot of different programming languages for lots of different subjects, and for each ...
1
vote
2answers
50 views

How do I make <Ctrl-a><Ctrl-c> copy and select all in vim?

I know :%y+ is a convenient way to select all and copy to the system clipboard--which works on my system--but I'm so used to using <Ctrl-a> <Ctrl-c> that I'd like to use the same keystroke ...
1
vote
1answer
28 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
38 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
154 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
74 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
25 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
51 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
67 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
218 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
110 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
97 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
680 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
227 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
157 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
205 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
70 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
43 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
383 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
59 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
229 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
208 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
137 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
65 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
77 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
1k 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
438 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
330 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
616 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
952 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
282 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
58 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
138 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
137 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
72 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
438 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
122 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
603 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
46 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
180 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_$(...