Questions tagged [gvim]
All about the VIM editor in one of its graphical incarnations.
503
questions
0
votes
0
answers
52
views
YCM on windows vim can't find python
I would like to be able to use YouCompleteMe plugin on vim (on windows).
I have installed vundle, and followed the installation guide for YCM on Windows. When I run :PluginInstall I see:
Traceback (...
0
votes
1
answer
25
views
gVim updates the title text field when the window is made narrower - can I stop this handy behavior?
Depending on the width of the GUI window, gVim 9.0 on Windows 10 (maybe Win 11 as well) would decide to be creative with the title text of the window, and show any of the following when I review my ...
0
votes
0
answers
102
views
Vim/Gvim is no more indenting XML (when entering text) in the way I want
Given a file with extension .xml, I used to indent my content as follows:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<p>This is a text
containing <i&...
0
votes
0
answers
84
views
gvim's backup setting not working
I installed gvim on win10 in D:\Vim. And I added the following set config in D:\Vim\_vimrc:
set noundofile
set nobackup nowritebackup
And then :wq. However, this saved nobackup config still not ...
0
votes
1
answer
204
views
Why does my colorscheme sometimes get all messed in GVIM on Windows 10?
I have recently added the following code to $MYGVIMRC (which otherwise has been unchanged for years and has been working fine) to have my GVIM (8.2) on Windows 10 switch background automatically ...
1
vote
1
answer
266
views
perforce P4 not working when called from vim
when calling p4Edit from vim like this : :!p4 edit /data/test.py
i get an error : test.py - file(s) not in client view.
but when sending the same command from the terminal everything is working well. ...
1
vote
0
answers
142
views
How to paste control characters in gnome-terminal?
System: Ubuntu 18.04
Question: How can I copy a string that includes control characters such as ctrl-a, e.g. from gvim (fenc=ascii or utf-8), and paste it including control characters in gnome-...
2
votes
0
answers
182
views
Unable to Install gvim/dependency in local directory without super user permission
Wanted to install gvim in the local drives as I don't have the root permission but it does install the GUI version [i.e. GVIM] of it.
Steps Followed:
First I tried doing the ./configure process with ...
0
votes
1
answer
107
views
While gvim is running, mintty displays Unicode UTF-8 characters as question marks
When I fire up gvim in the background in a Cygwin mintty terminal, Unicode UTF-8 characters start getting displayed as question marks. When I quit gvim, mintty reverts to the correct behaviour. In ...
1
vote
2
answers
120
views
gvim 8.2 doesn't redraw the screen when editing a git commit message in windows 10 powershell
I installed vim on windows 10 using chocolatey. When I edit a file in powershell, everything works great! I even got copy and paste to work. However, when I edit a git commit message, vim doesn't ...
3
votes
1
answer
2k
views
Configure gvim swap, undo, and backup files on windows
I installed vim on windows 10 using chocolatey. When I edit a foo file in powershell, vim leaves behind .foo.un~ or .foo~ files. What are these and how do I stop vim from leaving them around?
1
vote
1
answer
500
views
gvim 8.2 doesn't paste on windows 10 in powershell
I installed vim on Windows 10 with chocolatey. Copy and Paste don't work when I invoke vim in powershell. I expect them to work as long as I'm in insert mode. How can I make copy and paste work?
0
votes
1
answer
266
views
Is it possible to specify specific different fonts for different languages in GVIM 8.2?
My GVim 8.2
I am using Traditional Chinese Windows 10
I am trying to set up my GVim 8.2 to use a choice of font for Chinese language and then a
different font for English, because of my preference.
...
1
vote
0
answers
189
views
Windows 7 Showing Rectangle Boxes Instead of Characters! [gVim]
I have been trying to solve this mystery for such a long time. Within Gvim I see all the airline symbols are not showing. Some are like rectangle boxes. It seems MS Word 2016 can show slightly more ...
1
vote
0
answers
75
views
gvim, latex suite, and okular forward search issue
I have a gotten my gvim + vim-latexsuite + okular working well, except for one thing: forward search. I have tried many of the hints on line, but I can't find the solution, but I am close!
So, I ...
1
vote
0
answers
66
views
gVim gets shorter on each start with lazyredraw and showtabline=2
In my vimrc, I have the following:
set lazyredraw
set showtabline=2
With both these options set, every time I start gVim, the window is a couple lines shorter than it should be. Even if I use set ...
5
votes
1
answer
2k
views
vim windows 10 set packpath option for native package manager
[1] I created a new package directory using the 'packpath' option in my vimrc:
:set packpath+=$HOME/vimlocal/pack
[2] I run the command :set packpath? and the directory is listed in the output:
...
0
votes
0
answers
287
views
Unable to include plugins using vimrc . Error for each line of my vimrc
I have installed gVim and trying to have customizations, i.e, including plugins.
https://raw.githubusercontent.com/kinbiko/dotfiles/master/vimrc
Used multiple plugin managers, but in vain.
Error ...
2
votes
2
answers
6k
views
Cannot set X11 forwarding from a WSL-machine
I put the following settings into my SSH-enabled remote machines, with the hope that I can launch GUI programs through SSH sessions.
# These settings shall go to `/etc/ssh/sshd_config`.
...
0
votes
0
answers
42
views
Linux, Gvim lock file
I have a file opened with gvim and I want to run a Perl script that accesses that file. I get compilation errors, but if I close gvim, everything works fine.
Warning: linker script did not specify ...
0
votes
1
answer
7k
views
How do I set the font in command line vim (vim for windows)?
everything I see says I should use guifont but if I open a console and try to tab complete set gui--- I only see set guicursor
Im using command line vim not gui vim.
What do I put in vimrc to set ...
0
votes
1
answer
599
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 ...
1
vote
2
answers
1k
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
1
answer
98
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 ...
2
votes
1
answer
1k
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?
2
votes
1
answer
2k
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
...
2
votes
0
answers
777
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....
2
votes
1
answer
763
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
1
answer
167
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 ...
2
votes
2
answers
14k
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
2
answers
474
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 ...
7
votes
1
answer
2k
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
2
answers
352
views
gVim menus disappear in upgrade from Ubuntu 18.04 to 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 "...
2
votes
2
answers
832
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 <...
2
votes
1
answer
146
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
1
answer
247
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
1
answer
1k
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
0
answers
265
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
1
answer
259
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 ...
6
votes
1
answer
4k
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 ...
2
votes
0
answers
503
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
1
answer
602
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 ...
1
vote
1
answer
944
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
1
answer
80
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
0
answers
112
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 ...
2
votes
0
answers
727
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 ...
1
vote
1
answer
221
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
1
answer
2k
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
0
answers
535
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
1
answer
268
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 >
...