diff --git a/README.markdown b/README.markdown index 7142a45..177eedf 100644 --- a/README.markdown +++ b/README.markdown @@ -87,18 +87,18 @@ But for files of type `text`, it will *always* use hard line endings. Because auto-detect doesn’t always work correctly, you can invoke commands to set the behavior for the current buffer: -* `PencilSoft` - configure for soft wrapping -* `PencilHard` - configure for hard line endings -* `PencilToggle` - if off, enables with detection; if on, turns off -* `PencilOff` - removing mappings and restore global settings +* `SoftPencil` - configure for soft wrapping +* `HardPencil` - configure for hard line endings +* `TogglePencil` - if off, enables with detection; if on, turns off +* `NoPencil` - removing mappings and restore global settings Optionally, you can map to keys in your `.vimrc`: ```vim -nmap ws :PencilSoft -nmap wh :PencilHard -nmap ww :PencilToggle -nmap w0 :PencilOff +nmap ps :SoftPencil +nmap ph :HardPencil +nmap pn :NoPencil +nmap pp :TogglePencil ``` Also, more commands in ‘Automatic Formatting’ below. @@ -146,16 +146,16 @@ augroup END You can also toggle it as needed with a command: -* `PencilFormatAuto` - enables autoformat -* `PencilFormatManual` - disables autoformat -* `PencilFormatToggle` +* `AutoPencil` - enables autoformat +* `ManualPencil` - disables autoformat +* `ToggleAutoPencil` - enables if disabled, etc. Or bind to keys in your `.vimrc`: ```vim -nmap wa :PencilFormatAuto -nmap wm :PencilFormatManual -nmap wf :PencilFormatToggle +nmap pa :AutoPencil +nmap pm :ManualPencil +nmap pt :ToggleAutoPencil ``` Again, when using soft line wrapping, Vim’s autoformat feature does not diff --git a/plugin/pencil.vim b/plugin/pencil.vim index 6f340f7..7c02877 100644 --- a/plugin/pencil.vim +++ b/plugin/pencil.vim @@ -36,14 +36,14 @@ if !exists('g:pencil#joinspaces') endif " # Commands -command -nargs=0 PencilHard call pencil#init({'wrap': 'hard'}) -command -nargs=0 PencilSoft call pencil#init({'wrap': 'soft'}) -command -nargs=0 PencilOff call pencil#init({'wrap': 'off' }) -command -nargs=0 PencilToggle call pencil#init({'wrap': 'toggle' }) +command -nargs=0 HardPencil call pencil#init({'wrap': 'hard'}) +command -nargs=0 SoftPencil call pencil#init({'wrap': 'soft'}) +command -nargs=0 NoPencil call pencil#init({'wrap': 'off' }) +command -nargs=0 TogglePencil call pencil#init({'wrap': 'toggle'}) -command -nargs=0 PencilFormatAuto call pencil#setAutoFormat(1) -command -nargs=0 PencilFormatManual call pencil#setAutoFormat(0) -command -nargs=0 PencilFormatToggle call pencil#setAutoFormat(-1) +command -nargs=0 AutoPencil call pencil#setAutoFormat(1) +command -nargs=0 ManualPencil call pencil#setAutoFormat(0) +command -nargs=0 ToggleAutoPencil call pencil#setAutoFormat(-1) let &cpo = s:save_cpo unlet s:save_cpo