dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit a3cc916e1e115a734e24b5bf4fece2ce44bf2c16
parent f945a08fe9e82285c96efd36a2a520f44232be90
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 29 Aug 2020 09:02:31 -0700

Move current date macro to snippets plugin

Now that I've got a home for this sort of thing, moving it to
plugins/snippets.vim.

Diffstat:
M.vim/plugin/snippets.vim | 5++++-
M.vim/vimrc | 3---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.vim/plugin/snippets.vim b/.vim/plugin/snippets.vim @@ -1,4 +1,7 @@ " Code snippets -" C, C++ +" Insert the current date in '2020-04-22 (Thu)' format. +nnoremap <Leader>cd i<C-R>=strftime('%Y-%m-%d (%a)')<CR><Esc> + +" Inject a boilerplate C/C++/Obj-C main() function. au FileType c,cpp,objc nmap <leader>cm iint main(int argc, char** argv) {<CR>return 0;<CR>}<ESC>%0 diff --git a/.vim/vimrc b/.vim/vimrc @@ -165,9 +165,6 @@ endif """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Functions -" Insert the current date in '2020-04-22 (Thu)' format -nnoremap <Leader>cd i<C-R>=strftime('%Y-%m-%d (%a)')<CR><Esc> - " Apply clang-format to a range of lines (or all) function ClangFormat() let l:line_start = getpos("'<")[1]