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

learn more… | top users | synonyms

0
votes
0answers
7 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
19 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> <...
0
votes
0answers
31 views

How to install gvim.exe on Windows with Python support? (Solved by the author for this post)

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
29 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
58 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
39 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
32 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 ...
0
votes
1answer
35 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
17 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
19 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
18 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
37 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
32 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, ...
1
vote
1answer
67 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
0answers
17 views

Increase font size in gvim

How do I increase font size in gvim permanently? I have 2880x1620 resolution and the gvim window/font-size is so small that I cannot almost read it. I can live with small icons, but without readable ...
0
votes
1answer
23 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, ...
1
vote
1answer
24 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
126 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 ...
2
votes
2answers
77 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 ...
0
votes
0answers
34 views

vim pre patched fonts doesnt work in powerline

I've installed gvim and powerline plugin. I downloaded pre patched fonts and did everything like the readme file says and still got that weird looking fonts in powerline. I cleared the cache, even ...
3
votes
1answer
2k 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
142 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 ...
0
votes
1answer
228 views

Weird ConEmu Gvim resize border on gvim spawn

I create a gvim instance on a ConEmu window using this line: gvim --windowid !ConEmuBackHWND! -new_console And i get a weird huge white border that acts like a resize handle in gvim: If i ...
0
votes
1answer
95 views

Gvim still showing lines changed

I just installed gvim 7.4 on a new windows 10 machine. Consider the following text When I hover over "bar" and press cw to change word, I see the following Note that the word "bar" hasn't been ...
0
votes
1answer
36 views

How to remove lines not ending in a number?

How do I null or better yet, remove, the lines in a file that do not end in a number [0-9]? I'm using gvim blahblahblah delete this line foobarbizzbuzz keep this line because it ends in 9999113 I'...
2
votes
1answer
101 views

What does this vim cmd mean? :%y+

I found a command to select all text in Vi/Vim file. :%y+ Could someone explain the line, please?
0
votes
1answer
10 views

how to cmap <tab> like the tab in the termimal?

