rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

command-W #219

Closed andreiamatuni closed 8 years ago

andreiamatuni commented 8 years ago

Is it possible to make command-W close the current pane rather than the whole neovim app? This would be really helpful when working with lots of tabs and split panes

rogual commented 8 years ago

Yes, first remove ⌘W from the menu item: :call MacMenu("Window.Close Tab", "")

Then you can map <D-w> to whatever you like.

(If you haven't updated Neovim.app in a while it'll be <T-w> instead.)

andreiamatuni commented 8 years ago

cool, thanks

JackCA commented 8 years ago

@andreiamatuni were you able to persist this somehow? What did you end up doing?

andreiamatuni commented 8 years ago

@JackCA ended up just sticking to macvim for the time being. Waiting for nvim to get more stable and have more reasons to use over regular vim.

JackCA commented 8 years ago

@andreiamatuni ah, okay. Thanks for the quick followup. I avtually just got this working by putting the following in my nvim/init.vim (in case anyone else is also interested since this is the default macvim behavior):

if exists("neovim_dot_app")
  call MacMenu("Window.Close Tab", "")
  map <D-w> :q <cr>
endif