Questions tagged [mode]
The mode tag has no usage guidance.
4
questions
0
votes
2
answers
48
views
Trying to display current mode leads to vimscript where variable is undefined inside function
I have following in my .vimrc
set laststatus=2
set showcmd
set wildmenu
function! UpdateStatusline()
let currentMode = mode()
if currentMode ==# 'n'
let currentMode = "Normal&...
0
votes
2
answers
1k
views
How to force the Read-only mode?
Greetings
Today I was learning the different methods for opening a file in Vim, and I recently learned the view [filename] or [vim_launcher] -R [file_name], while both of these commands are great, ...
0
votes
0
answers
41
views
Why does vim insert an underlined e that can only be escaped with <esc>?
It seems like I have found a really strange mode by accident in vim, if you hit <C-;> in vim, it replaces whatever character at the cursor with an underlined e, and if I type it, it replaces ...
0
votes
1
answer
313
views
How to set the mode from a vimscript?
If I save the result of :call mode() in a variable, how can I restore that mode later?