janus icon indicating copy to clipboard operation
janus copied to clipboard

With janus, vim7.3 + ubuntu 11.04 + nerdtree cannot open file

Open yangchenyun opened this issue 12 years ago • 3 comments

I am trying to use .janus on my ubuntu, but I found the nerdtree cannot work properly - I cannot open file from it..

The plugin works fine when I uninstall .janus and use my own vimrc files.

yangchenyun avatar Mar 21 '12 12:03 yangchenyun

We need more information on the issues, what you haven given us doesn't help much!

kalbasit avatar Apr 14 '12 07:04 kalbasit

I think I got same problem like @yangchenyun is describing under Linux Mint 13 ( Ubuntu fork distro)

Given I use janus vim (for example in Rails project ) When I split screen vertically ( :vs); And on left side screen I open any folder structure (:e app/controllers/) And on left side screen I open any file listed ( application_controller + enter ) And on right side screen I open folder structure (:e app/controllers) Then vim lock left panel screen with :set nomodifiable and :set readonly and sets pointer to left panel

so basically some plugin (that works with folders I guess) is locking left panel when I open folder structure

I tried to disable plugins NERDtree and NERDcommenter in vim.before and vim.after (didn't help)

the only solution was to each time run commands

 :set modifiable
 :set noreadonly

which is pretty annoying. I'm using same janus (with my snipets and .vimrc) on Fedora and use to use it on OSX Lion, works properly

equivalent avatar Jun 12 '12 09:06 equivalent

Update on my prev. comment

interesting thing. In scenario with different folder structure it works ok..

Given I use janus vim (for example in Rails project ) When I split screen vertically ( :vs); And on left side screen I open any folder structure (:e app/controllers/) And on left side screen I open any file listed ( application_controller + enter ) And on right side screen I open folder structure (:e app/models) Then vim open right side (properly) and don't do anything with left side (properly)

but continuing in this scenario i do

Given previous scenario When I open app/controllers in right panel Then vim lock left panel screen with :set nomodifiable and :set readonly and sets pointer to left panel

equivalent avatar Jun 12 '12 09:06 equivalent