command-t icon indicating copy to clipboard operation
command-t copied to clipboard

e21: cannot make changes, 'modifiable' is off

Open ucarbehlul opened this issue 7 years ago • 10 comments

When the prompt is opened and a text is tried to pasted by Command + V, e21: cannot make changes, 'modifiable' is off error happens and text doesn't get pasted.

OS: MacOs Terminal: Terminal Version 2.7 (377)

ucarbehlul avatar Apr 24 '18 04:04 ucarbehlul

I suspect this might happen if you don't have bracketed paste mode enabled in the terminal. It's been years since I used the Apple Terminal though, so I don't recall whether it supports bracketed paste.

wincent avatar Apr 24 '18 05:04 wincent

I just tried on iTerm2 too. I got the same error. Here is the vim version:

➜  ipsy vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 11 2018 22:23:28)
macOS version
Included patches: 1-1522
Compiled by MacPorts
Huge version without GUI.  Features included (+) or not (-):
+acl               +farsi             +mouse_sgr         -tag_any_white
+arabic            +file_in_path      -mouse_sysmouse    -tcl
+autocmd           +find_in_path      +mouse_urxvt       +termguicolors
-autoservername    +float             +mouse_xterm       +terminal
-balloon_eval      +folding           +multi_byte        +terminfo
+balloon_eval_term -footer            +multi_lang        +termresponse
-browse            +fork()            -mzscheme          +textobjects
++builtin_terms    +gettext           +netbeans_intg     +timers
+byte_offset       -hangul_input      +num64             +title
+channel           +iconv             +packages          -toolbar
+cindent           +insert_expand     +path_extra        +user_commands
-clientserver      +job               -perl              +vertsplit
+clipboard         +jumplist          +persistent_undo   +virtualedit
+cmdline_compl     +keymap            +postscript        +visual
+cmdline_hist      +lambda            +printer           +visualextra
+cmdline_info      +langmap           +profile           +viminfo
+comments          +libcall           +python            +vreplace
+conceal           +linebreak         -python3           +wildignore
+cryptv            +lispindent        +quickfix          +wildmenu
-cscope            +listcmds          +reltime           +windows
+cursorbind        +localmap          +rightleft         +writebackup
+cursorshape       -lua               +ruby              -X11
+dialog_con        +menu              +scrollbind        -xfontset
+diff              +mksession         +signs             -xim
+digraphs          +modify_fname      +smartindent       -xpm
-dnd               +mouse             +startuptime       -xsmp
-ebcdic            -mouseshape        +statusline        -xterm_clipboard
+emacs_tags        +mouse_dec         -sun_workshop      -xterm_save
+eval              -mouse_gpm         +syntax            
+ex_extra          -mouse_jsbterm     +tag_binary        
+extra_search      +mouse_netterm     +tag_old_static    
   system vimrc file: "/opt/local/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/opt/local/share/vim"
Compilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H   -I/opt/local/include -DMACOS_X -DMACOS_X_DARWIN  -pipe -Os -arch x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: /usr/bin/clang   -L. -L/opt/local/lib -Wl,-headerpad_max_install_names -fstack-protector -L/opt/local/lib  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o vim        -lm  -lncurses -liconv -lintl -framework AppKit    -L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/opt/local/Library/Frameworks/Py /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python   -lruby.2.2.0 -lobjc -L/opt/local/lib   

ucarbehlul avatar Apr 25 '18 04:04 ucarbehlul

What's your $TERM?

wincent avatar Apr 25 '18 22:04 wincent

xterm-256color

I'm also using zsh 5.3 (x86_64-apple-darwin17.0)

2018-04-25 15:53 GMT-07:00 Greg Hurrell [email protected]:

What's your $TERM?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wincent/command-t/issues/332#issuecomment-384458765, or mute the thread https://github.com/notifications/unsubscribe-auth/ABcGxYC2nzMsEUkTyT6UgUtF-_41oJrnks5tsP5agaJpZM4Tg_WV .

ucarbehlul avatar Apr 26 '18 17:04 ucarbehlul

I've found this issue in ubuntu 16.4, my term is xterm-256color. my vim is vim.gtk

yueyihui avatar Nov 17 '18 16:11 yueyihui

I'm also running into this issue (using iTerm2), with a $TERM of xterm-256color

jesselumarie avatar Dec 21 '18 18:12 jesselumarie

This is kind of expected in GUI modes (like MacVim) — see https://github.com/wincent/command-t/issues/217 — but not really sure what could cause it in the terminal (and much less iTerm2, which I use all the time).

wincent avatar Dec 24 '18 18:12 wincent

After my consider, it seems like will change list which is used to show files, instead of input position, thus 'cannot make changes, 'modifiable' is off' was notified

yueyihui avatar Dec 25 '18 06:12 yueyihui

If we solve #217, this one probably gets fixed "for free".

wincent avatar Jan 01 '19 17:01 wincent

'cannot make changes, 'modifiable' is off' happend on vim8.1, the older version vim can not reproduce this issue. have any configurations about compile vim8.1 is must?

yueyihui avatar Feb 02 '19 05:02 yueyihui

Given the big rewrite for v6.0.x, I'm closing all older issues as there is unlikely to be anything significant happening on the 5-x-devel branch from here on[^patches]. Feedback issue for 6.0.x is here:

  • https://github.com/wincent/command-t/issues/393

[^patches]: Patches and PRs would be welcome, but my personal efforts are going to be directed towards main.

wincent avatar Aug 26 '22 21:08 wincent