Questions tagged [gvim]
Graphical mode for vim (vi improved).
77
questions
0
votes
0
answers
34
views
how to get access again to job running on remote server
I am running jobs on a remote server, using a bad connection which drops frequently. So I use tmux, to connect to the session again by re-connecting. This way, I can access my existing terminals, and ...
0
votes
1
answer
279
views
Why GVim doesn't use dark theme?
I want to make the interface of GVim to use dark theme. I have the following line in my ~/.config/gtk-3.0/settings.ini:
[Settings]
gtk-application-prefer-dark-theme=1
All my GTK apps use dark theme ...
1
vote
0
answers
101
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 doesn't install the GUI version [i.e. GVIM] of it.
Steps Followed:
First I tried doing the ./configure process ...
0
votes
1
answer
79
views
Open txt file with GVim from webpage link
I have a local web page with links to .txt files; I want Firefox to open the files with GVim, not in the browser window. How do I do this?
In Firefox "Options" → "General" → "...
2
votes
0
answers
48
views
Multiple files with the same name and a tilde are written while editing a file with gvim
I am under fedora 29. I edit my files with gvim and since a few days, one of them appears multiple times, renamed with an additional letter and tilde. The directory looks like this :
sf1.pdf sf1....
0
votes
1
answer
44
views
stop gvim from printing the filename onto console
In my unix environment when I use gvim to open a file it immediately print the file name onto console. Can someone help me on how to stop gvim from doing this?
$ gvim ~/.cshrc.local
"~/.cshrc.local" ...
0
votes
0
answers
48
views
gvim key mappings under alt results in special characters
For some reason gVim (debian stretch + kde) started to map Alt+i to "é" and Alt + other characters are also tied to some special letters e.g. Atl+o="ï" and Alt+p="ð". The problem is that this key ...
0
votes
4
answers
995
views
vi/vim, how can I write out the nth word of all lines to a new file
How can I write out the nth word of all lines to a new file?
For example, I want the second word of all lines wrote out in new_file.txt:
old_file.txt:
pippo pluto paperino
gigi lui marco
piero ...
5
votes
2
answers
154
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
1
answer
2k
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.
1
vote
1
answer
205
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
2
answers
6k
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
2
answers
90
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
0
answers
368
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
1
answer
274
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
0
answers
221
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
1
answer
91
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
1
answer
50
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
1
answer
139
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 ...
3
votes
1
answer
361
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
0
answers
107
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
0
answers
523
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. ...
2
votes
1
answer
795
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
1
answer
818
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
1
answer
31
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
2
answers
7k
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
2
answers
2k
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
0
answers
245
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
1
answer
134
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
1
answer
342
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
1
answer
2k
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 ...
3
votes
1
answer
2k
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
0
answers
94
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
0
answers
408
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
1
answer
100
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
1
answer
438
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
1
answer
775
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
2
answers
2k
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
1
answer
666
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
0
answers
77
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 ...
11
votes
1
answer
716
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
3
answers
213
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
1
answer
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
1
answer
6k
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
1
answer
1k
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
0
answers
72
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
2
answers
765
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
2
answers
410
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
1
answer
274
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
2
answers
957
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 ...