Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Plugify: vim-pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrchboy committed Sep 12, 2016
1 parent c9055b9 commit ff3a4e2
Showing 1 changed file with 30 additions and 31 deletions.
61 changes: 30 additions & 31 deletions vimrc
Expand Up @@ -234,6 +234,36 @@ Plug 'mattn/webapi-vim'
" }}}2

" Appish Or External Interface: bundles {{{1
" VimPipe: {{{2

" Settings: {{{3

" default mappings conflict with PerlHelp
let g:vimpipe_invoke_map = ',r'
let g:vimpipe_close_map = ',p'

" AutoCommands: set pipe commands for specific filetypes {{{3

augroup vimrc-vimpipe
au!

" tapVerboseOutput appears to be significantly better than perl.tap
autocmd FileType perl let b:vimpipe_filetype = "tapVerboseOutput"
autocmd FileType perl let b:vimpipe_command = "source ~/perl5/perlbrew/etc/bashrc ; perl -I lib/ -"

autocmd FileType puppet let b:vimpipe_command="T=`mktemp`; cat - > $T && puppet-lint $T; rm $T"

augroup end

" AutoLoad: {{{3

" load, then run. this mapping will be overwritten on plugin load
execute "nnoremap <silent> " . g:vimpipe_invoke_map . " :call plug#load('vim-pipe') <bar> %call VimPipe()<CR>"

" }}}3

Plug 'krisajenkins/vim-pipe', { 'on': [] }

" Notes: an alternative to vimwiki?? {{{2

" FIXME need to figure out the significance of other files in the notes dirs
Expand Down Expand Up @@ -952,37 +982,6 @@ if neobundle#tap('vim-gnupg')
call neobundle#untap()
endif

" VimPipe: {{{2

" Settings: {{{3

" default mappings conflict with PerlHelp
let g:vimpipe_invoke_map = ',r'
let g:vimpipe_close_map = ',p'

" AutoCommands: {{{3

augroup vimrc-vimpipe
au!

" tapVerboseOutput appears to be significantly better than perl.tap
autocmd FileType perl let b:vimpipe_filetype = "tapVerboseOutput"
autocmd FileType perl let b:vimpipe_command = "source ~/perl5/perlbrew/etc/bashrc ; perl -I lib/ -"

autocmd FileType puppet let b:vimpipe_command="T=`mktemp`; cat - > $T && puppet-lint $T; rm $T"

augroup end

" }}}3

NeoBundleLazy 'krisajenkins/vim-pipe', {
\ 'autoload': {
\ 'commands': ['VimPipe'],
\ 'mappings': [[ 'n', g:vimpipe_invoke_map ]],
\ },
\ 'verbose': 1,
\}

" BufExplorer: {{{2

let g:bufExplorerShowRelativePath = 1
Expand Down

0 comments on commit ff3a4e2

Please sign in to comment.