Stack Exchange Network

Stack Exchange network consists of 175 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]

Graphical mode for vim (vi improved).

5
votes
2answers
107 views

Comment from start of file to a pattern matched line using sed

I search a pattern, say 'START OF ARAMBOL' and it is matched in a file. Now I would like to comment every line from the line no 1 to the current matched pattern line no. I have to do it for more than ...
2
votes
1answer
59 views

GVIM : Shortcut for finding end for particular begin in SystemVerilog language

Need a shortcut for finding the end for a particular begin in SystemVerilog syntax.
0
votes
0answers
30 views

Why does gVim “takes over” my clipboard when using GNOME Terminal?

In a VM window on my Win10 machine, running RedHat Enterprise 6.6 / GNOME 2.28.2, I have a GNOME Terminal and gVim windows open. When selecting text in the Terminal with the mouse, and then using "...
1
vote
0answers
40 views

How to fix Konsole font?

After updating to RHEL7 from RHEL6 my Konsole fonts are looking ugly and un-antialiased(Monospace size 11 in both systems). I played around with font antialiasing system settings but I am unable to ...
2
votes
2answers
1k views

Run gvim in terminal

I'm on RedHat enteprise at my workstation where both vim and gvim is installed. when runnint vim --version it's clear that i lack a lot of cool stuff (like clipboard capabilities) When running gvim -...
4
votes
2answers
78 views

How to delete a line which contains a specific syntax but I want to avoid a line which contains another word

How can I remove a line with a specific word but keeping in mind: if another word is found, then don't delete the line. For example, I'm deleting a line having sup or gnd with :%s/.*sup.*//g or :%s/.*...
2
votes
0answers
195 views

VIM colors not right

I have a gvim setup on Windows and am also running a vim installation on CentOS in a VirtualBox VM. I'm trying to get it where they both share the same colorscheme. I believe in the Linux .vim files,...
0
votes
1answer
123 views

Differences in launching a program through terminal and through an application launcher

I am trying to run GVim with Vim LaTex-Suite to be able to compile LaTeX documents. I have two ways of running GVim: Open Terminal, then type gvim and enter Use an application launcher e.g. xfce4-...
1
vote
0answers
94 views

Is it possible to execute a VIM command in a non-interactive mode on an already open VIM?

Let's say I have an open VIM with file loaded already and I want from an outside script/GUI to execute a VIM command on this opened VIM. For example, I have several locations in the file that I want ...
0
votes
1answer
69 views

Foreground and background color too similar in Cinnamon

After installing Cinnamon on FC25, I can no longer easily use GVim. All my title bars blend too closely for me. For some reason, I didn't have this issue on FC24 and Cinnamon, so I'm leaning towards ...
0
votes
1answer
43 views

A plugin to see what I'm doing in Vim

I'd like to see what I do when I'm navigating in Vim just as we could see on the following picture : Could anyone be able to tell me how is it possible to do it? Is there exist a certain plugin for ...
0
votes
1answer
74 views

filename with newline in vim's Netrw Directory Listing

Create a filename containing newline character: $ touch $'a\nb' When i do vim ., the filename split into multiline: I can only select one line and press enter. Then it act as new file and show this ...
2
votes
1answer
181 views

How to navigate back from text/binary file view in Vim's Netrw directory listing?

I use vim.gtk3 . to navigate current directory in Netrw Directory Listing view. I know I can press x to act like xdg-open. I also know I can press - to navigate to parent directory. But if I press ...
1
vote
0answers
83 views

Internal path not set in GVim when launched from gvim.desktop

shell: bash, fish terminal: xfce4-terminal other-applications: xfce4-whiskermenu, tmux I'm trying to have GVim inherit the full path from bash and/or fish when launching from from xfce-whisker-menu....
3
votes
0answers
292 views

How to use `gnome-terminal` with new client/server architecture as wrapper?

Anyone knows how to accommodate for new gnome-terminal-server magic? Before gnome-terminal got its new "client/server" architecture I used to use it as vim wrapper with great success for many years. ...
1
vote
1answer
374 views

Can't change default text width in GVim

Gvim is set to 78, can't change default text width to "0" at gvim, i edited "C:\Program Files (x86)\Vim_vimrc" set textwidth=0 or set tw=0 but neither helped. How do i disable textwidth parameter?
-1
votes
1answer
473 views

