Tips for Using Vim [insert mode: insert current time, current file name, current file path, etc.] you can easily implement it using vim's abbreviated command. The following three lines insert the current time, the current file name, the current file path abct ##& lt; c-r & gt; strftime (& amp; #39; % Y-%...
Tips for Using Vim [insert mode: insert current time, current file name, current file path, etc.] you can easily implement it using vim's abbreviated command. The following three lines insert the current time, current file name, and current file path respectively.
AB ct ## = Strftime ('% Y-% m-% d % H: % M: % S ') AB fn ## = Expand ('%: p: t ') AB fp ## = Expand ('%: P ')
In insert mode, enter ct # and press the space or press enter to see the effect. Www.2cto.com [automatic reload when the file is modified by an external process and prompt] "auto-reload set autoread" is implemented to automatically prompt auto FileChangedShellPost * echoerr "file CHANGED and reloaded! "
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service