From 30a292cea73b500436a729f49e88f7a43b8eaea8 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 12 Nov 2020 13:52:14 +0100 Subject: Added valgrind alias, rfc-syntax vim, norm in vim --- .vimrc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 634e947..d68c7ed 100644 --- a/.vimrc +++ b/.vimrc @@ -246,7 +246,7 @@ autocmd Filetype vim setlocal foldmethod=marker autocmd FileType haskell set formatprg=stylish-haskell -autocmd FileType lisp set shiftwidth=2 +autocmd FileType lisp,yaml,json set shiftwidth=2 autocmd FileType python set keywordprg=pydoc3 " }}} @@ -286,7 +286,7 @@ nmap ga (EasyAlign) " }}} " c_formatter_42 {{{ -let g:c_formatter_42_set_equalprg=1 +let g:c_formatter_42_set_equalprg=0 let g:c_formatter_42_format_on_save=0 " }}} @@ -305,13 +305,15 @@ endfunction command! CountScopeLines call s:CountScopeLines() -command! Norm execute '!norminette ' . expand("%") - " disable paste on enter " (need to be at the end or overwritted by something) -nnoremap j +" nnoremap j " copy/paste with system {{{ -vnoremap y:call system("pbcopy", getreg("\"")) -nnoremap :call setreg("\"",system("pbpaste"))p +vnoremap c y:call system("pbcopy", getreg("\"")) +nnoremap v :call setreg("\"",system("pbpaste"))p " }}} + +inoremap + +command! TagsUpdate :call system('ctags $(find . -type f -name "*.c" -o -name "*.h")') -- cgit