From 52f7b5658d303a0d49621c929cc65d81e52ff3fe Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 15 May 2023 18:23:57 +0200 Subject: improve formatting --- .vimrc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index c0007b0..2754e62 100644 --- a/.vimrc +++ b/.vimrc @@ -35,6 +35,7 @@ autocmd filetype vimki syntax on autocmd filetype vimki set autowrite " autocmd filetype vimki setlocal spell spelllang=fr autocmd filetype vimki nmap z :FZF ~/Wiki +autocmd filetype markdown,text,vimki setlocal textwidth=72 " vim-go plugin "let g:go_def_mode = "gopls" @@ -75,8 +76,9 @@ autocmd filetype python,yaml set ts=2 sts=2 sw=2 et " noremap :!cscope -7 " Paragraph format / unformat -noremap f !}fmt -noremap F !}fmt -c -w 2048 +" noremap f !}fmt +" noremap F !}fmt -c -w 2048 +noremap f gqip " noremap K :s,^,//, " noremap :s,^//,, @@ -110,14 +112,14 @@ noremap :Files " 'i' includes: find files that include the filename under cursor " 'd' called: find functions that function under cursor calls -noremap s :cs find s =expand("") -noremap g :cs find g =expand("") -noremap c :cs find c =expand("") -noremap t :cs find t =expand("") -noremap e :cs find e =expand("") -noremap i :cs find i =expand("") -noremap f :cs find f =expand("") -noremap d :cs find d =expand("") +"noremap s :cs find s =expand("") +"noremap g :cs find g =expand("") +"noremap c :cs find c =expand("") +"noremap t :cs find t =expand("") +"noremap e :cs find e =expand("") +"noremap i :cs find i =expand("") +"noremap f :cs find f =expand("") +"noremap d :cs find d =expand("") function! CloseOnLast() -- cgit v1.2.3