Skip to content

Instantly share code, notes, and snippets.

@exodist
Created December 12, 2014 22:18
Show Gist options
  • Save exodist/9a3fa8a7955e55106d53 to your computer and use it in GitHub Desktop.
Save exodist/9a3fa8a7955e55106d53 to your computer and use it in GitHub Desktop.
fennec vim
:map <F9> :w<cr>:! PERL5LIB="" /usr/bin/prove -v -Ilib -I/home/cgranum/ndn/perl %<CR>
:imap <F9> <ESC>:w<cr>:! PERL5LIB="" /usr/bin/prove -v -Ilib -I/home/cgranum/ndn/perl %<CR>
:map <F10> :w<cr>:! PERL5LIB="" /opt/plack/perl/bin/prove -v -Ilib -I/home/cgranum/ndn/perl %<CR>
:imap <F10> <ESC>:w<cr>:! PERL5LIB="" /opt/plack/perl/bin/prove -v -Ilib -I/home/cgranum/ndn/perl %<CR>
function! RunFennecLine()
let cur_line = line(".")
exe "!FENNEC_TEST='" . cur_line . "' prove -v -Ilib -I. -I/home/cgranum/ndn/perl %"
endfunction
function! RunFennecLineLess()
let cur_line = line(".")
exe "!FENNEC_TEST='" . cur_line . "' prove -v -Ilib -I. -I/home/cgranum/ndn/perl % 2>&1 | less"
endfunction
:map <F8> :w<cr>:call RunFennecLine()<cr>
:imap <F8> <ESC>:w<cr>:call RunFennecLine()<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment