文件操作 - vim9.vim
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/vim/vim91/autoload/dist/vim9.vim
编辑文件内容
vim9script # Vim runtime support library # # Maintainer: The Vim Project <https://github.com/vim/vim> # Last Change: 2023 Oct 25 export def IsSafeExecutable(filetype: string, executable: string): bool var cwd = getcwd() return get(g:, filetype .. '_exec', get(g:, 'plugin_exec', 0)) && (fnamemodify(exepath(executable), ':p:h') !=# cwd || (split($PATH, has('win32') ? ';' : ':')->index(cwd) != -1 && cwd != '.')) enddef # Uncomment this line to check for compilation errors early # defcompile
修改文件时间
将文件时间修改为当前时间的前一年
删除文件