wincent / command-t

⌨️ Fast file navigation for Neovim and Vim
BSD 2-Clause "Simplified" License
2.74k stars 317 forks source link

e21: cannot make changes, 'modifiable' is off #332

Closed ucarbehlul closed 2 years ago

ucarbehlul commented 6 years ago

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)

wincent commented 6 years ago

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.

ucarbehlul commented 6 years ago

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   
wincent commented 6 years ago

What's your $TERM?

ucarbehlul commented 6 years ago

xterm-256color

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

2018-04-25 15:53 GMT-07:00 Greg Hurrell notifications@github.com:

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 .

yueyihui commented 5 years ago

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

jesselumarie commented 5 years ago

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

wincent commented 5 years ago

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).

yueyihui commented 5 years ago

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

wincent commented 5 years ago

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

yueyihui commented 5 years ago

'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?

wincent commented 2 years ago

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:

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