- su -c 'yum install 'python-devel''
这是为了后面准备将vim绑定python的解析器(提供auto-complete功能),
安装成功后将会看到类似的内容:
- [xinz@fedora workshop]$ python-config
- Usage: /usr/bin/python-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help]
可以解决vim编译时绑定解析器可能遇到的问题:
(cached) checking Python's configuration directory... (cached)
can't find it!
compile and link flags for Python are sane... no: PYTHON DISABLED
1.Fedora16默认情况下只提供一个vim-minimal精简版工具,当前下载vim7.3的
src
2.解压,cd vim73
3.
- ./configure --enable-pythoninterp --enable-multibyte
- " Execute file being edited with <Shift> + e:
- map <buffer> <S-e> :w<CR>:!/usr/bin/env python % <CR>
- syntax on
- filetype indent plugin on
- set modeline
- set tabstop=4
- set expandtab
- set softtabstop=4
- set shiftwidth=4
- set nonumber
- nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR>
- autocmd FileType python set omnifunc=pythoncomplete#Complete
- let Tlist_Ctags_Cmd='/usr/local/bin/ctags'
- map <leader>tt :TlistToggle<CR>
- set fileencodings=utf-8
- set termencoding=utf-8
- set encoding=utf-8