diff options
| author | Teddy Wing | 2015-07-19 11:42:47 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-07-19 11:47:10 -0400 |
| commit | 98b259d4065ef5b986d5d3cda953518061a6117f (patch) | |
| tree | 0eb48be025a9e9cb6531bc286fb65abdf74d6bc0 | |
| parent | 073fad07c8f9a7b2d59aa9a71061425c095d270e (diff) | |
| download | auditory.vim-98b259d4065ef5b986d5d3cda953518061a6117f.tar.bz2 | |
auditory.vim: `AssignNormalModeMappings` -> `AssignMappings`
Rename the function because we're not only assigning normal mode
mappings here, we're also assigning visual mode mappings. And we might
be assigning mappings for other modes here too in the future, so this
name doesn't make sense.
I had originally called it this to distinguish it from the insert mode
set defined in plugin/auditory.vim with the `CursorMovedI` autocommand,
but I think this should be more clear about what it's doing.
Edit: Also modify the comment above this section for similar reasons.
| -rw-r--r-- | autoload/auditory.vim | 6 | ||||
| -rw-r--r-- | plugin/auditory.vim | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/autoload/auditory.vim b/autoload/auditory.vim index 31718dc..915c561 100644 --- a/autoload/auditory.vim +++ b/autoload/auditory.vim @@ -202,8 +202,8 @@ function! s:DeleteLine(type) endfunction -" Normal mode -" =========== +" Standard Mappings +" ================= let s:mappings = {} let s:mappings['h'] = { @@ -440,7 +440,7 @@ let s:mappings['<c-r>'] = { \ 'map_to': "<c-r>", \ } -function! auditory#AssignNormalModeMappings() +function! auditory#AssignMappings() for [key, value] in items(s:mappings) " If this an `execute` mapping, add a pipe. " Otherwise <cr> to exit command mode. diff --git a/plugin/auditory.vim b/plugin/auditory.vim index ba46fa2..87bfd71 100644 --- a/plugin/auditory.vim +++ b/plugin/auditory.vim @@ -20,4 +20,4 @@ augroup END command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway() -call auditory#AssignNormalModeMappings() +call auditory#AssignMappings() |
