diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-13 00:01:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-13 00:01:23 +1200 |
commit | f2274102f837df619f74c870b225e521854a779c (patch) | |
tree | 0f2a545b176c904a465aa4b94ea87ace8e3d7f14 | |
parent | Merge branch 'hotfix/v1.0.2' into develop (diff) | |
download | vim-toggle-flags-f2274102f837df619f74c870b225e521854a779c.tar.gz vim-toggle-flags-f2274102f837df619f74c870b225e521854a779c.zip |
Switch to two-spacing
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | doc/toggle_flags.txt | 8 | ||||
-rw-r--r-- | plugin/toggle_flags.vim | 6 |
3 files changed, 9 insertions, 9 deletions
@@ -3,13 +3,13 @@ toggle\_flags.vim This plugin provides `:ToggleFlag` and `:ToggleFlagLocal` commands to toggle the values of options like `'formatoptions'` or `'complete'` that have values -comprised of single-character or comma-separated flags. The author originally +comprised of single-character or comma-separated flags. The author originally designed it for toggling flags in `'formatoptions'` quickly. License ------- -Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself. +Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself. See `:help license`. [1]: https://sanctum.geek.nz/ diff --git a/doc/toggle_flags.txt b/doc/toggle_flags.txt index 81bf04d..74d91f6 100644 --- a/doc/toggle_flags.txt +++ b/doc/toggle_flags.txt @@ -5,8 +5,8 @@ DESCRIPTION *toggle_flags* *:ToggleFlag* *:ToggleFlagLocal* This plugin provides `:ToggleFlag` and `:ToggleFlagLocal` commands to toggle the values of options like |'formatoptions'| or |'complete'| that -have values comprised of single-character or comma-separated flags. The author -originally designed it for toggling flags in |'formatoptions'| quickly. +have values comprised of single-character or comma-separated flags. The +author originally designed it for toggling flags in |'formatoptions'| quickly. EXAMPLES *toggle_flags-examples* > @@ -16,8 +16,8 @@ EXAMPLES *toggle_flags-examples* < REQUIREMENTS *toggle_flags-requirements* -This plugin is only available if 'compatible' is not set. It also requires the -|+user_commands| Vim feature. +This plugin is only available if 'compatible' is not set. It also requires +the |+user_commands| Vim feature. AUTHOR *toggle_flags-author* diff --git a/plugin/toggle_flags.vim b/plugin/toggle_flags.vim index a70e204..abf21c5 100644 --- a/plugin/toggle_flags.vim +++ b/plugin/toggle_flags.vim @@ -29,9 +29,9 @@ function! s:Has(option, flag) execute 'let l:current = &' . a:option " If the flag we're toggling is longer than one character, this must by - " necessity be a delimited option. I think all of those in VimL are - " comma-separated. Extend the flag and value so that they'll still match at - " the start and end. Otherwise, use them as-is. + " necessity be a delimited option. I think all of those in VimL are + " comma-separated. Extend the flag and value so that they'll still match at + " the start and end. Otherwise, use them as-is. if strlen(a:flag) > 1 let l:search_flag = ',' . a:flag . ',' let l:search_value = ',' . l:current . ',' |