日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

vim for python

發布時間:2025/7/14 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 vim for python 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

貼出我的gvim配置文件,,基本給出了注釋,感覺還是挺好的哈哈。一些插件,自行百度~


set nocompatible set nu syntax enable syntax on "打開高亮 colorscheme desert source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswinfiletype plugin onset diffexpr=MyDiff() function MyDiff()let opt = '-a --binary 'if &diffopt =~ 'icase' | let opt = opt . '-i ' | endifif &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endiflet arg1 = v:fname_inif arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endiflet arg2 = v:fname_newif arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endiflet arg3 = v:fname_outif arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endiflet eq = ''if $VIMRUNTIME =~ ' 'if &sh =~ '\<cmd'let cmd = '""' . $VIMRUNTIME . '\diff"'let eq = '"'elselet cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'endifelselet cmd = $VIMRUNTIME . '\diff'endifsilent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq endfunctionset ts=4 set ai set sw=4set foldenable set foldmethod=indent "設置折疊set background=dark "設置背景黑色nmap <F2> :NERDTreeToggle<CR>let g:pydiction_location = 'F:\Program Files (x86)\Vim\vim74\tools\pydiction\complete-dict' let g:pydiction_menu_height = 20 "這是設置tab補全插件map <C-n> :tabnew<CR> "設置c-n新建標簽"c-tab切換標簽,alt+數字鍵切換到相應標簽 if has("gui_running") :map <silent> <C-S> :if expand("%") == ""<CR>:browse confirm w<CR>:else<CR>:confirm w<CR>:endif<CR> noremap <M-1> 1gt noremap <M-2> 2gt noremap <M-3> 3gt noremap <M-4> 4gt noremap <M-5> 5gt noremap <M-6> 6gt noremap <M-7> 7gt noremap <M-8> 8gt noremap <M-9> 9gt noremap <M-0> 10gt noremap <C-TAB> gt noremap <C-F4> <ESC>:bd<CR> noremap qt <ESC>:bd<CR> au BufEnter * simalt ~x "maximum the initial window zc else colorscheme desert"torte endif "Toggle Menu and Toolbar "默認不顯示菜單,按F10顯示菜單 set guioptions-=m set guioptions-=T map <silent> <F10> :if &guioptions =~# 'T' <Bar>\set guioptions-=T <Bar>\set guioptions-=m <bar>\else <Bar>\set guioptions+=T <Bar>\set guioptions+=m <Bar>\endif<CR>"設置搜索 set hlsearch set incsearch autocmd BufRead,BufNewFile *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys.stderr=sys.stdout;\ py_compile.compile(r'%')\" autocmd BufRead,BufNewFile *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m autocmd BufRead,BufNewFile *.py nmap <F5> :!python %<CR> autocmd BufRead,BufNewFile *.py nmap <F6> :make<CR> autocmd BufRead,BufNewFile *.py copen "如果是py文件,則同時打開編譯信息窗口 "進行Tlist的設置 filetype on let Tlist_Show_Menu = 1 "TlistUpdate可以更新tags map <F3> :silent! Tlist<CR> "按下F3就可以呼出Taglist let Tlist_Ctags_Cmd='ctags' "因為我們放在環境變量里,所以可以直接執行 let Tlist_Use_Right_Window=0 "讓窗口顯示在右邊,0的話就是顯示在左邊 let Tlist_Show_One_File=1 "讓taglist可以同時展示多個文件的函數列表,如果想只有1個,設置為1 let Tlist_File_Fold_Auto_Close=1 "非當前文件,函數列表折疊隱藏 let Tlist_Exit_OnlyWindow=1 "當taglist是最后一個分割窗口時,自動退出vim let Tlist_Process_File_Always=0 "是否一直處理tags.1:處理;0:不處理 "let Tlist_Inc_Winwidth= "設置幫助語言 set helplang=cn,en "把gui的工具欄去掉(要去掉,把等號前面的加號變成一個減號即可) "set guioptions+=T "把gui的右邊的滑動條去掉 "set guioptions+=r "把gui的左邊的滑動條去掉 "set guioptions-=L "把gui的菜單去掉 "set guioptions+=m

轉載于:https://www.cnblogs.com/shengrang/p/3843491.html

總結

以上是生活随笔為你收集整理的vim for python的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。