Skip to content

add AnsiEsc to install_vim #2

Description

@jinal--shah

Useful for viewing colourised log output e.g. anything from hashicorp cli tools

Would be something like:

# TODO some kind of additional loop for when we don't get the vimball, but a sourceforge error page
curl -sS -L --retry 3 \
  -o /var/tmp/AnsiEsc.vba.gz "https://vim.sourceforge.io/scripts/download_script.php?src_id=14498" 

gunzip /var/tmp/AnsiEsc.vba.gz
mkdir /etc/vim/bundle/AnsiEsc
su-exec root vim -c 'e /var/tmp/AnsiEsc.vba' -c 'UseVimball /etc/vim/bundle/AnsiEsc' -c 'q'

# modify AnsiEsc to restore our own custom settings properly:
sed -i '/let &l:hl= s:hlkeep_{bufnr("%")}/a so $MYVIMRC' /var/tmp/AnsiEsc.vim | grep -B3 MYVIMRC

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions