VIM設置

python 設置

set nu
filetype plugin indent on
autocmd FileType python setlocal et sta sw=2 sts=4
autocmd FileType python setlocal foldmethod=indent
set foldlevel=99
"開啓語法高亮
syntax on
""依文件類型設置自動縮進
filetype indent plugin on

"顯示當前的行號列號:
set ruler
""在狀態欄顯示正在輸入的命令
set showcmd

參考
http://linux-wiki.cn/wiki/%E7%94%A8Vim%E7%BC%96%E7%A8%8B%E2%80%94%E2%80%94%E9%85%8D%E7%BD%AE%E4%B8%8E%E6%8A%80%E5%B7%A7

發佈了118 篇原創文章 · 獲贊 16 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章