Run GTK2 application with different color theme

I want to run gvim with a dark color theme, so that the tabs don't stand in contrast to the dark colorscheme: There appears to be a way to do this in GTK 3. Is there a way to do this in GTK 2 ...
1
vote
1answer
22 views

how to see the changes made in a big perl script having the copy of original that is to compare both in a splitted gvim editor simultaneously

In a particular perl script and I have a copy of the same but with the changes made in it i want to see both the scripts in such a way that changes made in the copy to be highlighted in a split gvim ...
2
votes
2answers
3k views

splitting the gvim editor window horizontally

In gvim editor how to split the editor window horizontally? so that includes two files and can see simultaneously ?
0
votes
2answers
960 views

Vim: set “cursor keys” hjkl to wasd [closed]

I wish to overwrite/remap the basic vi/vim (and gvim) "cursor keys" hjkl to the ordinary "gamer layout" wasd (w-up, a-left, s-down, d-right). Moreover: I know that "w", "a", "s" and "d" are important ...
0
votes
0answers
103 views

vim: map capital 'Y' in .vimrc does not work

If I try to map capital 'Y' in my vimrc, this is getting ignored. For example, if I put something like nmap Y :w<CR> in my vimrc, this has no effect. However if I run vim and I enter :nmap Y :...
1
vote
1answer
79 views

gvim search query for mixed AND & OR conditions

Hi I want to search text inside gvim with the following criteria a&b&(c|d). I know for a&b it is /.*a\&.*b and for c|d it is /c\|d but combining these two doesnt work. what can be the ...
0
votes
1answer
235 views

Show colors in gVim embedded terminal

Does anyone know how to show colors in the gVim embedded terminal? For instance when you do a !git diff file.c.
3
votes
1answer
1k views

`crontab -e: E212: Can't open file for writing` when using gvim (works with vi)

As a user, I want to edit my crontab. crontab -e gvim is launched. It prints "/tmp/crontab.IUVYhK/crontab" [New DIRECTORY] I can write but as soon as I try to write the temporary file, I get ...
1
vote
1answer
788 views

Which libraries are needed tom compile vim with gui (gvim) on OpenSUSE?

I have been trying to compile vim with a GUI interface (gvim) on OpenSUSE 13.1 for a while now. I thought all the required libraries were installed, but apparently not. These are the relevant lines ...
1
vote
0answers
87 views

Emacs and gvim display no content on FreeBSD 10.2

I just installed FreeBSD 10.2 with the Mate desktop environment and most things seem to work. I have a problem with emacs and gvim though. Since the problem has the same symptoms with both editors, I ...
0
votes
0answers
141 views

vim frequently does not display text

My vim frequently does not display (some) text in terminal. It just shows blank area. If I attempt to select (either through mouse or keyboard), the text would appear. The issue is more severe in ...
0
votes
1answer
61 views

Wrap all lines with character sequence in vim

So basically I copy/pasted some code, and I need to prepend and append some more code to each line. Each line is a function call, and is getting added to a switch statement as it's own case. Right ...
4
votes
1answer
296 views

How can I uniquely identify different GVim instances?

With gnome-terminal, I can use the --role command line argument to make the new terminal window uniquely identifiable by the window manager or other applications, for example: gnome-terminal --role=...
1
vote
1answer
684 views

C++ header/source files in file chooser

By convention, our C++ headers live in .hpp files. When I open a gvim window with a .cpp file (so C++ source), then use the open menus, I get file chooser window which allows me to select files for: ...
3
votes
2answers
1k views

Vim visual selection method differs between Windows & Linux?

In Linux vim and gvim, I can make a visual selection by pressing V (e.g., v VISUAL or Shift+V VISUAL LINE), releasing it, and using movement keys (e.g., arrows) to highlight the desired text. In ...
3
votes
1answer
535 views

Vim emulation in IDEs vs gVim as IDE

I am currently using gVim as editor and cannot think about going back to mode-less editing. I code in Java for Android and in Python for another project. While trying to set up gVim as my primary ...
1
vote
0answers
56 views

Why does xargs gvim --remote also open a blank file?

