目录:
- linux-ubuntu
- windows
linux-ubuntu
- 一、安装clang-format
1、查找clang-format
sudo apt-cache search clang-format
clang-format-3.3 - Tool to format C/C++/Obj-C code
clang-format-3.4 - Tool to format C/C++/Obj-C code
clang-format-3.5 - Tool to format C/C++/Obj-C code
clang-format-3.6 - Tool to format C/C++/Obj-C code
clang-format-3.8 - Tool to format C/C++/Obj-C code
clang-format-3.9 - Tool to format C/C++/Obj-C code
2、sudo apt-get install clang-format-3.9
3、sudo cp /usr/bin/clang-format-3.9 /usr/bin/clang-format
- 二、安装vim
sudo apt-get install vim - 三、安装vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim - 四、安装ctags
sudo apt-get install ctags - 五、安装ag
sudo apt-get install silversearcher-ag - 六、安装plugin
1、cp .vimrc ~/.vimrc
2、进入vim,输入:PluginInstall
windows
- 一、安装exe(略)
- 二、复制_vimrc配置文件到
C:\Program Files (x86)\Vim\