Linux下的一些配置

/etc/vim/vimrc文件

set ts=4
set sts=4
set cindent
set expandtab
set smartindent
set autoindent
set shiftwidth=4
set nu
set hls
##文件编码识别
set fileencodings=utf-8,gb18030,gbk,gb2312,big5

taglist安装(taglist_46.zip

https://sourceforge.net/projects/vim-taglist
cp ./taglist_46/* ~/.vim/ -r

taglist使用:

:Tlist//打开TAGLIST

ZSH安装

sudo apt-get install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
chsh -s /bin/zsh
或者git clone zsh后
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

zsh读取git文件修改信息导致进入git目录卡死
git config --add oh-my-zsh.hide-dirty 1

windows git bash 文件755权限被改成644
git config --global core.filemode false
git config core.filemode false
 

 自动补全工具(YCM

https://www.vim.org/scripts/script.php?script_id=1520
解压后将文件拷贝到 ~/.vim
#配置/etc/vim/vimrc

set completeopt=menu,menuone
let OmniCpp_MayCompleteDot=1
let OmniCpp_MayCompleteArrow=1
let OmniCpp_MayCompleteScope=1
let OmniCpp_NamespaceSearch=1
let OmniCpp_GlobalScopeSearch=1
let OmniCpp_DefaultNamespace=["std"]
let OmniCpp_ShowPrototypeInAbbr=1
let OmniCpp_SelectFirstItem = 2
下载STL 头文件
https://www.vim.org/scripts/script.php?script_id=2358

解压后
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ cpp_src
配置/etc/vim/vimrc

set nocp
set tags+=/path/.vim/cpp/tags
filetype plugin on


  本地代码自动补全,安装步骤同上(解压拷贝)

http://www.vim.org/scripts/script.php?script_id=1879
原文地址:https://www.cnblogs.com/rayfloyd/p/11696952.html