第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

我在vimrc中添加了如下內(nèi)容。執(zhí)行了source /etc/vimrc。但是沒有效果

auto BufNewFile *.py,*.sh, exec ":call SetTitle()"

let $author_name = ”Tianlianhao“

let $author_emal ="214520626@qq.com"

func SetTile()

if &filetype == 'sh'

call setline(1,"\#####################################################")

call append (line("."),"\#File Nme:".expand("%"))

call append(line(".")+1,"\#Author:".$author_name)

call append(line(".")+2,"\#mail:".$author_email)

call append(line(".")+3,"\#Created Time:".strftime("%c"))

call append(line(".")+4,"\#==============================================")

call append(line(".")+5,"\#!/bin/bash")

call append(line(".")+6,"")

else

call setline(1,"\#######################################################")

call append(line("."),"#\#File Name:".expand("%"))

call append(line(".")+1,"\#Author:".$author_name)

call append(line(".")+2,"\#mail:".$author_email)

call append(line(".")+3,"\Created Time:".Strftime("%c"))

call append(line(".")+4,"\#================================================")

call append(line(".")+5,"\#!/usr/bin/python")

call append(line)("."+6,""))


正在回答

4 回答

還有一點(diǎn)一定要記住,有可能/etc/vimrc不生效,一般情況的是在自己家目錄下邊的.vimrc這個(gè)文件才會生效!!!一定要注意!!!!!!!!!!

0 回復(fù) 有任何疑惑可以回復(fù)我~

1.在結(jié)尾添加 if結(jié)束和func結(jié)束:

endif
autocmd BufNewFile * normal G
endfunc

2.在vimrc文件的首部添加:(*****)

filetype on????? #"打開文件類型檢測


0 回復(fù) 有任何疑惑可以回復(fù)我~

你的if判斷都沒有閉合,而且這些是照著視頻上抄的吧?去網(wǎng)上搜一個(gè)完整的vimrc配置,自己修改一下

0 回復(fù) 有任何疑惑可以回復(fù)我~

你確定沒有效果??

你是不是用vim打開的?

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

我在vimrc中添加了如下內(nèi)容。執(zhí)行了source /etc/vimrc。但是沒有效果

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號