需要安装python3,virtualenv及vim,并且vim启用python3支持
$ wget https://raw.githubusercontent.com/hyperwd/comtools/master/rpms/python3/python-3.6.5-530.el7.x86_64.rpm \
-O ~/python-3.6.5-530.el7.x86_64.rpm
$ rpm -ivh ~/python-3.6.5-530.el7.x86_64.rpm
$ wget https://raw.githubusercontent.com/hyperwd/comtools/master/rpms/vim/vim-8.0-1768.el7.x86_64.rpm \
-O ~/vim-8.0-1768.el7.x86_64.rpm
$ rpm -ivh ~/vim-8.0-1768.el7.x86_64.rpm
$ echo 'export PATH="$PATH:/usr/local/python365/bin:/usr/local/vim/bin"' >> ~/.bashrc
$ source ~/.bashrc
$ wget https://bootstrap.pypa.io/get-pip.py -O ~/get-pip.py
$ python3 ~/get-pip.py
$ yum install -y git
或自行编译安装,参考编译安装python3,vim
$ pip3 install virtualenv
$ virtualenv -p /usr/local/python365/bin/python3 /opt/virt
$ source /opt/virt/bin/activate
$ deactivate
$ source /opt/virt/bin/activate
$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
$ wget --no-check-certificate https://raw.githubusercontent.com/hyperwd/hyperwd.vim/master/int.vim \
-O ~/int.vim
$ mv ~/int.vim ~/.vimrc
$ yum install ctags cmake -y
$ pip3 install pylint
$ pip3 install pyflakes
$ pip3 install pycodestyle
$ pip3 install shadowsocks(建议配置代理)
$ vim +PlugInstall +qa
- Create an issue.
- <F4>, when you type <F4>, this will add in the head of your source
file, and when you type <F4> again, It will update automatically.
###==========================================================================
FileName: test.py
Desc:
Author: Dong Wei Chao
Email: [email protected]
HomePage: https://github.com/hyperwd
Version: 0.0.1
LastChange: 2016-09-22 15:32:04
History:
###========================================================================== - How to config the authorinfo?
vim ~/.vim/plugged/hyperwd.vim/plugin/hypwerwd.vim - <F5>, Change the theme (solarized or Zenburn)
- z[a|c|o|...], The most basic commands are zc to close a fold and zo to open one. See :help fold-commands for full documentation.
- Ctrl+n, Open NERDTree with Ctrl+n
- <F8>, If you type the F8 key will toggle the Tagbar window.
- Ctrl+p, Check :help ctrlp-commands for other commands.
- <F1>, :set fileencoding
- <F2>, :set paste
- <F3>, :set nopaste
- (),{},[],<> Auto-Complete
- =,+,-,*,/,:,,,<,> Automatic-Space
'tmhedberg/SimpylFold'
'vim-scripts/indentpython.vim'
'vim-syntastic/syntastic'
'jnurmine/Zenburn'
'altercation/vim-colors-solarized'
'scrooloose/nerdtree'
'jistr/vim-nerdtree-tabs'
'majutsushi/tagbar'
'Valloric/YouCompleteMe'
'kien/ctrlp.vim'
'tpope/vim-fugitive'
'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
'scrooloose/nerdcommenter'
'hyperwd/hyperwd.vim'
MIT