CheckBackspace
#4058
-
in readme: function! CheckBackspace() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction in function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction which one is correct ? AND Try to transform it to lua script: function CheckBackspace()
local col = vim.fn.col('.') - 1;
return false == col or vim.fn.getline('.')[col - 1] "=~# 's'";
end is it right?, don't understand the line |
Beta Was this translation helpful? Give feedback.
Answered by
chemzqm
Aug 20, 2022
Replies: 2 comments 2 replies
-
@chemzqm |
Beta Was this translation helpful? Give feedback.
2 replies
-
Please read doc |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chemzqm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please read doc
:h vim.keymap.set()