From ba653d03f2aa91c464e042f8b0c58bd7109197b4 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 9 Mar 2017 18:12:05 +0100 Subject: ftplugin/ruby.vim: Add maps to insert debug breakpoints Make it easier to insert `byebug` debug statements. Currently working in Rails so assuming `byebug` is already required. Might want to add new maps or modify these later if I end up needing to do a `require 'byebug'` beforehand. These keys didn't seem to be used for anything, so I figured they would be a nice quick combination for this. Didn't really feel like adding a long leader command to do it. --- ftplugin/ruby.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ftplugin/ruby.vim') diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index 6521815..acc6d35 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -11,3 +11,8 @@ setlocal shiftwidth=2 inoremap nnoremap o o nnoremap O O + + +" Debugging +nnoremap Zd obyebug +nnoremap ZD Obyebug -- cgit v1.2.3