vim 如何设置python自动缩进和自动提示
1、缩进定义set shiftwidth=4set tabstop=4set softtabstop=4set expandtabset smarttabset autoindentset nobackup

2、set shiftwidth=4set tabstop=4set softtabstop=4set expandtabset smarttabset autoindent

3、source $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswin

4、键盘映射map <F4> :!python % <CR>map <F5> :!tcc -run % <CR>

5、按F6 编译当前文件map <F6> :!gcc % -g -o %<.exe <CR> map <F7> :!%<.exe <CR>map <F8> :call Run() <CR>func Run() exec "w" exec "!gcc % -g -o %<.exe" exec "!%<.exe"endfunc

6、插入匹配括号inoremap ( ()<LEFT>inoremap [ []<LEFT>inoremap { {}<LEFT>inoremap < <><LEFT>inoremap " ""<LEFT>inoremap ' ''<LEFT>

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:191
阅读量:20
阅读量:146
阅读量:107
阅读量:96