module VimPlugin
Public Instance Methods
vim_command(command, params)
click to toggle source
# File lib/lab42/tmux/vim_plugin.rb, line 6 def vim_command command, params send_keys ":#{command} #{params}" end
vim_new_window(name, **options)
click to toggle source
# File lib/lab42/tmux/vim_plugin.rb, line 10 def vim_new_window name, **options new_window name do send_keys "vi #{__vim_dir options}" __vim_source options __vim_colorscheme options end end
Private Instance Methods
__vim_colorscheme(options)
click to toggle source
# File lib/lab42/tmux/vim_plugin.rb, line 20 def __vim_colorscheme options options.with_present :colorscheme do | cs | vim_command :colorscheme, cs end end
__vim_dir(options)
click to toggle source
# File lib/lab42/tmux/vim_plugin.rb, line 26 def __vim_dir options options.fetch :dir, '.' end
__vim_source(options)
click to toggle source
# File lib/lab42/tmux/vim_plugin.rb, line 30 def __vim_source options options.with_present :source do | source | vim_command :source, source end end