使用shell脚本配置vim


#!/bin/sh
touch ~/.vimrc
echo "set nocompatible" > ~/.vimrc
echo "syntax on" >> ~/.vimrc
echo "set number" >> ~/.vimrc
echo "set ruler" >> ~/.vimrc
echo "set shiftwidth=4" >> ~/.vimrc
echo "set softtabstop=4" >> ~/.vimrc
echo "set tabstop=4" >> ~/.vimrc
echo "set nobackup" >> ~/.vimrc
echo "set autochdir" >> ~/.vimrc
echo "set noerrorbells" >> ~/.vimrc
echo "set novisualbell" >> ~/.vimrc
echo "set hlsearch" >> ~/.vimrc
echo "set autoindent" >> ~/.vimrc
echo "set cindent" >> ~/.vimrc