From 33601ea1211b53913056abce468e9e7e3c58b39b Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 11 Aug 2021 10:50:40 +0200 Subject: [PATCH] .vimrc: Update from jkratoch. --- .vimrc | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.vimrc b/.vimrc index fad69ee..696e804 100644 --- a/.vimrc +++ b/.vimrc @@ -4,7 +4,7 @@ if !exists("g:_kratochvil_vimrc") let g:_kratochvil_vimrc=1 -autocmd! filetypedetect +"autocmd! filetypedetect "remove 'set tw=78': autocmd! BufRead *.txt @@ -18,7 +18,7 @@ autocmd! BufRead *.txt autocmd BufCreate,VimEnter * let g:BufEnter_ts= 8 autocmd BufEnter * call BufEnter() autocmd VimEnter * call BufEnter() -set runtimepath=.,$VIMRUNTIME +set runtimepath+=.,$VIMRUNTIME function BufEnter() if exists("g:BufEnter_ts") unlet g:BufEnter_ts @@ -39,11 +39,11 @@ function BufReadPost() endif endfunction -set encoding=utf-8 -set termencoding=utf-8 +"set encoding=utf-8 +"set termencoding=utf-8 " fileencoding is detected from fileencodings, first one for empty files " 'iso-8859-2,euc-jp' really does not work for 'euc-jp' -set fileencodings=utf-8,euc-jp,iso-8859-2 +"set fileencodings=utf-8,euc-jp,iso-8859-2 set ts=8 set sw=2 @@ -51,7 +51,9 @@ set sts=2 ca X x syntax off let g:loaded_matchparen = 1 -set swapsync= +if !has('nvim') + set swapsync= +endif " vim-7+ only silent! set nofsync set noerrorbells @@ -80,7 +82,7 @@ set nocst set tags=./tags,./TAGS,./../tags,./../TAGS,./../../tags,./../../TAGS,./../../../tags,./../../../TAGS,./../../../../tags,./../../../../TAGS,./../../../../../tags,./../../../../../TAGS,./../../../../../../tags,./../../../../../../TAGS,./../../../../../../../tags,./../../../../../../../TAGS,./../../../../../../../../tags,./../../../../../../../../TAGS,./../../../../../../../../../tags,./../../../../../../../../../TAGS,./../../../../../../../../../../tags,./../../../../../../../../../../TAGS,./../../../../../../../../../../../tags,./../../../../../../../../../../../TAGS,./reactos/tags,./../reactos/tags,./../../reactos/tags,,./../../../reactos/tags,./../../../../reactos/tags,./../../../../../reactos/tags,./../../../../../../reactos/tags,./w32/inc/tags,./../w32/inc/tags,./../../w32/inc/tags,,./../../../w32/inc/tags,./../../../../w32/inc/tags,./../../../../../w32/inc/tags,./../../../../../../w32/inc/tags,./../../../../../../../w32/inc/tags,/usr/src/redhat/BUILD/tags,/usr/src/redhat/BUILD/TAGS,/usr/include/tags,/usr/include/TAGS noremap p :set invpaste paste? -noremap l :set invlist paste? +noremap l :set invlist list? noremap q @q noremap : @: noremap :nextzz @@ -99,15 +101,17 @@ noremap g "myiw:grep-rEw'm'. noremap zz noremap zz noremap G:r !date '+\%H:\%M:\%S-'kA -noremap d :set hlsearch/^[+-]\([^+-].*\\|\)$ -noremap D :set hlsearch/^[+-][+-]\([^+-].*\\|\)$ +noremap s :set hlsearch/^[+-]\([^+-].*\\|\)$ +noremap S :set hlsearch/^[+-][+-]\([^+-].*\\|\)$ noremap w 0i /[^ ]vf.h"kyf./[^ ]vf.h"ly0x:r !date -d "`date '+\%Y'`-l-k" '+\%u'yypkV:!tr '1234567' 'PUSCPSN'jV:!tr '1234567' 'otttaoe'kJxv0xk0llllllplxxjddk0 -noremap s :syntax on:set syntax=wdiff +noremap e :syntax on:set syntax=wdiff noremap * :let ic_save=&ic:set noic*:let &ic=ic_save noremap # :let ic_save=&ic:set noic#:let &ic=ic_save noremap :w:!aspell --check '%':e noremap gq] gq/^. \?$ noremap 1 :w:make -j1 -noremap m :w:make +noremap 3 /^ddV/^k:w! 1gvxddV/^=======k:w! 2gvxddV/^k:w! 3/^dd''0:!diff -u 2 1 +noremap m :w:set makeprg=make:make +noremap n :w:set makeprg=ninja:make endif "!exists("g:_kratochvil_vimrc") -- 1.8.3.1