"nnoremap <Leader>c :call ToggleCheckbox()<CR>
" }}}
+"" Leader behavior {{{
+" Cleanup the buffer {{{
+noremap <leader>c :call BufferCleansing()<CR>
+" }}}
+
" Insert the current date in ISO format {{{
"
" Thanks https://vimtricks.com/p/insert-the-current-date-or-time/
inoremap <leader>d <C-R>=strftime('%Y-%m-%d')<CR>
map <leader>e :put =strftime('## %Y-%m-%d')<CR>
" }}}
-
-" Remove trailing whitespaces {{{
-noremap <leader>w :call TrimWhitespace()<CR>
" }}}
-"
command! TrimWhitespace call TrimWhitespace()
" }}}
+
+" Cleanup the buffer {{{
+"
+" Implement miscelaneous buffer cleansing procedures
+function BufferCleansing()
+ " Trim white spaces
+ call TrimWhitespace()
+endfunction
+
+command! BufferCleansing call BufferCleansing()
+" }}}