Find the answer to your Linux question:
Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By elija
Hi My vim version is 7.3 System:ubuntu 12.04 You can run the command like ":!ls -l" in vim. But I want to disable the feautre! howto? I have google it,but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2012
    Posts
    1

    how to disable running shell command in vim


    Hi
    My vim version is 7.3
    System:ubuntu 12.04

    You can run the command like ":!ls -l" in vim.
    But I want to disable the feautre!

    howto?

    I have google it,but it say something about nvi.

  2. #2
    Just Joined!
    Join Date
    Dec 2012
    Location
    Chilaw, Sri Lanka
    Posts
    4
    Not really an answer. But, may I suggest using a different, "easier" editor like nano, which doesn't have the ability to do that? After all, it's a command-line tool too.

  3. #3
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,317
    Try
    Code:
    vim -Z
    @Shayn: When you start getting your head around vim it is immensely powerful and can make you very productive. The steep learning curve does have great rewards
    Last edited by elija; 12-16-2012 at 12:32 PM.
    awc likes this.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

  4. #4
    Just Joined!
    Join Date
    Jul 2008
    Posts
    93
    Quote Originally Posted by xuanmingyi View Post
    Hi
    My vim version is 7.3
    System:ubuntu 12.04

    You can run the command like ":!ls -l" in vim.
    But I want to disable the feature!

    Use "rvim" instead. From "man vim":
    Code:
    rvim rview rgvim rgview
            Like the above, but with restrictions.  It will not be
    possible to  start  shell  commands, or suspend Vim.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •