aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/copy_linebreak.vim
Commit message (Collapse)AuthorAgeFilesLines
* Add commands to copy_linebreak.vimTom Ryder2017-11-071-1/+14
| | | | | | Just to be thorough; if +user_commands are available, offer :CopyLinebreakEnable, :CopyLinebreakDisable, and :CopyLinebreakToggle commands.
* Give copy_linebreak.vim enable/disable funcs, mapsTom Ryder2017-11-071-22/+34
| | | | | Add s:CopylinebreakDisable() and s:CopylinebreakEnable functions, and mapping targets for each of them, just to be thorough.
* Use consistent comment layout for Vim pluginsTom Ryder2017-11-061-3/+3
|
* Add short-circuit boilerplate to pluginsTom Ryder2017-11-041-23/+27
| | | | | | | | | | | | | | | | | | | | Set a g:loaded_* flag to prevent repeated reloads, and refuse to load at all if &compatible is set or if required features are missing. Some more accommodating plugins avoid the problems 'compatible' causes by saving its value at startup into a script variable, setting the option to the Vim default, and then restoring it when the plugin is done, to prevent any of its flags from interfering in the plugin code: let s:save_cpo = &cpo set cpo&vim ... let &cpo = s:save_cpo unlet s:save_cpo I don't want this boilerplate, so I'm going to do what Tim Pope's modules seem to, and just have the plugin refuse to do a single thing if 'compatible' is set.
* Adjust plugin code layout a lotTom Ryder2017-11-041-1/+2
| | | | | | | | | | | | | Including renaming big_file.vim and accompanying functions yet again, to big_file_options.vim. Trying to keep complex autocmd and mapping definitions on long lines broken up semantically; definition and options on one line, patterns or mapping key on the next, and the command to run on the last. Also trying to make sure that <silent>, <buffer>, and <unique> are applied in the correct places, and that all mapping commands are using the :<C-U> idiom for the command prefix.
* Use same comment boilerplate for custom pluginsTom Ryder2017-11-041-0/+2
| | | | A brief explanation, an author name, and the license should do fine.
* Don't suggest mappings in Vim plugin commentsTom Ryder2017-11-041-2/+0
| | | | Pretty useless, really.
* Spin copyable linebreak config into new pluginTom Ryder2017-11-041-0/+36
Calling this one copy_linebreak.vim. Renamed both the internal function and the plugin key.