diff options
author | Teddy Wing | 2023-08-09 20:40:22 +0200 |
---|---|---|
committer | Teddy Wing | 2023-08-09 21:45:46 +0200 |
commit | de0e8c423dd7e9ef6097ae332021bfb1f79d25a4 (patch) | |
tree | c4405ec05b919d54721fb956a0d9af61831b9601 | |
parent | efb93049e875877ca0f0fbbc8ba0af90e82676a3 (diff) | |
download | dotvim-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.
-rw-r--r-- | bundle/wchat/plugin/wchat.vim | 8 | ||||
-rw-r--r-- | projects/aodocs.vim | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/bundle/wchat/plugin/wchat.vim b/bundle/wchat/plugin/wchat.vim deleted file mode 100644 index 7c17898..0000000 --- a/bundle/wchat/plugin/wchat.vim +++ /dev/null @@ -1,8 +0,0 @@ -if exists('g:loaded_wchat') - finish -endif -let g:loaded_wchat = 1 - -" Write to a temporary file labelled with the current time. -command! -nargs=0 -bang WChat - \ execute ":write\<bang> /tmp/ch" . strftime('%H%M') 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() |