Lines 1180-1190
Link Here
|
1180 |
|
1180 |
|
1181 |
let l:linepos = line(".") |
1181 |
let l:linepos = line(".") |
1182 |
let l:colpos = col(".") |
1182 |
let l:colpos = col(".") |
1183 |
"echomsg 'exe :.s/\%'.l:colpos.'c./'. a:char . '/' |
|
|
1184 |
if a:char != "" |
1183 |
if a:char != "" |
|
|
1184 |
"echomsg 'exe :.s/\%'.l:colpos.'c./'. a:char . '/' |
1185 |
exe ':.s/.\%' . l:colpos.'c/'. a:char . '/' |
1185 |
exe ':.s/.\%' . l:colpos.'c/'. a:char . '/' |
1186 |
end |
1186 |
end |
1187 |
"echomsg "call cursor(". l:linepos.", ".l:colpos.")" |
1187 |
if a:char != "" && strpart(&encoding, 0, 1) == "u" |
|
|
1188 |
" l:colpos - 1 prevents incorrect cursor positioning when <Space> is |
1189 |
" pressed within a line. This applies only to Unicode encodings. |
1190 |
let l:colpos = l:colpos - 1 |
1191 |
end |
1192 |
"echomsg "call cursor(". l:linepos.", ".(l:colpos).")" |
1188 |
call cursor(l:linepos, l:colpos) |
1193 |
call cursor(l:linepos, l:colpos) |
1189 |
|
1194 |
|
1190 |
" return if there is not a word character before the cursor |
1195 |
" return if there is not a word character before the cursor |