Home
Sign Up
Sign In
V2EX
›
Vim
怎样在新建特定扩展名的文件时自动执行特定动作?
013231
·
Jan 22, 2012
· 4280 views
This topic created in 5399 days ago, the information mentioned may be changed or developed.
比如说, 新建.sh文件时自动在文件头部插入#!/bin/bash, 新建.py时自动插入#!/usr/bin/python, 并执行chmod u+x %.
bin
新建
自动
2 replies
•
1970-01-01 08:00:00 +08:00
fanzeyi
Jan 22, 2012
1
autocmd
ry_wang
Jan 22, 2012
2
模板功能
http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=895258
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4967 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 09:00
·
PVG 17:00
·
LAX 01:00
·
JFK 04:00
♥ Do have faith in what you're doing.
❯