when use :e to open files, how to cmap the "Tab" to the function which is similar to the tab function in the terminal? (like when you press tab, it will show all matching files and it will pick the if ...
1
vote
0answers
36 views

Non-English text appears garbled in gVim

I'm able to input Tamil text successfully in gVim, but the output appears with letters getting one on top of another. This is the case whether I create the file from within gVim or create it elsewhere ...
0
votes
2answers
389 views

vim/gvim command line switches?

I've just spent 1/2 hour trying to find a list of command line switches for vim. Since vim is a "command line editor" a search on "vim command line ..." is not very useful. I got curious trying to ...
0
votes
1answer
51 views

Tear off tabs in GVIM just like chrome or firefox

Is there a way to move tabs to a different instance of GVIM? I'm looking for something similar to how most web browsers function. When you drag a tab out of its current window, it either creates a new ...
0
votes
1answer
228 views

Command with localleader in gVim

I'm giving gVim a try, among others because it has a neat plugin for todo.txt. That nice plugin in it's readme description demonstrates its usage by saying to do x you should <localleader>x. ...
1
vote
1answer
196 views

Vim color schemes and SAS programs

I have a problem that when I open SAS programs (.sas files) in Vim, the colors look very ugly (a mix of white and black background, etc.). Example here: This is how vim looks when I open a SAS file (...
1
vote
0answers
135 views

Issues with GVim and permissions on Win7

I've installed GVim on my win7 machine but I'm having trouble with saving any files. I keep getting the e212: Can't open file for writing If I try to just quit with :q!, I get e138: Can't write ...
0
votes
1answer
141 views

Stop Vim from automatically tw=78 line-break wrapping text files

I recently updated Vim, and noticed that whenever I open a .txt file, the option tw=78 is set. (Which makes Vim automatically break lines when they would have exceeded 78 characters.) I don't like ...
2
votes
1answer
172 views

Vim - automatically delete SWP file after recovery doesn't change the original file

When the Vim process is abruptly terminated (e.g. system crash), it leaves a SWP file. Opening the original file in Vim later gives the option of recovery. Most of the time the recovered file is the ...
0
votes
2answers
81 views

Gvim: Disable alt-letter behaviour inserting accented/unicode chatacters?

I was using alt-j, alt-l, alt-i and alt-k to go to the beginning/end/top/bottom of the current line. Over the years I noticed there's so much stress on the alt key, so now I decided to go try other ...
0
votes
3answers
46 views

How to concatenate pairs of cells; every second cell to the first

How to concatenate successive pairs of cells in a column, adding the second cell of each pair to the first. For example: santhosh kumar sagar sv sai deva And the result should be: santhoshkumar ...
1
vote
0answers
388 views

gvim (version 7.4.52 and 7.4.622) doesn't refresh properly on Ubuntu (14.04 LTS)

The problem is happening on Ubuntu 14.04 LTS running Unity desktop under vmware on Windows 7 host. My gvim is sometimes not refreshing its display unless I force it to using Ctrl+L. For example, when ...
3
votes
1answer
909 views

How to “Edit with Vim” as administrator in Windows?

When you install gvim in Windows, you get a right-click Explorer context menu item: "Edit with Vim". Is there a way of either adding a "Edit with Vim as Administrator", or just changing the existing ...
0
votes
1answer
35 views

Vim macro: increase last number of a line by 1

I have a csv file whose last column contains either integers, or the character "-". I need a vim macro that does the following: If last element of current row is "-": Turn "-" to "1" Else ...
1
vote
1answer
130 views

How can I get gvim to use the system (GNOME) theme?

I use the dark theme on GNOME (Gnome Tweak Tool -> Appearance -> Global Dark Theme -> On), which looks great with Terminal, Files, and almost everything else. But Gvim still has a white window border, ...
1
vote
1answer
308 views

ConEmu: Open files in vim with ConEmu through File Explorer

Is it possible to open files by double clicking an associated file extension or through context menu with vim in a ConEmu tab?
0
votes
1answer
65 views

Vim from terminal can locate package, GVim cannot

So I've been installing Syntastic and JSHint for some Vim JavaScript syntax checking. which jshint returns /home/myUser/local/bin/jshint which vim and which gvim return /usr/bin/vim and /usr/bin/...
1
vote
1answer
92 views

difficulty opening a file(man page) with funny characters in gVIM

I did man ssh_config>a from cygwin I generated the file I want to print $ man ssh_config >a I then opened it in gvim as you see from the screenshot. I might join many of the lines (vim's J) ...
0
votes
1answer
113 views

How to separate Vim themes for LUI and GUI with same general configuration?

I like twilight theme for my Vim, but this theme has 2 major versions, twilight256.vim dedicated for terminals and twilight.vim designed for graphical interfaces. I just wondering how to separate ...
2
votes
0answers
663 views

Vim silent launch of ConEmu (into Git Bash) - Windows 7 Command Prompt seizes

From a Windows 7 Command Prompt: ConEmu.exe /cmd "C:\Program Files\Git\bin\sh.exe" --login -i && exit opens ConEmu (or a new tab therein) logged into Git Bash for the current directory, and ...
2
votes
1answer
314 views

Firefox — How to open a link (to any text-based file) in Vim?

Rather often, I see web pages with links to files that I want to open directly in gVim (when browsing with Firefox on Windows). Chrome-specific answer — also good to have. Attempting to get this ...
2
votes
1answer
568 views

gVim: Pathogen not loading plugins properly (Windows)

I'm using gVim 7.4 on Windows 7 x64. When I place a plugin in the bundle folder, the plugin's commands don't seem to be registered. My setup is as follows: gVim is installed at C:\Program Files (x86)\...
0
votes
1answer
32 views

How do I open multiple files as part of gVim's launch procedure?

I use gVim a lot in Windows at work to edit text files. I want $VIMRC to always be in buffer 1, and my vim_cheatsheet to always be in buffer 2. I tried putting "e $VIMRC" in my .vimrc, which didn't ...
0
votes
3answers
411 views

Why is the cursor flashing at the end of the line in gvim?

I recently started using vim/gvim and I have this really annoying problem where cursors flashes at the end of the line with every character I type in insert mode. Take a look at this video and you'll ...