aboutsummaryrefslogtreecommitdiffstats
path: root/projects/aodocs.vim
diff options
context:
space:
mode:
authorTeddy Wing2023-08-09 20:40:22 +0200
committerTeddy Wing2023-08-09 21:45:46 +0200
commitde0e8c423dd7e9ef6097ae332021bfb1f79d25a4 (patch)
treec4405ec05b919d54721fb956a0d9af61831b9601 /projects/aodocs.vim
parentefb93049e875877ca0f0fbbc8ba0af90e82676a3 (diff)
downloaddotvim-de0e8c423dd7e9ef6097ae332021bfb1f79d25a4.tar.bz2
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.
Diffstat (limited to 'projects/aodocs.vim')
-rw-r--r--projects/aodocs.vim6
1 files changed, 6 insertions, 0 deletions
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 <C-x>u <C-r>=$VIM_PROJECT_PATH_AODOCS_UFO_TICKET_FOLDER<CR>
+" Write to a temporary file labelled with the current time.
+command! -nargs=0 -bang WChat
+ \ execute ":write\<bang> " . $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()