Skip to content

Instantly share code, notes, and snippets.

@Mehanik
Created January 28, 2014 09:03
Show Gist options
  • Save Mehanik/8664353 to your computer and use it in GitHub Desktop.
Save Mehanik/8664353 to your computer and use it in GitHub Desktop.
Edit files in opened Vim session/new Vim tab
$ cat .local/share/applications/gvim-tab.desktop
[Desktop Entry]
Encoding=UTF-8
Name=GVim (Open in new tab)
Comment=Edit in a new tab
Exec=gvim --remote-tab-silent %F
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/vim.svg
Categories=Application;Utility;TextEditor;
StartupNotify=true
MimeType=text/plain;
NoDisplay=true
StartupNotify=false
$ cat .local/share/applications/gvim-existing.desktop
[Desktop Entry]
Encoding=UTF-8
Name=GVim (Open in existing)
Comment=Edit in opened Vim buffer
Exec=gvim --remote-silent %F
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/vim.svg
Categories=Application;Utility;TextEditor;
StartupNotify=true
MimeType=text/plain;
NoDisplay=true
StartupNotify=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment