Module: Lab42::Tmux::Window::Command::VimCommand
- Included in:
- Lab42::Tmux::Window::Command
- Defined in:
- lib/lab42/tmux/window/command/vim_command.rb
Instance Method Summary collapse
Instance Method Details
#vim_command(cmd) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/lab42/tmux/window/command/vim_command.rb', line 12 def vim_command cmd case cmd when Hash vim_set_commands cmd else tmux_send_keys ":#{cmd}" end end |
#vim_commands(*cmds) ⇒ Object
6 7 8 9 10 |
# File 'lib/lab42/tmux/window/command/vim_command.rb', line 6 def vim_commands *cmds cmds.each do | cmd | vim_command cmd end end |
#vim_set_commands(set_cmds) ⇒ Object
21 22 23 24 25 |
# File 'lib/lab42/tmux/window/command/vim_command.rb', line 21 def vim_set_commands set_cmds set_cmds.each do |key, val| tmux_send_keys ":set #{key}=#{val}" end end |