From 22b8062ef4dc6962715e7fa67ba53197d583f005 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 7 Sep 2015 03:11:46 +0200 Subject: added instructions on how to add vim to thunars sendto menu --- doc/INSTALL | 6 ++++++ gvim.desktop | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gvim.desktop 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" # build YouCompleteMe (if you plan to use it) cd plugins/YouCompleteMe python2 ./install.py --clang-completer + + +# step 7) +# 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) +mkdir -p .local/share/Thunar/sendto/ +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 @@ +[Desktop Entry] +Name=Vi IMproved Tab +Comment=Open file in an existing instance of vi and in a new tab +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++; +Exec=gvim f -N --remote-tab %F +Icon=gvim +Type=Application +Terminal=false +X-XClassHintResName=VIM +Categories=Utility;TextEditor; -- cgit v1.2.3