- Vim 7.3.584+ with python scripting support
- xsel
- exuberant-ctags
- ack-grep
# For Debian/Ubuntu
sudo apt-get install xsel exuberant-ctags ack-grep
- Install the dependencies
- Run the install.sh
- Run the install.sh in the extra folder (optional)
# For Debian/Ubuntu
sudo apt-get install xsel exuberant-ctags ack-grep
bash install.sh
# optional (install YouCompleteMe)
cd extra
sudo apt-get install libclang-3.4-dev
bash install.sh
- Vundle -The plug-in manager for Vim
- Molokai -Molokai color scheme for Vim
- Vim-powerline -The ultimate statusline/prompt utility.
- GoldenView.Vim -Always have a nice view for vim split windows!
- PrettyGuides -Indent guides - displaying indent levels by vertical lines for Vim editor
- Ctrlp.vim -Fuzzy file, buffer, mru, tag, etc finder.
- Ack.vim -Vim plugin for the Perl module / CLI script 'ack'
- Vim-easymotion -Vim motions on speed!
- Nerdtree -A tree explorer plugin for vim
- Tagbar -Vim plugin that displays tags in a window, ordered by class etc
- Nerdcommenter -Vim plugin for intensely orgasmic commenting
- Auto-pairs -Vim plugin, insert or delete brackets, parens, quotes in pair
- Vim-surround -Quoting/parenthesizing made simple
- Emmet-vim -emmet for vim: http://emmet.io/ http://mattn.github.io/emmet-vim
- Ultisnips -This is an implementation of TextMates Snippets for the Vim Text Editor.
- a.vim -Alternate Files quickly (.c --> .h etc)
- YouCompleteMe -A code-completion engine for Vim. http://valloric.github.io/YouCompleteMe/
If you want to install YouCompleteMe, you should run the install.sh in the extra folder.
,e
==> quit,E
==> quit all without saving,<enter>
==> don't highlight the search results- Easier moving between windows:
ctrl-j
==> downctrl-k
==> upctrl-h
==> leftctrl-l
==> right
- Easier moving between tabs
,n
==> previous tab,m
==> next tab
- Copy content to clipboard
- Select the content
- In visual mode, press
ctrl-c
,f
==> toggle ctrlp<F3>
==> toggle nerdtree<F4>
==> toggle tagbar<F5>
==> build a project<F9>
==> build and run(only available for a single source code file)- ack a word which is under the cursor
,a
==> toggle ack command- Edit the command
- Press
enter
ctrl-j
==> UltiSnipsExpandTrigger,s
==> GoldenViewSwitchMain,S
==> GoldenViewSwitchToggle
- Edit ~/.vim/plugins.vim
- Add the name of the plugin you want to install
- In normal mode, type
:BundleInstall
- Press
enter
- Edit ~/.vim/plugins.vim
- Comment the name of the plugin you want to uninstall
- In normal mode, type
:BundleClean
- Press
enter
- In normal mode, type
:BundleInstall!
- Press
enter
For details, you can see https://github.com/gmarik/vundle.
You can also reference the home page of YouCompleteMe.
- Compile LLVM and Clang
1. Checkout LLVM:
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
2. Checkout Clang:cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
3. Checkout Compiler-RT:cd llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
4. Compilemkdir -p llvm/build
cd llvm/build
mkdir -p $HOME/ycm_temp/
../configure --prefix=$HOME/ycm_temp/llvm_root_dir --enable-optimized
make
make install
- Compile YouCompleteMe
1. Clone YouCompleteMe:
cd ~/.vim/bundle
git clone --recursive https://github.com/Valloric/YouCompleteMe
2. Compilecd ~
mkdir ycm_build
cd ycm_build
cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
make ycm_support_libs