Permalink
Browse files

Only cmd+r in MacVim, not gvim.

Thanks to @aripollak.
  • Loading branch information...
1 parent e9828ff commit 852930440796186329e44fb277ca3b3971ae88db @henrik committed Dec 13, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 README.markdown
  2. +3 −1 plugin/yaml_flattener.vim
View
@@ -17,7 +17,7 @@ and back again.
This is handy with Ruby on Rails .yml translation files.
Convert them to flat format to search and edit more easily, then back to nested format for compatibility with Rails i18n and other tools.
-Just open a YAML file and hit `r` or `<leader>r`. Again to go back.
+Just open a YAML file and hit `<leader>r` (MacVim also supports `⌘r`). Again to go back.
Based on my [YAMLator lib](https://gist.github.com/293581).
@@ -11,7 +11,9 @@ if !has("ruby")
endif
let g:YAMLFlattener_key = '<Leader>r'
-if has("gui_running")
+
+" MacVim and not CLI.
+if has("gui_macvim") && has("gui_running")
let g:YAMLFlattener_key = '<D-r>'
end

0 comments on commit 8529304

Please sign in to comment.