Open files in GVIM in new tab in GNOME 3

This is how I do it in Fedora 19, older instructions below.

This will make it so you can open every file you click on in Nautilus in the same GVIM window (in different tabs).

I like to only have certain filetypes that always open in the same GVIM window (in my case, .php, .js, and .css).

Go to /usr/share/applications as root.

cd /usr/share/applications
cp gvim.desktop svim.desktop

Edit svim.desktop and change Exec= from

Exec=gvim -f %F


Exec=gvim --servername SVIM -f %F

Right click a file of the type you would like to always open in same window. Go to Properties, Open With tab, Show All, and select svim. Do this for all file types you want to open in this session.

The following instructions worked on another older version of Linux where the already existing desktop file was named vim.desktop, if I remember correctly. It no longer worked on the latest version I use.

This will make it so you can open every file you click on in Nautilus in the same GVIM window (in different tabs).
Create a file called gvim.desktop in /usr/share/applications.

Make the contents as follows:

[Desktop Entry]
Comment=Graphical Version of vim
Exec=gvim --servername gvim --remote-tab-silent %U
Categories=Programming; System Utilities

The important line is the Exec line. The difference between –remote-tab-silent and –remote-tab is that silent won’t give you an error message before you can start editing.

Then to use this new shortcut you right click on a file you would want to edit in Nautilus and click Properties. Go to Open With and you may need to click Show Other Applications.

Choose GVIM (in Fedora the original is Vim; don’t choose that one here; GVIM is the one you just created).

Do this for all file types you would want to open in the same GVIM session.

You could also make a separate .desktop file for each file type if you wanted to. ie php-gvim.desktop could be made to open all .php files in the same gvim session. The key would be to edit the server name (on the Exec line) in the .desktop file. You could call it php instead of gvim.

Exec=gvim --servername php --remote-tab-silent %U

And you will want to change the Name too:


Which package does this file belong to?

Need to know where a library or other file came from? Here are some I’ve used:


# rpm -qf /path/to/file



apt-file search /path/to/file

You may need to install by doing this (as root):

# apt-get install apt-file
# apt-file update


If you are using the new pkgng:

pkg which /path/to/file

or if you are still using the old pkg_ tools:

# pkg_info -W /path/to/file


Gentoo / Funtoo

# equery belongs /path/to/file


Your distribution not included here? Usually you can just do a web search for something like “redhat which file package belong” without quotes to find it for a particular distro.

Wireless stopped working on SuSE Linux 11.1

On a HP ProBook 4420s my wireless connection stopped working after some updates.

I looked in /var/log/boot.msg and saw no trace of the wireless driver being loaded.
So I looked in /var/log/boot.omsg and saw:

 [ 11.224842] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, 1.3.27kds
 [ 11.226111] iwlagn: Copyright(c) 2003-2009 Intel Corporation
 [ 11.227383] iwlagn 0000:43:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
 [ 11.228632] iwlagn 0000:43:00.0: setting latency timer to 64
 [ 11.228668] iwlagn 0000:43:00.0: Detected Intel Wireless WiFi Link 6000 Series 2x2 AGN REV=0x74
 [ 11.256845] iwlagn 0000:43:00.0: Tunable channels: 13 802.11bg, 24 802.11a channels
 [ 11.258146] alloc irq_desc for 36 on node -1
 [ 11.258147] alloc kstat_irqs on node -1
 [ 11.258165] iwlagn 0000:43:00.0: irq 36 for MSI/MSI-X

Then I decided to check:

# locate iwlagn

Some of the results included relevent modules files:


I found (after trying to manually modprobe the modules) I was getting this error in dmesg:

# dmesg
[ 1181.314606] iwlcore: Unknown parameter `led_mode'

Googling the error led me here:
So then I investigated and realized I had to go to:


and comment out the line with

#options iwlcore led_mode=1

This is basically because the driver does not support that option. If you run:

modinfo -F parm iwlagn

the led_mode parameter is not there.

Hope this helps.

PS: The package that did this to me was sled11-branding-hp-bnb-1-0.116.1.