From de0e8c423dd7e9ef6097ae332021bfb1f79d25a4 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 9 Aug 2023 20:40:22 +0200 Subject: projects/aodocs.vim: Move 'wchat' plugin here and change file path I only use this command in an AODocs context. Today, I decided to change the path where these temporary files are saved. Since the path now uses a project-specific path variable, it made sense to move the command into the project file. --- projects/aodocs.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'projects/aodocs.vim') diff --git a/projects/aodocs.vim b/projects/aodocs.vim index 0d9c2e3..b10bae2 100644 --- a/projects/aodocs.vim +++ b/projects/aodocs.vim @@ -59,6 +59,12 @@ augroup END cnoremap u =$VIM_PROJECT_PATH_AODOCS_UFO_TICKET_FOLDER +" Write to a temporary file labelled with the current time. +command! -nargs=0 -bang WChat + \ execute ":write\ " . $VIM_PROJECT_PATH_AODOCS_CHAT_DRAFTS + \. '/chat-draft-' . strftime('%FT%H.%M.%S') . '.txt' + + " Enables a longer-than-72 character first line and 72 character wrapping on " subsequent lines. function! s:CommitWackoTextWidth() -- cgit v1.2.3