Skip to content

"Not allowed in sandbox" while defining navcommands in config/rails.vim #195

@jumski

Description

@jumski

Hi!

I want to have project-specific navcommands (3 of last backbone-js projects i was working on have different convention for storing models/views/collections).

I have created config/rails.vim file and put some navcommand definitions there:

autocmd User Rails Rnavcommand jcollection app/assets/javascripts/backbone/collections/ -glob=**/* -suffix=.js.coffee                                                         
autocmd User Rails Rnavcommand jmodel app/assets/javascripts/backbone/models/ -glob=**/* -suffix=.js.coffee                                                                   
autocmd User Rails Rnavcommand jview app/assets/javascripts/backbone/views/ -glob=**/* -suffix=.js.coffee                                                                     
autocmd User Rails Rnavcommand jrouter app/assets/javascripts/backbone/routers/ -glob=**/* -suffix=.js.coffee                                                                 
autocmd User Rails Rnavcommand template app/assets/javascripts/backbone/templates/ -glob=**/* -suffix=.hbs

I've got this error while starting vim:

Error detected while processing /home/jumski/work/ebookmakr/config/rails.vim:                                                                                                 
line    3:                                                                                                                                                                    
E48: Not allowed in sandbox: autocmd User Rails Rnavcommand admin app/admin/ -suffix=.rb

Do you know if it is possible at all?
Where to look for solution?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions