Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #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,907
    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 01:32 PM.
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  4. $spacer_open
    $spacer_close
  5. #4
    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
  •