From 8a07a310f6790908216cd6862653a7d6512ab90b Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sat, 2 Nov 2019 12:37:23 -0400 Subject: [PATCH] vim: remove :PDB perl "repl" command The motivation for this command was: 1) NeoVim can syntax highlight the Perl 2) Automate loading the Data::Dumper module However, I found that (1) is spotty based on where the start is (things can get messed up real fast), and (2) is not necessary usually (the 'x' key suffices). I never ended up really using this command, so let's remove it! --- vim/autoload/vimrc.vim | 10 ---------- vim/vimrc | 1 - 2 files changed, 11 deletions(-) diff --git a/vim/autoload/vimrc.vim b/vim/autoload/vimrc.vim index 596a913..4dfcab9 100644 --- a/vim/autoload/vimrc.vim +++ b/vim/autoload/vimrc.vim @@ -65,13 +65,3 @@ function! vimrc#SetPasteAndPasteFromClipboard() abort normal! "+p set nopaste endfunction - -function! vimrc#PerlDebugger() abort - " Simple wrapper around term + syntax perl - if has('nvim') - terminal perl -de 'use Data::Dumper' - else - terminal ++curwin perl -de 'use Data::Dumper' - end - setlocal syntax=perl -endfunction diff --git a/vim/vimrc b/vim/vimrc index af8efef..bcf05fc 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -194,7 +194,6 @@ nnoremap V :edit $HOME/.vim/vimrc " COMMANDS {{{ command! -nargs=1 GitGrep call vimrc#GitGrep('') | copen command! CD exe 'cd ' . expand('%:h') -command! PDB call vimrc#PerlDebugger() " }}} " Load optional config (in ~/.vim) -- libgit2 0.28.4