Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
1
answers
2201
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 make it identical to how it was before. Is there a way to restore the looks of font? i.e by copying so...
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 make it identical to how it was before. Is there a way to restore the looks of font? i.e by copying some old font file or some settings from old system? Same issue is there for my Gvim.
Jean
(211 rep)
Jan 18, 2019, 03:36 PM
• Last activity: Jul 16, 2025, 12:04 PM
3
votes
2
answers
3287
views
gvim colors the same as is the terminal
Is there a command I can put in the `.vimrc` to make gvim look like vim's setup in the terminal? Same back ground, syntax highlighting, colors, and font. To add to my question, is there a may for gvim to follow vim's vimrc? That is, there layouts and actions are identical?
Is there a command I can put in the
.vimrc
to make gvim look like vim's setup in the terminal?
Same back ground, syntax highlighting, colors, and font.
To add to my question, is there a may for gvim to follow vim's vimrc? That is, there layouts and actions are identical?
dustin
(392 rep)
Apr 8, 2013, 02:56 AM
• Last activity: Jul 3, 2025, 09:02 PM
2
votes
2
answers
8572
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 --version` it's clear that my gvim version is fully decked out. I'd like to run vim in the 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 --version
it's clear that my gvim version is fully decked out.
I'd like to run vim in the terminal, but I'd also like to use the full capabilities installed with my gvim install. is there a way to run gvim in terminal? something like gvim --no-window
or the like?
Is there a way to force the vim
command to use the backend of gvim, while still being in terminal?
Thorbjørn E. K. Christensen
(203 rep)
May 22, 2018, 10:43 AM
• Last activity: Dec 10, 2024, 07:40 PM
3
votes
1
answers
1851
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 from `./configure --with-features=huge --enable-gui` output: checking for xmkmf... /usr/bin/xmkmf ch...
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 from ./configure --with-features=huge --enable-gui
output:
checking for xmkmf... /usr/bin/xmkmf
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking if X11 header files can be found... no
checking --enable-gui argument... no GUI support
checking X11/SM/SMlib.h usability... no
checking X11/SM/SMlib.h presence... no
checking for X11/SM/SMlib.h... no
(--enable-gui=auto, --enable-gui=gtk2, --enable-gui
makes no difference. Same result for all attempts.)
I've found a lot of guides on how to install the required libraries on systems such as Ubuntu, Fedora and CentOS (see for example an Answer on superuser ).
However, I cannot find any information on the required libraries for opensuse. X11-dev, gtk2-dev and imake are all installed.
For example, /usr/X11/include
exists, and contains
-rw-r--r-- 2 root root 2298 Jul 2 16:16 ap_keysym.h
drwxr-xr-x 2 root root 4096 Sep 7 2014 bitmaps
-rw-r--r-- 1 root root 3118 May 4 18:12 cursorfont.h
-rw-r--r-- 1 root root 2820 Jul 2 16:16 DECkeysym.h
drwxr-xr-x 2 root root 4096 Sep 30 2014 dri
drwxr-xr-x 2 root root 4096 Aug 19 14:57 extensions
drwxr-xr-x 2 root root 4096 Sep 30 2014 fonts
-rw-r--r-- 1 root root 6044 Jul 2 16:16 HPkeysym.h
-rw-r--r-- 1 root root 459 May 4 18:12 ImUtil.h
-rw-r--r-- 1 root root 175257 Jul 2 16:16 keysymdef.h
-rw-r--r-- 1 root root 2774 Jul 2 16:16 keysym.h
drwxr-xr-x 2 root root 4096 Sep 30 2014 PM
-rw-r--r-- 1 root root 4022 Jul 2 16:16 Sunkeysym.h
-rw-r--r-- 1 root root 4578 Jul 2 16:16 Xalloca.h
-rw-r--r-- 1 root root 2951 Jul 2 16:16 Xarch.h
-rw-r--r-- 1 root root 2518 Jul 2 16:16 Xatom.h
-rw-r--r-- 1 root root 3817 Jul 2 16:18 Xauth.h
-rw-r--r-- 1 root root 21346 May 4 18:12 Xcms.h
-rw-r--r-- 1 root root 2404 Jul 2 16:16 Xdefs.h
-rw-r--r-- 1 root root 13065 Jul 2 16:16 XF86keysym.h
drwxr-xr-x 2 root root 4096 Aug 19 14:57 Xft
-rw-r--r-- 1 root root 7131 Jul 2 16:16 Xfuncproto.h
-rw-r--r-- 1 root root 2257 Jul 2 16:16 Xfuncs.h
-rw-r--r-- 1 root root 20205 Jul 2 16:16 X.h
-rw-r--r-- 1 root root 30995 May 4 18:12 XKBlib.h
-rw-r--r-- 1 root root 1567 May 4 18:12 XlibConf.h
-rw-r--r-- 1 root root 99498 May 4 18:12 Xlib.h
-rw-r--r-- 1 root root 37121 May 4 18:12 Xlibint.h
-rw-r--r-- 1 root root 506 May 4 18:12 Xlib-xcb.h
-rw-r--r-- 1 root root 1297 May 4 18:12 Xlocale.h
-rw-r--r-- 1 root root 5122 Jul 2 16:16 Xmd.h
-rw-r--r-- 1 root root 3115 Jul 2 16:16 Xosdefs.h
-rw-r--r-- 1 root root 4362 Jul 2 16:16 Xos.h
-rw-r--r-- 1 root root 33693 Jul 2 16:16 Xos_r.h
-rw-r--r-- 1 root root 7650 Jul 2 16:16 Xpoll.h
-rw-r--r-- 1 root root 56959 Jul 2 16:16 Xproto.h
-rw-r--r-- 1 root root 2805 Jul 2 16:16 Xprotostr.h
-rw-r--r-- 1 root root 5949 May 4 18:12 Xregion.h
-rw-r--r-- 1 root root 10628 May 4 18:12 Xresource.h
-rw-r--r-- 1 root root 1719 Jul 2 16:17 xshmfence.h
-rw-r--r-- 1 root root 12395 Jul 2 16:16 Xthreads.h
-rw-r--r-- 1 root root 21353 May 4 18:12 Xutil.h
-rw-r--r-- 1 root root 1910 Jul 2 16:16 Xw32defs.h
-rw-r--r-- 1 root root 3968 Jul 2 16:16 XWDFile.h
-rw-r--r-- 1 root root 3283 Jul 2 16:16 Xwindows.h
-rw-r--r-- 1 root root 2262 Jul 2 16:16 Xwinsock.h
More generally, how can I figure out build dependecies of an existing package on OpenSUSE? (Then I could go backwards and find the build dependencies from the gvim
OpenSUSE package.)
uvesten
(163 rep)
Sep 3, 2015, 10:27 AM
• Last activity: May 4, 2024, 04:05 AM
4
votes
2
answers
1425
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 but for some reason GVim still uses a light theme. How can I change that? Note: When I run...
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 but for some reason GVim still uses a light theme. How can I change that?
Note: When I run gvim --version
the following line is in the result:
Huge version with GTK3 GUI. So I'm sure it's using GTK3.
Mathemagician
(173 rep)
Jul 4, 2021, 03:52 PM
• Last activity: Jul 10, 2022, 02:53 PM
0
votes
0
answers
177
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 any jobs that are running on the terminals, eg **vim**. But if I am running a job like **gvim**,...
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 any jobs that are running on the terminals, eg **vim**.
But if I am running a job like **gvim**, or any other application which opens up a different window, I dont see that window after re-connecting. But I can see the process for it still running using **ps**.
So, after reconnecting, how do I get that gvim window back again for usage?
R71
(101 rep)
Feb 10, 2022, 11:57 AM
0
votes
4
answers
1648
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 andrea chiara new_file.txt: pluto lui andrea
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 andrea chiara
new_file.txt:
pluto
lui
andrea
Andrea Spiezia
(9 rep)
Jul 11, 2019, 02:53 PM
• Last activity: Nov 23, 2021, 12:24 PM
24
votes
5
answers
19550
views
vim shortcut to open a file under cursor in an already opened window
In vim you can [open a file under the cursor][1] by using the `gf` command. One can also easily open that file in a new split window by hitting ` f`. This is a really nice and time saving feature. However, I can't figure out, how to open the file in an already opened split window (without creating a...
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 f
. This is a really nice and time saving feature.
However, I can't figure out, how to open the file in an already opened split window (without creating a new one).
psibar
(509 rep)
May 3, 2013, 01:08 PM
• Last activity: Aug 24, 2021, 02:55 AM
3
votes
1
answers
2467
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 this error message: "crontab.IUVYhK/crontab" E212: Can't open file for writing However, I have no issue w...
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 this error message:
"crontab.IUVYhK/crontab" E212: Can't open file for writing
However, I have no issue when using vi as editor:
EDITOR=vi crontab -e
Is it wrong to set gvim
as EDITOR
? Shold I use vi
? I do very few admin tasks on this desktop machine, so I never ran into any issue.
Jérôme
(2023 rep)
Oct 20, 2015, 10:21 PM
• Last activity: Aug 5, 2021, 08:27 PM
1
votes
1
answers
4860
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](https://en.wikipedia.org/wiki/SystemVerilog) syntax.
Need a shortcut for finding the
end
for a particular begin
in [SystemVerilog](https://en.wikipedia.org/wiki/SystemVerilog) syntax.
Rajiv Desh
(19 rep)
Apr 3, 2019, 06:06 AM
• Last activity: Jun 14, 2021, 03:01 PM
3
votes
2
answers
1364
views
GVim compiled from source does not use gtk2
I have two HP-UX machines say A and B with HP-UX 11.11 and 11.31 respectively. I have compiled gvim 7.3 from source an B, and gvim 7.0 on A. On A, gvim uses "version with GTK GUI", Compilation with gcc (...) -DFEAT_GUI_GTK and all works fine. On B, gvim looks different and uses "version with X11-Mot...
I have two HP-UX machines say A and B with HP-UX 11.11 and 11.31 respectively. I have compiled gvim 7.3 from source an B, and gvim 7.0 on A.
On A, gvim uses "version with GTK GUI", Compilation with gcc (...) -DFEAT_GUI_GTK and all works fine.
On B, gvim looks different and uses "version with X11-Motif GUI". Here ssh -X does not copy paste on selection exactly as in the thread "GVim compiled from source opened via SSH -X does not copy paste on selection":
- copy/paste via select works on a GVim window on A, but not on B.
- When I select some text in the GVim window, I can paste it via right-click within that window, but I cannot paste it into anything running locally. When I select something locally, I can paste it locally but when I paste into the GVim window, it pastes the last thing selected in the GVim window, not the last thing selected locally.
The Problem is: I cannot rebuild gvim with gtk. Although I have installed GTK+ on the machine via HP depot (GTK 2.6) and using gtk+ is called default in the Makefile configure ends up with compiler option "gcc (...) -DFEAT_GUI_MOTIF".
to be more specific:
configure gives:
checking --enable-gui argument... yes/auto - automatic GUI support
checking whether or not to look for GTK+ 2... yes
but doesn't search for gtk Libraries. It only looks for Motif:
checking for location of Motif GUI libs... /usr/lib/Motif1.1
It doesn't tell me that it is missing anything I can provide!
In the directory "auto" the file configure.log shows no failure in searching for GTk, it just doesn't look for!
configure:7577: result: yes/auto - automatic GUI support
configure:7609: checking whether or not to look for GTK+ 2
configure:7618: result: yes
configure:7627: checking whether or not to look for GNOME
configure:7636: result: no
configure:7644: checking whether or not to look for Motif
configure:7653: result: yes
configure:7661: checking whether or not to look for Athena
configure:7670: result: yes
configure:7678: checking whether or not to look for neXtaw
configure:7687: result: yes
configure:7695: checking whether or not to look for Carbon
configure:7704: result: yes
configure:7752: checking --disable-gtktest argument
configure:7762: result: gtk test enabled
configure:7772: checking for pkg-config
configure:7803: result: no
configure:8035: checking for location of Motif GUI includes
configure:8047: result: in default path
configure:8062: checking --with-motif-lib argument
configure:8076: result: no
configure:8081: checking for location of Motif GUI libs
configure:8099: result: /usr/lib/Motif1.1
configure:8202: checking for XShapeQueryExtension in -lXext
And make starts with OPTION Motif:
avalenti@ncc1n:/usr/local/src/vim/vim73/src >make | tee make-minimal.results
mkdir objects
CC="gcc -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -I/usr/local/include " srcdir=. sh ./osdef.sh
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -I/usr/local/include -g -O2 -D_FORTIFY_SOURCE=1 -o objects/buffer.o buffer.c
(...)
If I force usings gtk with
configure --enable-gui=gtk2
make ends up with no error but gvim says:
"E25: GUI cannot be used: Not enabled at compile time"
How can I force gvim to compile using gtk2?
Arno Valentin
(31 rep)
Apr 23, 2012, 04:42 PM
• Last activity: Feb 8, 2021, 07:26 AM
1
votes
0
answers
228
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 with just the --prefix to local directory and said no GUI related things are compiled. Then understood...
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 with just the --prefix to local directory and said no GUI related things are compiled. Then understood that by default GUI is disabled.
Next in the src/Makefile I enabled the GUI option to use the GTK2 version of the GUI and also updated the prefix to include local directory. Then downloaded some packages called "gtk-vim-syntax" which contained some .vim files related to gtk2, gtk3, gnome etc. added that path to $PATH. Then first tried running the below configure option
./configure --prefix=/home/installed --with-features=huge --enable-gui=gtk2
But still when I saw the configure terminal outputs it said no--enable-gui found, so no GUI enabled.
Then when checked online they said, you need to first install vim-common packages and either vim-gtk or vim-gnome and everyone provide the option of sudo apt-install etc etc. but since I am not the root user I am unable to install that way. Is there anyplace where I can find those package and install them locally before I try to ./configure in the vim folder ?
Or is there any other way I can install the gvim and all its dependent files in the local directory and not as root user ? Why can't they add some notes/info on how to install the dependencies locally as well in the README.
Kindly let me know if anyone had overcome this issue. Thanks in advance !
Update:
I do see the gtk-2 is installed in the following path /usr/lib64/gtk-2.0 but not sure why the ./configure isnt auto picking it.
Do I need to set any environment variable so that the ./configure picks it up ?
Vimo
(163 rep)
Jan 24, 2021, 01:11 AM
0
votes
1
answers
198
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" → "Applications" → "plain text document" I have selected "Use GVim (default)". However, the files continue opening in a browse...
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" → "Applications" → "plain text document" I have selected "Use GVim (default)". However, the files continue opening in a browser tab.
I did the same for PHP scripts: "Use GVim"; they open in a GVim window. Precisely the behavior I'm wanting with .txt
files.
Iohann
(1 rep)
Jul 13, 2020, 07:52 PM
• Last activity: Jul 14, 2020, 08:37 PM
2
votes
0
answers
148
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.tec~ sf1.tef~ sf1.tei~ sf1.tel~ sf1.teo~ sf1.ter~ sf1.teu~ sf1.tex sf1.tez~ sf1.nav sf1.snm sf1.ted~ sf1....
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.tec~ sf1.tef~ sf1.tei~ sf1.tel~ sf1.teo~ sf1.ter~ sf1.teu~ sf1.tex sf1.tez~ sf1.nav sf1.snm sf1.ted~ sf1.teg~ sf1.tej~ sf1.tem~ sf1.tep~ sf1.tes~ sf1.tev~ sf1.tex~ sf1.toc sf1.aux sf1.out sf1.teb~ sf1.tee~ sf1.teh~ sf1.tek~ sf1.ten~ sf1.teq~ sf1.tet~ sf1.tew~ sf1.tey~
Apparently the whole alphabet is doing something here, but I really don't udnerstand what's going on (I don't even know what context to provide for more details !). If anyone has a clue as to what's going on and how this could be stopped...
Thanks a lot !
Marc
Marc
(21 rep)
Mar 30, 2020, 09:30 AM
• Last activity: Mar 30, 2020, 03:51 PM
0
votes
1
answers
78
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" "~/.cshrc.local" 2L, 291C$username> $ gvim --version VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb...
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"
"~/.cshrc.local" 2L, 291C$username>
$ gvim --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 15 2019 13:18:22)
TIA
sandywho
(101 rep)
Aug 23, 2019, 04:53 PM
• Last activity: Mar 25, 2020, 03:43 AM
0
votes
0
answers
102
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 mappings are nowhere set in gvim. Further, `gVim` is the application unde...
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 mappings are nowhere set in gvim. Further, gVim
is the application under KDE
in which this happens (tried in Vim
, Firefox
, Kate
, KWrite
, terminal). So, while in some oses (Windows) this seems to be a standard mapping (however based on the current keyboard selection e.g. Atl
+V
= "@" in Czech keyboard but not US keyboard), I do not seem to see the same case in Debian+KDE.
The question, where do these mappings come from?
How to get rid of those so that the standard mappings in vim latex start to work again (Alt
+I
= new item in itemize
).
atapaka
(675 rep)
Jul 17, 2019, 11:45 AM
5
votes
2
answers
230
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 200 files. I can do this using perl too but is there any good sed method to do so. Thanks
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 200 files.
I can do this using perl too but is there any good sed method to do so.
Thanks
Ramneek Singh Kakkar
(187 rep)
May 17, 2019, 10:29 AM
• Last activity: May 17, 2019, 03:34 PM
0
votes
2
answers
952
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 like this - 1. while I am editing in line 6 2. and when I am having to copy "hellovim" from line 3 3....
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 like this -
1. while I am editing in line 6
2. and when I am having to copy "hellovim" from line 3
3. and when I click with mouse on "hellovim" to copy it
4. then the cursor gets moved to "hellovim" on line 3
5. where as I would like the cursor to stay on line 6
How can I do this
binithb
(101 rep)
Mar 6, 2014, 01:14 PM
• Last activity: Apr 17, 2019, 12:01 PM
0
votes
2
answers
2472
views
Vim: set "cursor keys" hjkl to wasd
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 keys in `vim` so I came up with the idea to remap **hjkl** to **ALT + wasd**.
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 keys in vim
so I came up with the idea to remap **hjkl** to **ALT + wasd**.
Tom Solid
(256 rep)
Jul 4, 2016, 10:55 AM
• Last activity: Mar 18, 2019, 03:10 AM
31
votes
4
answers
10236
views
vim - open file and goto line number using <filename>:<line nbr>:
Several tools such as `grep`, `py.test`, etc ... use the pattern ` : :` to point to errors. For example: ; grep -Hn Common setup.cfg setup.cfg:11: Common How can I modify vim and gvim so that I can invoke them like so: gvim setup.cfg:11: instead of gvim setup.cfg +11 I know that I can write a small...
Several tools such as
grep
, py.test
, etc ... use the pattern ::
to point to errors. For example:
; grep -Hn Common setup.cfg
setup.cfg:11: Common
How can I modify vim and gvim so that I can invoke them like so:
gvim setup.cfg:11:
instead of
gvim setup.cfg +11
I know that I can write a small shell script that would parse things but I wonder if there is an easier way.
Sardathrion - against SE abuse
(4493 rep)
Oct 5, 2012, 07:14 AM
• Last activity: Dec 3, 2018, 08:05 AM
Showing page 1 of 20 total questions