vim

vim config files
git clone https://git.bracken.jp/vim.git
Log | Files | Refs | LICENSE

commit bfe626495f79b20203ad539dbe91803b772336de
parent 8d5e01e8a34cda62e7c72b7ca1a268f656cd0934
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:
Mplugin/snippets.vim | 5++++-
Mvimrc | 3---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugin/snippets.vim b/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/vimrc b/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]