From 3c9c2ba5d4cf1476e7cfa10f3bc92dd16493f6b8 Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Thu, 24 Nov 2022 11:47:41 +0800 Subject: [PATCH] fix typo --- CONTRIBUTING.md | 4 ++-- autoload/airline/builder.vim | 12 ++++++------ autoload/airline/extensions/bufferline.vim | 2 +- autoload/airline/extensions/example.vim | 4 ++-- autoload/airline/extensions/rufo.vim | 2 +- autoload/airline/extensions/tabline/builder.vim | 2 +- doc/airline.txt | 8 ++++---- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b591d485..b5df7e2f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ Contributions and pull requests are welcome. Please take note of the following # Testing -Contributers should install [thinca/vim-themis](https://github.com/thinca/vim-themis) to run tests before sending a PR if they applied some modification to the code. PRs which does not pass tests won't be accepted. +Contributors should install [thinca/vim-themis](https://github.com/thinca/vim-themis) to run tests before sending a PR if they applied some modification to the code. PRs which do not pass tests won't be accepted. ## 1. Installation @@ -17,7 +17,7 @@ $ cd /path/to/vim-airline $ git submodule add https://github.com/thinca/vim-themis ./.themis-bin ``` -## 2. running test +## 2. Running tests ``` $ ./path/to/themis-bin/bin/themis path/to/vim-airline/test --reporter spec diff --git a/autoload/airline/builder.vim b/autoload/airline/builder.vim index 426b3e2c..ad2d8386 100644 --- a/autoload/airline/builder.vim +++ b/autoload/airline/builder.vim @@ -90,7 +90,7 @@ function! s:prototype.build() dict " need to fix highlighting groups, since we " have skipped a section, we actually need " the previous previous group and so the - " seperator goes from the previous previous group + " separator goes from the previous previous group " to the current group let pgroup = group endif @@ -106,12 +106,12 @@ function! s:prototype.build() dict let line .= '%#'.group.'#' elseif split if !is_empty - let line .= s:get_transitioned_seperator(self, prev_group, group, side) + let line .= s:get_transitioned_separator(self, prev_group, group, side) endif let split = 0 else if !is_empty - let line .= s:get_seperator(self, prev_group, group, side) + let line .= s:get_separator(self, prev_group, group, side) endif endif let line .= is_empty ? '' : s:get_accented_line(self, group, contents) @@ -137,7 +137,7 @@ function! airline#builder#should_change_group(group1, group2) \ || color1[2] != color2[2] || color1[3] != color2[3] endfunction -function! s:get_transitioned_seperator(self, prev_group, group, side) +function! s:get_transitioned_separator(self, prev_group, group, side) let line = '' if get(a:self._context, 'tabline', 0) && get(g:, 'airline#extensions#tabline#alt_sep', 0) && a:group ==# 'airline_tabsel' && a:side call airline#highlighter#add_separator(a:prev_group, a:group, 0) @@ -152,9 +152,9 @@ function! s:get_transitioned_seperator(self, prev_group, group, side) return line endfunction -function! s:get_seperator(self, prev_group, group, side) +function! s:get_separator(self, prev_group, group, side) if airline#builder#should_change_group(a:prev_group, a:group) - return s:get_transitioned_seperator(a:self, a:prev_group, a:group, a:side) + return s:get_transitioned_separator(a:self, a:prev_group, a:group, a:side) else return a:side ? a:self._context.left_alt_sep : a:self._context.right_alt_sep endif diff --git a/autoload/airline/extensions/bufferline.vim b/autoload/airline/extensions/bufferline.vim index 0840c905..3d6e2ebf 100644 --- a/autoload/airline/extensions/bufferline.vim +++ b/autoload/airline/extensions/bufferline.vim @@ -20,7 +20,7 @@ function! airline#extensions#bufferline#init(ext) endif if exists("+autochdir") && &autochdir == 1 - " if 'acd' is set, vim-airline uses the path section, so we need ot redefine this here as well + " if 'acd' is set, vim-airline uses the path section, so we need to redefine this here as well call airline#parts#define_raw('path', '%{bufferline#refresh_status()}'.bufferline#get_status_string()) else call airline#parts#define_raw('file', '%{bufferline#refresh_status()}'.bufferline#get_status_string()) diff --git a/autoload/airline/extensions/example.vim b/autoload/airline/extensions/example.vim index 80da7f82..f78c3eac 100644 --- a/autoload/airline/extensions/example.vim +++ b/autoload/airline/extensions/example.vim @@ -23,7 +23,7 @@ function! airline#extensions#example#init(ext) call airline#parts#define_raw('cats', '%{airline#extensions#example#get_cats()}') " Next up we add a funcref so that we can run some code prior to the - " statusline getting modifed. + " statusline getting modified. call a:ext.add_statusline_func('airline#extensions#example#apply') " You can also add a funcref for inactive statuslines. @@ -40,7 +40,7 @@ function! airline#extensions#example#apply(...) " section_c. let w:airline_section_c = get(w:, 'airline_section_c', g:airline_section_c) - " Then we just append this extenion to it, optionally using separators. + " Then we just append this extension to it, optionally using separators. let w:airline_section_c .= s:spc.g:airline_left_alt_sep.s:spc.'%{airline#extensions#example#get_cats()}' endif endfunction diff --git a/autoload/airline/extensions/rufo.vim b/autoload/airline/extensions/rufo.vim index b8558f32..ffd8b12d 100644 --- a/autoload/airline/extensions/rufo.vim +++ b/autoload/airline/extensions/rufo.vim @@ -32,7 +32,7 @@ function! airline#extensions#rufo#apply(...) " section_z. let w:airline_section_z = get(w:, 'airline_section_z', g:airline_section_z) - " Then we just append this extenion to it, optionally using separators. + " Then we just append this extension to it, optionally using separators. let w:airline_section_z .= '%{airline#extensions#rufo#get_status()}' endif endfunction diff --git a/autoload/airline/extensions/tabline/builder.vim b/autoload/airline/extensions/tabline/builder.vim index f2567fcd..35ebe51a 100644 --- a/autoload/airline/extensions/tabline/builder.vim +++ b/autoload/airline/extensions/tabline/builder.vim @@ -71,7 +71,7 @@ endfunction " Compute the change in size of the tabline caused by separators " -" This should be kept up-to-date with |s:get_transitioned_seperator| and +" This should be kept up-to-date with |s:get_transitioned_separator| and " |s:get_separator| in autoload/airline/builder.vim function! s:get_separator_change_with_end(new_group, old_group, new_end_group, old_end_group, sep_size, alt_sep_size) let sep_change = 0 diff --git a/doc/airline.txt b/doc/airline.txt index 66f5e32c..a371cd3f 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -146,7 +146,7 @@ values): (if enough space is available) > let g:airline_detect_spelllang=1 < - Set to 'flag' to get a unicode icon of the relavant country flag instead of + Set to 'flag' to get a unicode icon of the relevant country flag instead of the 'spelllang' itself * enable iminsert detection > @@ -564,7 +564,7 @@ characters. let g:airline#extensions#branch#displayed_head_limit = 10 < * customize formatting of branch name > - " default value leaves the name unmodifed + " default value leaves the name unmodified let g:airline#extensions#branch#format = 0 " to only show the tail, e.g. a branch 'feature/foo' becomes 'foo', use @@ -1055,7 +1055,7 @@ title accordingly. rufo The rufo (Ruby Formatter) extension merely displays whether vim-rufo is -currently enabled, in the z sction of the statusline. +currently enabled, in the z section of the statusline. * enable/disable vim-rufo integration > let g:airline#extensions#rufo#enabled = 1 @@ -1217,7 +1217,7 @@ Note: Not displayed if the number of tabs is less than 1 nmap 99 AirlineSelectTab99 < The AirlineSelectTab mapping handles counts as well, - so one can handle arbirtrarily number of buffers/tabs. + so one can handle arbitrarily number of buffers/tabs. Mode 3 is exactly the same as mode 2, except the indexing start at 01, exposing 99 mappings: >