Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add AnsiEsc to install_vim #2

Open
jinal--shah opened this issue Feb 18, 2018 · 0 comments
Open

add AnsiEsc to install_vim #2

jinal--shah opened this issue Feb 18, 2018 · 0 comments

Comments

@jinal--shah
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant