aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
AgeCommit message (Collapse)Author
2015-07-28plugin/auditory.vim: Add `:AuditoryOff` commandTeddy Wing
New command that turns the plugin off by removing its mappings.
2015-07-19auditory.vim: `AssignNormalModeMappings` -> `AssignMappings`Teddy Wing
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.
2015-07-18auditory.vim: Assign mappings with AssignNormalModeMappings()Teddy Wing
Assign our normal mode mappings with our new function that uses the mapping dictionary.
2014-11-27plugin/auditory.vim: Don't reload the plugin if loadedv0.0.5Teddy Wing
I see this in the sources of all the plugins I look at. Figure I should be a good Vim plugin citizen and do this too. This should also provide a convenient way to turn off the plugin when starting Vim.
2014-11-22plugin/auditory.vim: Decrease warning level of mplayer errorTeddy Wing
Instead of echoing and error, just echo a message about mplayer not being installed. Errors look pretty annoying on initial load, and I don't think this is worth the red background colour. It could be that a user has two machines, one with mplayer installed and one without. In that case, I don't want people to have to disable the plugin on one machine. That seems like too much to ask. I think this is a nice middle-ground between alerting users that something is needed by the plugin and not barfing if it's not there.
2014-11-22plugin/auditory.vim: Show warning if mplayer not installedTeddy Wing
On plugin load, if mplayer isn't installed then fail ungracefully. Since we depend on mplayer in order to play any sounds, my thinking now is that I want to fail immediately. Still trying to decide if this is be best course of action. Maybe I just want an informative message instead of a complete failure.
2014-11-09Move functions to autoloadTeddy Wing
Clean up functions, move everything into autoload/, move code around a little bit.
2014-11-09plugin/auditory.vim: Add Galaxy Far Far Away toggle commandTeddy Wing
Add a command-mode command to toggle insert mode sounds between normal and Galaxy Far Far Away versions.
2014-11-09plugin/auditory.vim: Mappings that didn't quite workTeddy Wing
Add commented mappings that I've been trying to get working but that for one reason or another haven't been able to figure out how to do so.
2014-11-09plugin/auditory.vim: Play sounds using absolute pathTeddy Wing
Without this, the audio files wouldn't be able to play unless you were cd'ed into the script's root directory. We want them to play no matter where your pwd is.
2014-11-09plugin/auditory.vim: Add (){} movement soundsTeddy Wing
Use the Jump sound for sentence & paragraph movement.
2014-11-09plugin/auditory.vim: Add another jump mapping for %Teddy Wing
2014-11-09plugin/auditory.vim: Add additional jump mappingsTeddy Wing
Add Jump sound mappings for: * gg * G * <C-i> * <C-o>
2014-11-09plugin/auditory.vim: Add #/* search mappingsTeddy Wing
In addition to the regular search commands, add the search by word ones.
2014-11-09plugin/auditory.vim: Add 'x' mappingTeddy Wing
Use the Delete sound.
2014-11-09plugin/auditory.vim: Add zt/z./zz/zb mappingsTeddy Wing
Use the Jump sound for these comands.
2014-11-09plugin/auditory.vim: Add search mappingsTeddy Wing
Map the search sounds to /nN.
2014-11-09plugin/auditory.vim: Add paste soundsTeddy Wing
2014-11-09plugin/auditory.vim: Add Cantina insert modeTeddy Wing
Version of insert mode binding that maps to the Cantina song. Bits of the song are in wav files. They get played in order on keypress in insert mode.
2014-11-09plugin/auditory.vim: Add 0^_$g_ mappingsTeddy Wing
Add mappings for beginning and end of line that play the left and right sounds.
2014-11-09plugin/auditory.vim: Add gj & gk mappingsTeddy Wing
Map to up and down sounds.
2014-11-09plugin/auditory.vim: Add webWEB mappingsTeddy Wing
Add mappings to the 'w', 'e', 'b' keys and their uppercase equivalents. These map to the Left and Right sounds.
2014-11-09plugin/auditory.vim: Add Normal mode hjkl mappingsTeddy Wing
Add mappings for single-character movement using a pass-through that plays the appropriate movement audio file.
2014-11-09plugin/auditory.vim: Ensure PlayScale() doesn't play the last noteTeddy Wing
The random note chosen should not be the same as the last note played in insert mode.
2014-11-08plugin/auditory.vim: Play a random note on keypress in Insert modeTeddy Wing
When in insert mode, play a random note from the Scale on every keypress.
2014-11-08plugin/auditory.vim(auditory#Play()): Takes a filename argumentTeddy Wing
Make the `Play()` function take an argument of the filename/path string.
2014-11-08plugin/auditory.vim: Remove test mappingsTeddy Wing
These mappings were just to test functionality. The functions they called are now being called in more appropriate places.
2014-11-08plugin/auditory.vim: Rename insert mode augroupTeddy Wing
Intended to use a '#' but replaced it without realising at some point.
2014-11-08plugin/auditory.vim: Remove stray :echomTeddy Wing
2014-11-08Get audio playing working with insert autocmdsTeddy Wing
* Move test .vim file into the plugin/ directory. Some of the functions added in this commit should be moved to autoload/ when this is more together * Add functions: * Get & kill pids for mplayer * Play audio * Insert autocmd handlers * Add InsertEnter & InsertLeave autocmds that start playing the test song when entering insert mode and stop playing when you leave insert mode.