备份我的vi配置

set encoding=gbk
set fileencoding=gbk
set fileencodings=gbk,utf8,gb2312,ucs-bom,latin1

set nocompatible

let Tlist_Show_One_File=1
let Tlist_OnlyWindow=1
let Tlist_Use_Right_Window=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Show_Menu=1
let Tlist_Max_Submenu_Items=10
let Tlist_Max_Tag_length=20
let Tlist_Use_SingleClick=0
let Tlist_Auto_Open=0
let Tlist_Close_On_Select=0
let Tlist_File_Fold_Auto_Close=1
let Tlist_GainFocus_On_ToggleOpen=0
let Tlist_Process_File_Always=1
let Tlist_WinHeight=10
let Tlist_WinWidth=30
let Tlist_Use_Horiz_Window=0
nmap <F9>      :Tlist<CR>
imap <F9> <C-O>:Tlist<CR>

let g:winManagerWindowLayout = "FileExplorer" 
"let g:winManagerWindowLayout = "TagList|FileExplorer"
let g:winManagerWidth = 30
nmap <silent> <F8> :WMToggle<cr>

map <silent> <F12> :<Esc><Esc>:!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
imap <silent> <F12> :<Esc><Esc>:!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>

set guioptions-=L "把gui左边的滑动条去掉 
"set guioptions-=r " 把gui右边的滑动条去掉
"set guioptions-=m " 把gui的菜单栏去掉
autocmd GUIEnter * simalt ~x "windows下启动vim最大化

set showmatch                   " 显示括号配对情况
set history=50                  " keep 50 lines of command history 
set tabstop=4                   " 设定tab长度为4 
set softtabstop=4
set shiftwidth=4                " 缩进的空格数  
set noexpandtab
set autoindent                  " 自动缩进
set smartindent 
set cindent 
set nu
colo desert
"colo elflord
set nobackup
set noswapfile
set nocompatible
syntax on


"python
filetype plugin on
let g:pydiction_location = 'D://Program Files//Vim//vimfiles//ftplugin//pydiction//complete-dict'
let g:pydiction_menu_height = 20

map <F5> :!python.exe %

安装taglist,ctags插件,安装python以及自动提示pydiction插件,so nice!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值