i install vim and tmux and config both of them, when i open vim directly everything is fine and works very well , but when i run tmux and inside tmux open vim , vim act like vi!.

i don't know what is the matter ? i even set set nocompatible at top of my vimrc file but it does n't any impact . i repeat that vim it self work fine but when run into tmux then run like vi.

my vimrc configl file : http://paste.ubuntu.com/24182927/

my tmux config file: http://paste.ubuntu.com/24182928/



I can't speak to the exact reason why your system is reacting this way but, as far as general errors with your config go, you are missing the following line in your vimrc file:

call vundle#end()

This line needs to be at the end of your vimrc config if you are going to use Vundle. For some context, check out the official Vundle doc.

I'm not sure what kind of issues this missing line may cause, but it is the first thing I would correct if I were you.

  • Thanks Dear Bryan but it did n't fix my issue – Bahram Mar 16 '17 at 5:27
  • What is the actual user experience? You said you vim is "running like vi." What in particular are you noticing? Also, does vim appear to be able to locate your vimrc when you experience this problem (i.e. are any of your other vimrc configurations taking effect)? – Bryan Bugyi Mar 16 '17 at 5:30
  • Also, make sure that filetype plugin indent on is placed below call vundle#end(). Once again, not sure why this would cause an issue, but I don't pretend to understand the inner workings of Vundle either. – Bryan Bugyi Mar 16 '17 at 6:04
  • user experience ? when run vim inside tmux and use arrow keys like vi insert ^B , ^C , ... that means it does not run set nocompatibel but other configuration in my vimrc run without any issue , i think one of the plugin i used has set compatible in it , i don't know maybe it is something else .. – Bahram Mar 18 '17 at 7:12
  • i added call vundle#end() but not any affect – Bahram Mar 18 '17 at 7:13

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.