https://github.com/llleon/macvim_config
My MacVim config.
https://github.com/llleon/macvim_config
Last synced: 5 months ago
JSON representation
My MacVim config.
- Host: GitHub
- URL: https://github.com/llleon/macvim_config
- Owner: LLLeon
- Created: 2018-12-21T06:09:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-05T12:24:50.000Z (over 5 years ago)
- Last Synced: 2025-06-13T17:07:20.320Z (about 1 year ago)
- Language: Vim script
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# macvim_config
主要是 Golang 开发环境。
#### 1. 安装 MacVim
`brew install macvim --with-lua`
> - 需要安装完整的 Xcode;
> - neocomplete 插件需要 `lua` 支持。
#### 2. 安装插件
安装 vim 插件管理器 [Vundle](https://github.com/VundleVim/Vundle.vim)
`git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim`
执行 `mvim ~/.vimrc` 后,在 vim 命令模式执行:`:PluginInstall`。
#### 3. 安装字体
vimrc 中已配置 [Source Code Pro](https://github.com/adobe-fonts/source-code-pro) 字体,[下载字体](https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip) 解压后,进入`TTF`目录 全选所有字体打开,安装字体。
#### 4. 配置皮肤
```bash
mkdir -p ~/.vim/colors
curl https://raw.githubusercontent.com/tomasr/molokai/master/colors/molokai.vim > ~/.vim/colors/molokai.vim
```
#### 5. 插件依赖
> 1. **ctrsf.vim 插件依赖:** `brew install ack`
> 2. **tagbar 插件依赖:** `brew install ctags`
> 3. **vim-go 插件依赖:** vim中执行 `:GoInstallBinaries`
#### 6. 编译 YCM
需要安装 cmake:Mac 通过 `brew install cmake` 安装。
```bash
cd $HOME/.vim/bundle/YouCompleteMe
./install.py --gocode-completer
```