新聞中心
1、Tabpage對(duì)象(:h python-tabpage)

從網(wǎng)站建設(shè)到定制行業(yè)解決方案,為提供做網(wǎng)站、成都網(wǎng)站建設(shè)服務(wù)體系,各種行業(yè)企業(yè)客戶(hù)提供網(wǎng)站建設(shè)解決方案,助力業(yè)務(wù)快速發(fā)展。創(chuàng)新互聯(lián)公司將不斷加快創(chuàng)新步伐,提供優(yōu)質(zhì)的建站服務(wù)。
一個(gè)Tabpage對(duì)象對(duì)應(yīng)Vim的一個(gè)Tabpage。
2、Window對(duì)象(:h python-window)
一個(gè)Window對(duì)象對(duì)應(yīng)vim的一個(gè)Window。
3、Buffer對(duì)象(:h python-buffer)
一個(gè)Buffer對(duì)象對(duì)應(yīng)vim的一個(gè)buffer,Buffer對(duì)象提供了一些屬性和方法,可以很方便操作buffer。
4、vim.current對(duì)象(:h python-current)
vim.current對(duì)象提供了一些屬性,可以方便的訪(fǎng)問(wèn)“當(dāng)前”的vim對(duì)象
5、實(shí)例
:py print b.name # write the buffer file name
:py b[0] = "hello!!!" # replace the top line
:py b[:] = None # delete the whole buffer
:py del b[:] # delete the whole buffer
:py b[0:0] = [ "a line" ] # add a line at the top
:py del b[2] # delete a line (the third)
:py b.append("bottom") # add a line at the bottom
:py n = len(b) # number of lines
:py (row,col) = b.mark('a') # named mark
:py r = b.range(1,5) # a sub-range of the buffer
:py b.vars["foo"] = "bar" # assign b:foo variable
:py b.options["ff"] = "dos" # set fileformat
:py del b.options["ar"] # same as :set autoread<以上就是python vim中提供的對(duì)象介紹,希望對(duì)大家有所幫助。更多Python學(xué)習(xí)指路:創(chuàng)新互聯(lián)python教程
本文教程操作環(huán)境:windows7系統(tǒng)、Python 3.9.1,DELL G3電腦。
網(wǎng)站標(biāo)題:創(chuàng)新互聯(lián)Python教程:python vim中有哪些對(duì)象
本文來(lái)源:http://www.dlmjj.cn/article/cojoppp.html


咨詢(xún)
建站咨詢(xún)
