dotfiles

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

commit b98ecb985dd093007dcd73e7bdd183bc0658bcb0
parent 99dea30a3303c679c7422cd0fa0210bbf5f46d90
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri,  5 Jan 2024 16:32:41 -0800

Delete ClangFormat function

The clang-format plugin already has this functionality.

Diffstat:
M.vim/vimrc | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/.vim/vimrc b/.vim/vimrc @@ -141,19 +141,6 @@ endif """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Functions -" Apply clang-format to a range of lines (or all). -function ClangFormat() - let l:line_start = getpos("'<")[1] - let l:line_end = getpos("'>")[1] - let l:lines = "all" - if l:line_start != 0 && l:line_end != 0 - let l:lines = l:line_start . ":" . l:line_end - endif - py3f ~/share/clang/clang-format.py -endfunction -autocmd FileType c,cpp,objc nnoremap <buffer><Leader>cf :<C-u>ClangFormat<CR> -autocmd FileType c,cpp,objc vnoremap <buffer><Leader>cf :ClangFormat<CR> - " Toggle absolute/relative numbering. function! ToggleNumbering() if (&number == 0)