aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-12 13:52:14 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-12 13:52:14 +0100
commit30a292cea73b500436a729f49e88f7a43b8eaea8 (patch)
tree84c9aec70cc415cdc4c2aa43d191cca83acf6e4d /.vimrc
parent7999193a52252bf35954ed623f14b22f943804f9 (diff)
downloaddotfiles-s19.tar.gz
dotfiles-s19.tar.bz2
dotfiles-s19.zip
Added valgrind alias, rfc-syntax vim, norm in vims19
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc16
1 files changed, 9 insertions, 7 deletions
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 <Plug>(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 <CR> j
+" nnoremap <CR> j
" copy/paste with system {{{
-vnoremap <C-S-c> y:call system("pbcopy", getreg("\""))<CR>
-nnoremap <C-S-m> :call setreg("\"",system("pbpaste"))<CR>p
+vnoremap <leader>c y:call system("pbcopy", getreg("\""))<CR>
+nnoremap <leader>v :call setreg("\"",system("pbpaste"))<CR>p
" }}}
+
+inoremap <C-a> <C-n>
+
+command! TagsUpdate :call system('ctags $(find . -type f -name "*.c" -o -name "*.h")')