codegourmet

savory code and other culinary highlights

Vim: Insert Debugger Statement

| Comments

This Vim plugin inserts a debugger statement at the current line. If code is visually selected, it’s wrapped in exception handling.

inserting a debugger statement

About

This post is a copy of the README.md at the plugin’s github repository:

https://github.com/codegourmet/insert-debugger

Installation

I recommend Vundle

Plugin 'codegourmet/insert-debugger'

Usage

Setup the method via your preferred keybinding inside .vimrc:

nmap <Leader>i :InsertDebugger<CR>
vmap <Leader>i :InsertDebuggerBlock<CR>

Settings

g:insert_debugger_language

At the moment, only ruby is supported.

let g:insert_debugger_language = 'ruby'

Default: ‘ruby’

Contributing

If you think anything’s missing or buggy please drop me a line or a pull request.

TODO

vim docs

License

MIT

Happy Coding! – codegourmet

Comments