diff options
author | Max Christian Pohle | 2015-09-07 03:11:46 +0200 |
---|---|---|
committer | Max Christian Pohle | 2015-09-07 03:11:46 +0200 |
commit | 22b8062ef4dc6962715e7fa67ba53197d583f005 (patch) | |
tree | 25422c2f1c1b0701dbb321c6c7ee29bd7a48830f | |
parent | b2b9fe7f6739b9970a6d1476e7e8cb7356474c94 (diff) | |
download | vim-karlmarks-22b8062ef4dc6962715e7fa67ba53197d583f005.tar.bz2 vim-karlmarks-22b8062ef4dc6962715e7fa67ba53197d583f005.zip |
added instructions on how to add vim to thunars sendto menu
-rw-r--r-- | doc/INSTALL | 6 | ||||
-rw-r--r-- | gvim.desktop | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/doc/INSTALL b/doc/INSTALL index 38068d5..1d664d3 100644 --- a/doc/INSTALL +++ b/doc/INSTALL | |||
@@ -25,3 +25,9 @@ vim -c ":au! SpellFileMissing" | |||
25 | # build YouCompleteMe (if you plan to use it) | 25 | # build YouCompleteMe (if you plan to use it) |
26 | cd plugins/YouCompleteMe | 26 | cd plugins/YouCompleteMe |
27 | python2 ./install.py --clang-completer | 27 | python2 ./install.py --clang-completer |
28 | |||
29 | |||
30 | # step 7) | ||
31 | # add gvim functionality to thunar, so that sendto can be used to open a file in an existing vim instance (as a tab in this case) | ||
32 | mkdir -p .local/share/Thunar/sendto/ | ||
33 | cp ~/.vim/gvim.desktop ~/.local/share/Thunar/sendto/ | ||
diff --git a/gvim.desktop b/gvim.desktop new file mode 100644 index 0000000..37c6e58 --- /dev/null +++ b/gvim.desktop | |||
@@ -0,0 +1,10 @@ | |||
1 | [Desktop Entry] | ||
2 | Name=Vi IMproved Tab | ||
3 | Comment=Open file in an existing instance of vi and in a new tab | ||
4 | MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; | ||
5 | Exec=gvim f -N --remote-tab %F | ||
6 | Icon=gvim | ||
7 | Type=Application | ||
8 | Terminal=false | ||
9 | X-XClassHintResName=VIM | ||
10 | Categories=Utility;TextEditor; | ||