Vim??????????????????(1) - ??????vundle????????????-??????-????????????-?????????
????????????????????????????????????????????????emacs????????????vi????????????????????????????????????Unix/Linux?????????????????????????????????
???????????????????????????Windows?????????????????????????????????????????????????????????????????????????????????????????????????????????Sublime Text???Ultra Editor???Notepad++???pspad???Atom???Visual Studio Code???IDE??????Eclipse, IntellJ IDEA, NetBeans????????????????????????????????????????????????
???C#?????????IDE?????????Visual Studio??????Java??????IntellJ IDEA???Eclipse???????????????????????????????????????????????????????????????????????????????????????????????????emacs???vim???????????????????????????????????????????????????????????????Sublime Text???Atom?????????????????????????????????????????????????????????vim???emacs???????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??????vundle????????????
???????????????????????????????????????????????????????????????????????????????????????????????????vundle????????????????????????
??????????????????Vundle?????????git????????????????????????
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
???????????????????????????~/.vimrc?????????????????????????????????????????????~/.vimrc?????????
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
??????????????????call vundle#end()???????????????????????????????????????plugin????????????????????????
??????????????????vim plugin?????????????????????????????????????????????
vim???????????????????????????
vim????????????????????????????????????https://www.vim.org/scripts/index.php
????????????C/C++???????????????????????????c.vim???????????????
?????????????????????git?????????????????????https://vim-scripts.org/vim/scripts.html
?????????????????????????????????????????????vim-scripts.org??????????????????????????????c.vim???taglist.vim????????????????????????~/.vimrc?????????
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim
Plugin 'c.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
??????vim??????????????????????????????:PluginInstall?????????c.vim?????????????????????????????????
??????????????????c.vim?????????????????????????????????????????????C++???????????????test2.cpp????????????
vim test2.cpp
?????????????????????????????????c.vim????????????????????????????????????????????????????????????
/*
* =====================================================================================
*
* Filename: test2.cpp
*
* Description:
*
* Version: 1.0
* Created: 2017/06/23 12???24???15???
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#include <stdlib.h>
????????????????????????for?????????????????????\i0???vim?????????????????????????????????????????????i?????????????????????????????????????????????
for ( i = 0; i < n; i += 1 ) {
}
?????????????????????????????????????????????????????????https://wolfgangmehner.github.io/vim-plugins/csupport/c-hotkeys.pdf
??????????????????????????????????????????https://wolfgangmehner.github.io/vim-plugins/doc/csupport.html
???????????????:help csupport???vim????????????
vim???????????????github
?????????????????????github?????????vim?????????????????????????????????????????????????????????github??????????????????
vundle??????github?????????????????????????????????NERD tree???????????????https://github.com/scrooloose/nerdtree?????????????????????github?????????????????????????????????????????????????????????
Plugin 'scrooloose/nerdtree'
???git???????????????
????????????????????????github?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????git????????????????????????
Plugin 'git@gitlab.alibaba-inc.com:ziying.liuziying/studyvim.git'
????????????
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??????
Plugin 'file:///home/gmarik/path/to/plugin'
Vundle????????????
????????????
????????????????????????.vimrc???????????????:PluginInstall???????????????
- PluginList???????????????????????????????????????
????????????????????????????????????
" My Plugins
Plugin 'VundleVim/Vundle.vim'
Plugin 'd.vim'
Plugin 'taglist.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'c.vim'
Plugin 'OmniCppComplete'
Plugin 'clang-complete'
Plugin 'AutoComplPop'
Plugin 'bufexplorer.zip'
Plugin 'SuperTab'
Plugin 'SrcExpl'
Plugin 'molokai'
Plugin 'omlet.vim'
Plugin 'cpp.vim'
Plugin 'thinca/vim-logcat'
Plugin 'vim-scripts/prop.vim'
Plugin 'mglb/vim-android-syntax'
PluginInstall??????????????????.vimrc????????????????????????????????????????????????:PluginInstall! ??????:PluginUpdate??????
PluginClean????????????.vimrc????????????plugin
????????????
:PluginSearch?????????????????????????????????????????????????????????????????????i???????????????
????????????vim?????????????????????????????????????????????????????????????????????.vimrc??????
最後更新:2017-06-23 23:02:40