/vim_cfg

My vim config

Primary LanguageVim Script

vim_cfg

This is my vim config, you can use macvim instead of vim.

Deprecated!!! I use neovim now 👉 jackie-feng/nvim

Move .vimrc and .gvimrc to your $HOME

依赖

vim-plug: deal with the vim plugin

unix:

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

fzf: file searcher

install fzf using Homebrew

Plug '/usr/local/opt/fzf'
Plug 'junegunn/fzf.vim'

Ag: the searcher instead of ack

brew install the_silver_searcher

配置fzf

add this to your .bash_profile

export FZF_DEFAULT_COMMAND='ag --ignore-case --depth -1 -g ""'
export FZF_DEFAULT_OPTS="--height 40% --layout=reverse --preview '(highlight -O ansi {} || cat {}) 2> /dev/null | head -500'"

Run!!!

Enter vim and just do :PlugInstall.