git clone https://github.com/Chenlonw/morgon.vim.git ~/.vim
cd ~/.vim
ln -s vimrc ~/.vimrc
I installed the Vundle as the plugin control tool, you need to install it firstly by
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
and then open a VIM and type :PluginInstall in command mode
After installing the Vundle you need to install YouCompleteMe manually by:
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer
list of Plugins
- YouCompleteMe
- Vim-easymotion
- C.vim
- DrawIt
- Vim-multiple-cursors
- Latex-suite
- Airline
- Python.vim (indent for python)
- Tabular (align text)
- Fugitive (Git wrapper)
- Nerdtree (working folder)
- LanguageTool (gramma checker)
- Ag.vim Sliver Searcher
- UltiSnip (snippets)
- syntastic (syntastic checker)
- jump to
<++>
byctrl+j
- switch line number type in normal mode by
ctrl+a
- switch highlight searching in normal mode by
ctrl+h
ctrl+r
in view mode, can comment your codectrl+f
in view mode, can uncomment your code
- compile and excute a source code by
F5
- excute a makefile by
F4
- insert a
Flow ( )
in normal mode byShift+f
- insert a
Plot ( )
in normal mode byShift+p
- insert a
Result ( )
in normal mode byShift+r
- insert
${SOURCES[]}
in insert mode byCtrl+s
- insert
${TARGETS[]}
in insert mode byCtrl+t
- insert
['']
in insert mode byCtrl+b
- excute a scons by
ctrl+s
- set filetype as Python by
ctrl+p
- preview markdown with Google-Chrome by
ctrl+m
- compile a latex file by
ctrl+l
- display a corresponding pdf file with evince by
Shift+e
- semantic completion can be triggered by
ctrl+y
- jump to forward by
\\w
- jump to forward in line by
\\j
- jump to backward by
\\b
- jump to backward in line by
\\k
- find and jump by
\\f
- begin by
\di
- end by
\ds
- move and draw by
Up Down Left Right
- move by
Shift + Up Down Left Right
- choose words by
ctrl+n
- jump forward or backward words by
ctrl+x or p
- start by
\te
- start by
:Tab /*
- start by
Ctrl+e
You need download the LanguageTool from LanguageTool
- customized your installation directory by setting
:let g:languagetool_jar='$HOME/Your/Installation/Directory/languagetool-commandline.jar'
- toggle in normal mode by
Shift+r
- stop in normal mode by
Shift+d
The UltiSnip is a very efficient to type your content with VIM.
I use supertab to solve the conflicts with YouCompleteMe.
It can be toggled by 'Tab' button.
- Sometimes, the gvim cannot open due to the plugins. It may caused by the previous version of shell
vim. You can try
gvim --nofork
, it works for me
- Chenlong Wang, Email: clwang88@gmail.com