Created
October 26, 2017 18:49
-
-
Save tecywiz121/e427a0b002455263a90fad615e369b5f to your computer and use it in GitHub Desktop.
Sequence of commands demonstrating loss of nomodifiable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let my_buf=bufnr('banana', 1) | |
call nvim_buf_set_lines(my_buf, 0, 0, v:true, ['this is a line']) | |
call nvim_buf_set_option(my_buf, 'modifiable', v:false) | |
execute ":buffer " . my_buf | |
execute "normal! oTyped after modifiable=False\<esc>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment