#elixirlang and #neovim users, You're probably already using the vim-surround plugin. The following config line will allow you to press % in visual mode to wrap the selection in %{}: let g:surround_37 = "%{\r}" It's useful for converting keyword lists to maps, for example.
2 reposts18 likes