"运行pythonmap :w :!python % "===============================" 设置编码自动识别, 中文引号显示 set fileencodings=utf-8,gbk set ambiwidth=double colorscheme desert" 允许退格键删除和tab操作 set smartindent set smarttab set expandtab set tabstop=4 set softtabstop=4 set shiftwidth=4 set backspace=2set textwidth=79" 启用鼠标 set mouse=a " 启用行号 set nu "自动补全 filetype plugin indent onset completeopt=longest,menu"自动补全命令时候使用菜单式匹配列表 set wildmenuautocmd FileType python set omnifunc=pythoncomplete#Complete"MiniBufExplorerlet g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1let python_highlight_all = 1if &t_Co > 1 syntax enableendif" 禁止光标闪烁set gcr=a:block-blinkon0" 禁止显示滚动条set guioptions-=lset guioptions-=Lset guioptions-=rset guioptions-=R" 禁止显示菜单和工具条set guioptions-=mset guioptions-=T" 总是显示状态栏set laststatus=2" 显示光标当前位置set ruler" 开启行号显示set number" 高亮显示当前行/列set cursorlineset cursorcolumn" 高亮显示搜索结果set hlsearch" 禁止折行set nowrap" 自适应不同语言的智能缩进filetype indent on" 随 vim 自启动let g:indent_guides_enable_on_vim_startup=1" 从第二层开始可视化显示缩进let g:indent_guides_start_level=2" 色块宽度let g:indent_guides_guide_size=1" 快捷键 i 开/关缩进可视化:nmap i IndentGuidesToggle""""""""""""""""""""""""""""""" Tag list (ctags)""""""""""""""""""""""""""""""nmap :Tlist let Tlist_Show_One_File=1let Tlist_Exit_OnlyWindow=1let Tlist_Use_Right_Window = 1"WinManagerlet g:winManagerWindowLayout='FileExplorer|TagList'nmap wm :WMToggle map :NERDTreeToggle map :NERDTreeFind let NERDTreeChDirMode=2 "选中root即设置为当前目录let NERDTreeQuitOnOpen=1 "打开文件时关闭树let NERDTreeShowBookmarks=1 "显示书签let NERDTreeMinimalUI=1 "不显示帮助面板let NERDTreeDirArrows=1 "目录箭头 1 显示箭头 0传统+-|号
=====================================================
效果图: