simplenote-vim / simplenote.vim

vim plugin to interact with the simplenote service
http://www.vim.org/scripts/script.php?script_id=3582
MIT License
368 stars 31 forks source link

E21: Cannot make changes, 'modifiable' is off #93

Open clauseggers opened 7 years ago

clauseggers commented 7 years ago

I’m running the latest version on TrueOS (BSD), and I keep getting this curious error when I start Simplenote:

Error detected while processing /usr/home/claus/.vim/bundle/simplenote.vim/autoload/simplenote.vim: line 22: E21: Cannot make changes, 'modifiable' is off "Simplenote" [New File] Press ENTER or type command to continue

Any ideas on what is going wrong?

atomicules commented 7 years ago

No, but I have found another issue with the saveas functionality as a result of investigating this. Gah!

What steps are you doing? E.g:

  1. Open vim
  2. :SimplenoteNew
  3. Type some text
  4. :w

(The issue I've just found).

clauseggers commented 7 years ago

What I do is:

  1. Open Vim
  2. :SimplenoteList … and that gives me the error as described above. Doing a :SimplenoteNew instead also gives me the same error, but with the added line cannot save undo information

These are my .vimrc options:

source $HOME/.simplenotevimrc
let g:SimplenoteSortOrder = "pinned, modifydate"
let g:SimplenoteFiletype = "txt"
" let g:SimplenoteListHeight = 10
let g:SimplenoteSingleWindow = 1
map <F4> :SimplenoteList<CR>
nnoremap <Leader>nn :SimplenoteNew<CR>
atomicules commented 7 years ago

That is strange. I use SimplenoteList a lot and haven't seen any issues. I'll see if I can reproduce with your .vimrc options though.

clauseggers commented 7 years ago

It could very well be a TrueOS issue. It’s a new(ish) distro with cutting edge components.

derteta commented 7 years ago

FWIW, I see this error in my command-line vim (8.0, build from the git repo) but not in MacVim (7.4).

atomicules commented 7 years ago

Tried on MacVim 8.0 and don't see this problem. I'll have to go build a 8 version on NetBSD and check there.

atomicules commented 7 years ago

Drat! Just built 8.0.194 on NetBSD and can't reproduce there either. This is a strange one.

mplorentz commented 6 years ago

Same is occuring for me on Arch Linux, vim 8.0.

verajosemanuel commented 2 years ago

same error here . Using Arch