From 987a2464d1946ada3ba2078f8c810eae037d0882 Mon Sep 17 00:00:00 2001 From: chxuan <787280310@qq.com> Date: Wed, 16 May 2018 22:24:24 +0800 Subject: [PATCH] update vimrc --- .vimrc | 3 --- install.sh | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index 7045cbd..d816609 100644 --- a/.vimrc +++ b/.vimrc @@ -318,9 +318,6 @@ noremap :call smooth_scroll#down(&scroll*2, 0, 4) " ack nnoremap k :Ack! -if executable('ag') - let g:ackprg = 'ag --vimgrep' -endif " 个性化 if filereadable(expand($HOME . '/.vimrc.local')) diff --git a/install.sh b/install.sh index ee9bba4..36a98ae 100755 --- a/install.sh +++ b/install.sh @@ -61,19 +61,19 @@ function compile_vim() # 安装mac平台必要软件 function install_prepare_software_on_mac() { - brew install vim gcc cmake ctags-exuberant curl ack the_silver_searcher + brew install vim gcc cmake ctags-exuberant curl ack } # 安装centos发行版必要软件 function install_prepare_software_on_centos() { - sudo yum install -y vim ctags automake gcc gcc-c++ kernel-devel cmake python-devel python3-devel curl + sudo yum install -y vim ctags automake gcc gcc-c++ kernel-devel cmake python-devel python3-devel curl ack } # 安装ubuntu发行版必要软件 function install_prepare_software_on_ubuntu() { - sudo apt-get install -y ctags build-essential cmake python-dev python3-dev fontconfig curl + sudo apt-get install -y ctags build-essential cmake python-dev python3-dev fontconfig curl ack-grep ubuntu_1604=`is_ubuntu1604` echo ${ubuntu_1604}