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

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

關(guān)于自動(dòng)加入頭文件的問(wèn)題

老師關(guān)于添加那一段自動(dòng)添加頭文件的東西,放在 ?/etc/vimrc ?最后可以嗎, 還是要放到 指定的位置。

正在回答

2 回答

set?number
set?autoindent
set?cindent

let?$author_name="consoles"
let?$author_email="consoles.me@gmail.com"

function!?AutoSetShFileHead()
if?&filetype?==?'sh'
call?setline(1,?"\#!/bin/bash")
call?append(line("."),"\#?filename:?".expand("%"))
call?append(line(".")+1,"\#?author:?".$author_name)
call?append(line(".")+2,"\#?email:?".$author_email)
call?append(line(".")+3,"\#?created?time:?".strftime("%c"))
endif

normal?G
normal?o
normal?o
endfunc

這個(gè)是我的vimrc文件,你可以參考下。我是按照這個(gè)教程設(shè)置的。

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

小馬_125

為啥用你的報(bào)錯(cuò)啊 -bash: syntax: command not found -bash: let: =consoles: syntax error: operand expected (error token is "=consoles")
2019-08-28 回復(fù) 有任何疑惑可以回復(fù)我~

可以放最后

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

舉報(bào)

0/150
提交
取消

關(guān)于自動(dòng)加入頭文件的問(wèn)題

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

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

幫助反饋 APP下載

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

公眾號(hào)

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