Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only cmd+r in MacVim, not gvim.

Thanks to @aripollak.
  • Loading branch information...
commit 852930440796186329e44fb277ca3b3971ae88db 1 parent e9828ff
@henrik authored
Showing with 4 additions and 2 deletions.
  1. +1 −1  README.markdown
  2. +3 −1 plugin/yaml_flattener.vim
View
2  README.markdown
@@ -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).
View
4 plugin/yaml_flattener.vim
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.