aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-13 00:01:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-13 00:01:23 +1200
commitf2274102f837df619f74c870b225e521854a779c (patch)
tree0f2a545b176c904a465aa4b94ea87ace8e3d7f14
parentMerge branch 'hotfix/v1.0.2' into develop (diff)
downloadvim-toggle-flags-f2274102f837df619f74c870b225e521854a779c.tar.gz
vim-toggle-flags-f2274102f837df619f74c870b225e521854a779c.zip
Switch to two-spacing
-rw-r--r--README.md4
-rw-r--r--doc/toggle_flags.txt8
-rw-r--r--plugin/toggle_flags.vim6
3 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index 44aef01..7d51ac2 100644
--- a/README.md
+++ b/README.md
@@ -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 . ','