Created
December 12, 2014 22:18
-
-
Save exodist/9a3fa8a7955e55106d53 to your computer and use it in GitHub Desktop.
fennec vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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