Make Vim as Your Bash-IDE Using bash-support Plugin

来源:互联网 发布:erp软件品牌 编辑:程序博客网 时间:2024/05/26 14:09

 Make Vim as Your Bash-IDE Using bash-support Plugin

  • Adding file header
  • Adding function/frame comment
  • Including default code snippet
  • Performing syntax check
  • Reading documentation about a function
  • Converting a code block to comment, and vice versa
  • Download the plugin from vim.org website.

    Step 1: Download the bash-support plugin

    wget -O bash-support.zip http://www.vim.org/scripts/download_script.php?src_id=9890

     Step 2: Install the bash-support Vim Plugin

    $ mkdir ~/.vim # if the directory does not exist already

    $ cd ~/.vim

    $ unzip /usr/src/bash-support.zip

    Step 3: Enable the plugin in the ~/.vimrc

    Add the following line to the ~/.vimrc to enable the plugin for Vim editor.