diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-07 02:44:57 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-07 03:15:22 +0800 |
| commit | 8dffa8bd23606cb72831bdd22f00b41e3bce8d30 (patch) | |
| tree | c48f4494804664ab04219a60ef67ff346d541422 /autoload | |
| parent | d434627738c59473530d807cb645df6deb4c8e80 (diff) | |
chore: formatting and fix spell errors
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/text_obj.vim | 6 | ||||
| -rw-r--r-- | autoload/utils.vim | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/autoload/text_obj.vim b/autoload/text_obj.vim index 4f6a1ff..caba645 100644 --- a/autoload/text_obj.vim +++ b/autoload/text_obj.vim @@ -11,7 +11,7 @@ function! text_obj#URL() abort endif endif - " We need to find all possible URL on this line and their start, end idx. + " We need to find all possible URL on this line and their start, end index. " Then find where current cursor is, and decide if cursor is on one of the " URLs. let line_text = getline('.') @@ -54,10 +54,10 @@ function! text_obj#URL() abort endfunction function! text_obj#MdCodeBlock(type) abort - " the parameter type specify whether it is inner text objects or arround + " the parameter type specify whether it is inner text objects or around " text objects. - " Move the cursor to the end of line in case that cursor is on the openning + " Move the cursor to the end of line in case that cursor is on the opening " of a code block. Actually, there are still issues if the cursor is on the " closing of a code block. In this case, the start row of code blocks would " be wrong. Unless we can match code blocks, it not easy to fix this. diff --git a/autoload/utils.vim b/autoload/utils.vim index 8ed401e..b88e25f 100644 --- a/autoload/utils.vim +++ b/autoload/utils.vim @@ -41,7 +41,7 @@ function! utils#HasAirlinetheme(name) abort return !empty(globpath(&runtimepath, l:pat)) endfunction -" Generate random integers in the range [Low, High] in pure vimscrpt, +" Generate random integers in the range [Low, High] in pure vim script, " adapted from https://stackoverflow.com/a/12739441/6064933 function! utils#RandInt(Low, High) abort " Use lua to generate random int. It is faster. Ref: https://stackoverflow.com/a/20157671/6064933 @@ -152,7 +152,7 @@ function! utils#Inside_git_repo() abort if match(res, 'true') == -1 return v:false else - " Manually trigger a speical user autocmd InGitRepo (to use it for + " Manually trigger a specical user autocmd InGitRepo (to use it for " lazyloading of fugitive by packer.nvim). " See also https://github.com/wbthomason/packer.nvim/discussions/534. doautocmd User InGitRepo |
