Search code examples
bashvimtmuxack

Bash shell turns to symbols when using VIM Ack Plugin


Every now and then when using the ack-vim plugin the font in my window will change to all symbols. I've yet to see any pattern to when this happens. Any suggestions on the cause and possible remedy would be appreciated.

screen-fcuk


Solution

  • I've seen that happen when binary content got printed to the terminal. Do your Ack queries potentially include binary files?

    A fix might be

    :!echo -e '\ec\e(K\e[J'
    

    These ANSI Escape sequences attempt to reset the terminal:

    # "ESC c"        - sends reset to the terminal.
    # "ESC ( K"      - reloads the screen output mapping table.
    # "ESC [ J"      - erases display.