Skip to content

xqzhang2015/VimIDE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VimIDE

Issues

If you encounter ctags issue on Mac, please reinstall ctags by brew:

brew install ctags

Then add ctags alias to ~/.bashrc or ~/.zshrc and source shell, like this

alias ctags="/usr/local/Cellar/ctags/5.8_1/bin/ctags"

Add submodule

git submodule add https://github.com/vim-scripts/The-NERD-tree.git bundle/the-nerd-tree
git submodule add https://github.com/sontek/rope-vim.git bundle/rope-vim
git submodule init
git submodule update
git submodule foreach git submodule init
git submodule foreach git submodule update

Above submodule init&update command could be replaced by this one

git submodule update --init --recursive

or

git submodule foreach --recursive git submodule update --init

The result is same but just the 2nd one will step into each directory.

For youcompleteme plugin

  1. install vim 8.0
yum install ncurses-devel
wget https://github.com/vim/vim/archive/master.zip
unzip master.zip
cd vim-master
cd src/
./configure --with-features=huge -enable-pythoninterp --with-python-config-dir=/usr/bin/python2.7-config
sudo make
sudo make install
export PATH=/usr/local/bin:$PATH

or alias vim='/usr/local/bin/vim' 注意 这里的--with-python-config-dir=/usr/lib/python2.7/config 等号后的路径每个机子不一定相同,总之需要找到 config 这个文件

  1. ycm install
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer --gocode-completer

.vimrc

In .vimrc, add the following codes to implement press TAB to get 4 white spaces

set ts=4  " ts is tabstop, which is to set the width ofTAB as 4
set expandtab

For the saved files, we could use the following approach to exchange between white space and TAB:

TAB to white space

:set ts=4
:set expandtab
:%retab!

white space to TAB

:set ts=4
:set noexpandtab
:%retab! 
" ! is to handle all TAB;
" NO !, only handle TAB of line header
git config user.name "ShawnZHANG""
git config user.email "[email protected]"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published