If I run ack foo | xargs gvim, then gVim opens each named file in a separate buffer in a new instance of gVim. This is good. However, if I run ack foo | xargs gvim --remote, without gVim already ...
10
votes
1answer
424 views

Vim delay when using Ctrl+C, but only in SQL files

I'm working on a side project with both JavaScript and SQL source files. When I'm editing the JavaScript, Vim behaves normally. However, when I'm editing the SQL files, there's about a one-second ...
3
votes
3answers
124 views

Keymaping for re-indent source code in Vim

I have key mapping in my ~/.vimrc file that re-indents edited source code on the fly. It looks like as follows: " press F4 to fix indentation in whole file; overwrites marker 'q' position noremap <...
3
votes
1answer
3k views

VIM as c++ IDE - autocomplete

I'm still learning C++, but I know already some stuff. I used to use Visual Studio, but after I switched to Debian, I was working with Code Blocks. Recently I heard about using VIM as IDE and started ...
3
votes
1answer
5k views

YouCompleteMe not working after default install

I was trying to install YouCompleteMe with Vundle and it installed fine (it downloaded the git repository I pointed it to). I went into the folder and ran install.sh with the clang semantics and ...
5
votes
1answer
878 views

Can we patch an already patched font?

Powerline is some sort of plugin for Vim and Gvim. In order to be more useful it uses fonts that has some pictures (symbols) added to them. In other words they've "patched" the font set. Recently ...
1
vote
0answers
69 views

Open to specific gvim tabs

I have a working environment that I'd like to save via a script. -EDIT: I don't need to save it's state, I just want my script to define it. Though saving state would work too I guess. Currently it ...
0
votes
2answers
591 views

vim how to keep cursor position while copying text

I am (having to) using gvim in windows. I was used to the linux environment where when I select text using mouse the cursor position wont change. Now , with gvim in windows, My problem is something ...
3
votes
2answers
320 views

visudo/sudoedit and gvim --remote-silent

Is it possible to use gvim --remote-silent and similar as an editor for visudo and sudoedit? Actually, I don't think this is related to the --remote option. Even if I set Defaults editor = "/usr/bin/...
3
votes
1answer
234 views

Changing gVim behaviour on Red Hat

I recently had to change my Linux work environment from a personal Ubuntu system (having full admin rights) to a corporate Red Hat system (having very limited control on the system). Both running ...
2
votes
2answers
834 views

Setting programming font in RHEL 5 + gvim

I am working on RedHat RHEL5. I want to change the font in GVIM. The only font format that my GVIM accepts is *-courier-medium-r-normal-*-*-140-*-*-m-*-* It refuses to use Courier\ New or ...
4
votes
1answer
929 views

How can I set check interval for set autoread option in VIM

How can I set check interval for set autoread option in VIM? Is it possible?
1
vote
3answers
13k views

gvim on RHEL (Red Hat Enterprise Linux) install in home directory

How to install gvim on a RHEL server that doesn't have it (for use with SSH with X11 forwarding*)? No sudo access is available, so it has to be in the user's home directory. *Getting all the ...
0
votes
2answers
2k views

(g)vim - NerdTree and tagbar above each other left to edited file?

Any chance to get (g)vim displaying NerdTree and tagbar above each other left to edited file? +-----------+-------------+ | nerd tree | edited file | | contents | | +-----------+ ...
2
votes
1answer
819 views

How to let pacman notice the ruby installed by rbenv?

I use rbenv to manage ruby versions. I want to install gvim on my ArchLinux and one of it's dependency is ruby. I'm already use rbenv to install the version 2.0.0-p247 of ruby as root ...
1
vote
3answers
630 views

Pasting with spaces added into heads of lines (analogy to comment-chars)?

Please, consider a situation, where you find a nice example and want to copy it to your existing code to see, how it works. The indentation is almost never right right away. If there are several ...
1
vote
3answers
141 views

Applying a change to every line?

How to add 4 spaces to every line between marks (bound with m-letter and current line). How to do the same when using visual block?
10
votes
4answers
5k views

vim shortcut to open a file under cursor in an already opened window

In vim you can open a file under the cursor by using the gf command. One can also easily open that file in a new split window by hitting <c-w> f. This is a really nice and time saving feature. ...