Edit edit tar.gz file

43 views
Skip to first unread message

Nutcha Schonn

unread,
Oct 21, 2023, 7:30:23 AM10/21/23
to vim_use
About 3-4 years ago I remember that I could edit a edit tar.gz file with vi command.
When trying that today it does not work, is there something I can do to get it to work with the latest VIM 9 version?

Lifepillar

unread,
Oct 21, 2023, 9:34:55 AM10/21/23
to vim...@googlegroups.com
It works with Vim 9.0.1946. Besides:

:echo g:loaded_tarPlugin

prints `v32`.

Either your runtime does not have the plugin (try `:e
$VIMRUNTIME/plugin/tarPLugin.vim`), or your configuration is preventing
the plugin from loading (for instance, if you set g:loaded_tarPlugin=1
in your vimrc).

You mention vi rather than vim: that may make a difference.

Hope this helps,
Life.

Tony Mechelynck

unread,
Oct 22, 2023, 9:45:30 AM10/22/23
to vim...@googlegroups.com
Yeah, if you type :version (followed by <Enter>), vim (or vim
masquerading as vi) answers with about a page of information beginning
(in Vim on my system) with

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 22 2023 01:25:49)
Included patches: 1-2059
Compiled by antoine.m...@gmail.com
Huge version with GTK3 GUI. Features included (+) or not (-):

In a typical "Vim built as vi" the fourth line above typically begins
instead "Tiny version without GUI", like this:

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 22 2023 01:25:29)
Included patches: 1-2059
Compiled by antoine.m...@gmail.com
Tiny version without GUI. Features included (+) or not (-):

A tiny version of Vim is built with no expression evaluation (lower
down, in the part I didn't paste, it says -eval rather than +eval as
in a full-featured Vim or gvim), and that prevents some plugins
(including IIRC the tar plugin) from running.

Best regards,
Tony.

Nutcha Schonn

unread,
Oct 22, 2023, 3:33:08 PM10/22/23
to vim_use
I get this:

 :~# vi --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 04 2023 10:24:44)
Included patches: 1-1378, 1499
Modified by team...@tracker.debian.org
Compiled by team...@tracker.debian.org

Tiny version without GUI.  Features included (+) or not (-):
+acl               +file_in_path      -mouse_urxvt       -tcl
-arabic            -find_in_path      +mouse_xterm       -termguicolors
+autocmd           +float             +multi_byte        -terminal
-autochdir         -folding           -multi_lang        +terminfo
-autoservername    -footer            -mzscheme          +termresponse
-balloon_eval      +fork()            -netbeans_intg     +textobjects
-balloon_eval_term -gettext           +num64             -textprop
-browse            -hangul_input      -packages          -timers
++builtin_terms    +iconv             +path_extra        +title
-byte_offset       +insert_expand     -perl              -toolbar
-channel           -ipv6              -persistent_undo   +user_commands
+cindent           -job               -popupwin          -vartabs
-clientserver      +jumplist          -printer           +vertsplit
-clipboard         -keymap            -profile           +vim9script
+cmdline_compl     -lambda            -python            -viminfo
+cmdline_hist      -langmap           -python3           +virtualedit
+cmdline_info      -libcall           -quickfix          +visual
+comments          -linebreak         -reltime           +visualextra
-conceal           +lispindent        -rightleft         +vreplace
-cryptv            +listcmds          -ruby              +wildignore
-cscope            +localmap          +scrollbind        +wildmenu
+cursorbind        -lua               -signs             +windows
-cursorshape       -menu              +smartindent       +writebackup
-dialog            -mksession         -sodium            -X11
-diff              +modify_fname      -sound             +xfontset
-digraphs          +mouse             -spell             -xim
-dnd               -mouseshape        -startuptime       -xpm
-ebcdic            -mouse_dec         -statusline        -xsmp
-emacs_tags        -mouse_gpm         -sun_workshop      -xterm_clipboard
-eval              -mouse_jsbterm     -syntax            -xterm_save
+ex_extra          -mouse_netterm     +tag_binary
-extra_search      +mouse_sgr         -tag_old_static
-farsi             -mouse_sysmouse    -tag_any_white
   system vimrc file: "/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -ffile-prefix-map=/build/vim-JA6Vy9/vim-9.0.1378=. -fstack-protector-strong -Wformat -Werror=format-security -DSYS_VIMRC_FILE=\"/etc/vim/vimrc\" -DSYS_GVIMRC_FILE=\"/etc/vim/gvimrc\" -DTINY_VIMRC -DSYS_TINYRC_FILE=\"/etc/vim/vimrc.tiny\" -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lselinux -lacl -lattr

Yongwei Wu

unread,
Oct 23, 2023, 2:54:37 AM10/23/23
to vim...@googlegroups.com
On Mon, 23 Oct 2023 at 03:33, Nutcha Schonn <aplushos...@gmail.com> wrote:
I get this:

 :~# vi --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 04 2023 10:24:44)
Included patches: 1-1378, 1499
Modified by team...@tracker.debian.org
Compiled by team...@tracker.debian.org
Tiny version without GUI.  Features included (+) or not (-):

You have the "tiny" version. You may use `sudo apt install vim-nox` to install the complete non-GUI version on Debian or Ubuntu.

--
Yongwei Wu
URL: http://wyw.dcweb.cn/

Yongwei Wu

unread,
Oct 23, 2023, 3:01:02 AM10/23/23
to vim...@googlegroups.com
Also, you may want to check whether names like `vi` and `vim` point to the correct executables by the command `update-alternatives --get-selections`. If they are not to your satisfaction,use commands like `sudo update-alternatives --config vi` to change the selection.

Reply all
Reply to author
Forward
0 new messages