vim / vim-appimage

AppImage for gVim
115 stars 20 forks source link

Build AppImage that could start a Terminal Vim #6

Closed rakus closed 5 years ago

rakus commented 5 years ago

Terminal Vim

Allow to run GVim or Vim from the AppImage. Which one is started depends on the name used to start the AppImage. If the name starts with 'vim', the terminal version of Vim is started, else GVim is started.

Setup could be:

-rwxr-xr-x 1 ralf ralf 19320200 Apr 28 13:24 GVim-v8.1.1209.glibc2.15-x86_64.AppImage*
lrwxrwxrwx 1 ralf ralf       40 Apr 28 13:25 gvim -> GVim-v8.1.1209.glibc2.15-x86_64.AppImage*
lrwxrwxrwx 1 ralf ralf       40 Apr 28 13:25 vim -> GVim-v8.1.1209.glibc2.15-x86_64.AppImage*

Changes

Using AppImageKit V11

The script scripts/appimage.sh downloads a file name functions.sh. This script uses v6 of the AppImageKit.

Copied some lines from functions.sh to appimage.sh and changed the URLs to use AppImageKit v11 (newest release). Important new feature: ARGV0, see below.

Startup

The gvim.desktop file is changed to call a script named vim.startup.sh. This script ...

Building

It is now possible to build the AppImage on the local machine:

scripts/build_vim.sh
scripts/appimage.sh

The resulting AppImage is in build/out.

Testing

It is possible to copy the GVim*.AppImage file to vim/src/vim and then start make test.

This is currently not part of the Travis build, but could be added if wanted.

chrisbra commented 5 years ago

thanks