Questions tagged [mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
89 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, ...
KhodeNima's user avatar
  • 131
0 votes
0 answers
36 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 ...
user avatar
1 vote
1 answer
53 views

Search for ^@ in register '+'

After yanking into register + from Visual Block mode, the lines break are marked with ^@. I would like to detect this character, but I can't.. For example, if register + contains ^@ as shown below ...
xyx's user avatar
  • 422
0 votes
1 answer
138 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?
minseong's user avatar
  • 2,291