runtime: Fix more typos (#13354)
* Fix more typos
* Fix typos in ignored runtime/ directory
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/indent/cdl.vim b/runtime/indent/cdl.vim
index 2c0fc79..da67569 100644
--- a/runtime/indent/cdl.vim
+++ b/runtime/indent/cdl.vim
@@ -21,7 +21,7 @@
" find out if an "...=..." expression is an assignment (or a conditional)
" it scans 'line' first, and then the previous lines
-fun! CdlAsignment(lnum, line)
+fun! CdlAssignment(lnum, line)
let f = -1
let lnum = a:lnum
let line = a:line
@@ -90,7 +90,7 @@
end
end
- " remove members [a] of [b]:[c]... (inicio remainds valid)
+ " remove members [a] of [b]:[c]... (inicio remains valid)
let line = substitute(line, '\c\(\[[^]]*]\(\s*of\s*\|:\)*\)\+', ' ', 'g')
while 1
" search for the next interesting element
@@ -111,7 +111,7 @@
else " c == '='
" if it is an assignment increase indent
if f == -1 " we don't know yet, find out
- let f = CdlAsignment(lnum, strpart(line, 0, inicio))
+ let f = CdlAssignment(lnum, strpart(line, 0, inicio))
end
if f == 1 " formula increase it
let ind = ind + shiftwidth()
@@ -125,7 +125,7 @@
let ind = ind - shiftwidth()
elseif match(thisline, '^\s*=') >= 0
if f == -1 " we don't know yet if is an assignment, find out
- let f = CdlAsignment(lnum, "")
+ let f = CdlAssignment(lnum, "")
end
if f == 1 " formula increase it
let ind = ind + shiftwidth()
diff --git a/runtime/indent/erlang.vim b/runtime/indent/erlang.vim
index 7aa3858..5682c31 100644
--- a/runtime/indent/erlang.vim
+++ b/runtime/indent/erlang.vim
@@ -1324,7 +1324,7 @@
" maybe A else
" LTI
"
- " Note about Emacs compabitility {{{
+ " Note about Emacs compatibility {{{
"
" It would be fine to indent the examples above the following way:
"
diff --git a/runtime/indent/julia.vim b/runtime/indent/julia.vim
index 36f39f6..efc98a2 100644
--- a/runtime/indent/julia.vim
+++ b/runtime/indent/julia.vim
@@ -310,7 +310,7 @@
endfunction
function JumpToMatch(lnum, last_closed_bracket)
- " we use the % command to skip back (tries to ues matchit if possible,
+ " we use the % command to skip back (tries to use matchit if possible,
" otherwise resorts to vim's default, which is buggy but better than
" nothing)
call cursor(a:lnum, a:last_closed_bracket)
diff --git a/runtime/indent/krl.vim b/runtime/indent/krl.vim
index cc3cbd1..89f4535 100644
--- a/runtime/indent/krl.vim
+++ b/runtime/indent/krl.vim
@@ -41,7 +41,7 @@
let currentLine = getline(v:lnum)
if currentLine =~? '\v^;(\s*(end)?fold>)@!' && !get(g:, 'krlCommentIndent', 0)
" If current line has a ; in column 1 and is no fold, keep zero indent.
- " This may be usefull if code is commented out at the first column.
+ " This may be useful if code is commented out at the first column.
return 0
endif
@@ -117,7 +117,7 @@
let nPreNoneBlank = prevnonblank(a:lnum)
while nPreNoneBlank > 0 && getline(nPreNoneBlank) =~? '\v^\s*(\&\w\+|;|continue>)'
- " Previouse none blank line irrelevant. Look further aback.
+ " Previous none blank line irrelevant. Look further aback.
let nPreNoneBlank = prevnonblank(nPreNoneBlank - 1)
endwhile
diff --git a/runtime/indent/rapid.vim b/runtime/indent/rapid.vim
index 2c99bb2..b1fa00b 100644
--- a/runtime/indent/rapid.vim
+++ b/runtime/indent/rapid.vim
@@ -74,7 +74,7 @@
if l:currentLine =~ '^!' && !get(g:,'rapidCommentIndent',0)
" If current line is ! line comment, do not change indent
- " This may be usefull if code is commented out at the first column.
+ " This may be useful if code is commented out at the first column.
return 0
endif
diff --git a/runtime/indent/systemverilog.vim b/runtime/indent/systemverilog.vim
index a5f4d5b..42a05a0 100644
--- a/runtime/indent/systemverilog.vim
+++ b/runtime/indent/systemverilog.vim
@@ -78,10 +78,10 @@
" Multiple-line comment count
if curr_line =~ '^\s*/\*' && curr_line !~ '/\*.\{-}\*/'
let s:multiple_comment += 1
- if vverb | echom vverb_str "Start of multiple-line commnt" | endif
+ if vverb | echom vverb_str "Start of multiple-line comment" | endif
elseif curr_line =~ '\*/\s*$' && curr_line !~ '/\*.\{-}\*/'
let s:multiple_comment -= 1
- if vverb | echom vverb_str "End of multiple-line commnt" | endif
+ if vverb | echom vverb_str "End of multiple-line comment" | endif
return ind
endif
" Maintain indentation during commenting.