# HG changeset patch # User Steve Losh # Date 1449668876 0 # Node ID 2ed29341d197aa8e49568b579c02b1ce6f76a34a # Parent 9b4257803faa166fad5f6c46b7d579bec09c7ca9# Parent 556dbee6b283d1f6c3521248b40ecfba49e5f39d Merge. diff -r 9b4257803faa -r 2ed29341d197 plugin/clam.vim --- a/plugin/clam.vim Thu Mar 26 10:44:03 2015 -0700 +++ b/plugin/clam.vim Wed Dec 09 13:47:56 2015 +0000 @@ -34,6 +34,11 @@ " Open the new window (or move to an existing one). if winnr < 0 silent! execute g:clam_winpos . ' new ' . buffer_name + + " Highlight ANSI color codes if the AnsiEsc plugin is present. + if exists("g:loaded_AnsiEscPlugin") + silent! execute 'AnsiEsc' + endif else silent! execute winnr . 'wincmd w' endif @@ -64,11 +69,6 @@ " Map p to "pipe" the buffer into a new command. silent! execute 'nnoremap p ggVG!' - - " Highlight ANSI color codes if the AnsiEsc plugin is present. - if exists("g:loaded_AnsiEscPlugin") - silent! execute 'AnsiEsc' - endif endfunction " }}} function! s:ReplaceCurrentBuffer(contents) " {{{ normal! ggdG