Method: Nxxd::Nvim.dump_data
- Defined in:
- lib/nxxd/nvim.rb
.dump_data(f, a = nil, m = nil) ⇒ Object
79 80 81 82 83 84 85 86 |
# File 'lib/nxxd/nvim.rb', line 79 def dump_data f, a = nil, m = nil (split_new m).tap { |sc| $vim.command sc } $vim.set_option filetype: "xxd", buftype: "nofile" $vim.get_current_buf.set_name "[hex: #{a}]" (Dump.new input: a).run f do |l| $vim.put [ l], "l", false, true end end |