colorsheme evening
"
为注释符号代码:set guioptions-=m
python
注意vim
-=
先后不要加空格,下方的 =
先后也不要加set guioptions-=T
set number
set nu
set fofttabstop=4 set shiftwidth=4
set tabstop=4
set expandtab
syntax on
set guifont=Consolas:h16
set guifont=consolas\ 16
set guifont=Consolas:h16,Courier_New:h14
set guifont=*
autocmd BufEnter *.txt set guifont=Arial:h14
set guifont=Consolas:h16:cGB2312:qDRAFT
set encoding=utf-8
map <F5> :!python %
source $VIMRUNTIME/delmemu.vim source $VIMRUNTIME/menu.vim
molokai
安装目录\vim81\colos
下新建文本、粘贴 Code、保存为 molokai.vim
colorscheme molokai
" 1. 设置配色方案 " colorscheme evening colorscheme molokai " 2.1 隐藏菜单栏 set guioptions-=m " 2.2 隐藏工具栏 set guioptions-=T " 3. 显示行号 set number " 4. 统一缩进数为 4 set softtabstop=4 set shiftwidth=4 " 5. 设置 Tab 键为 4 个空格 set tabstop=4 " 6. 让空格代替 Tab set expandtab " 7. 启动语法高亮 syntax on " 8. 设置字体 set guifont=Consolas:h16 " 9. 设置编码格式 set encoding=utf-8 " 10. 设置快速运行快捷键 map <F5> :!python % " 11. 备用,防止乱码 source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim " 下面是原来的 Code