Better key mappings for Narrow/Widen commands

This commit is contained in:
Reed Esau
2014-09-16 05:25:53 -06:00
parent c6fbf87f72
commit ac49034cbf

View File

@@ -238,8 +238,10 @@ of your choice. For example, to map this feature to the `Command-9` and
`Command-0` keys in MacVim, add to your `.gvimrc`: `Command-0` keys in MacVim, add to your `.gvimrc`:
```vim ```vim
map <silent> <D-9> <Plug>ThematicNarrow noremap <silent> <D-9> :<C-u>ThematicNarrow<cr>
map <silent> <D-0> <Plug>ThematicWiden noremap <silent> <D-0> :<C-u>ThematicWiden<cr>
inoremap <silent> <D-9> <C-o>:ThematicNarrow<cr>
inoremap <silent> <D-0> <C-o>:ThematicWiden<cr>
``` ```
This is especially useful in fullscreen mode to adjust the side margins. This is especially useful in fullscreen mode to adjust the side margins.