sorted all lines in .vimrc

This commit is contained in:
2025-10-04 23:47:48 +02:00
parent 9f567cf121
commit 642cb592c6
+48 -65
View File
@@ -1,80 +1,63 @@
set rtp+=/home/linuxbrew/.linuxbrew/opt/fzf,/usr/local/opt/fzf,/opt/homebrew/opt/fzf autocmd BufEnter *__virtual* setlocal buftype=nofile bufhidden=hide noswapfile
nnoremap ,fa :call fzf#run({'sink': 'edit', 'options': '--preview="bat --color=always {}"'})<CR> autocmd BufNewFile,BufRead *.h set filetype=c
nnoremap ,ff :call fzf#run({'sink': 'edit', 'options': '--preview="bat --color=always {}"', 'source': 'git ls-files'})<CR> autocmd BufWinEnter *.* silent! loadview
autocmd BufWinLeave *.* silent! mkview
set exrc autocmd FileType * setlocal indentexpr=
set secure autocmd FileType c setlocal path+=/usr/local/include,/usr/include
if has('clipboard') autocmd FileType csharp setlocal makeprg=dotnet
set clipboard^=unnamed,unnamedplus autocmd FileType go setlocal makeprg=go noexpandtab
endif autocmd FileType python setlocal makeprg=basedpyright
set tabstop=4 autocmd FileType yaml setlocal tabstop=2
set shiftwidth=0 let g:rustfmt_autosave = 0
set expandtab nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
set rnu
set nu
set nowrap
set shiftround
set nohlsearch
set incsearch
set guicursor=n-v-c:block-Cursor
set cursorline
set autoindent
set ttimeoutlen=50
syntax on
nnoremap ,co :copen<CR>
nnoremap ,cc :cclose<CR> nnoremap ,cc :cclose<CR>
nnoremap ,cq :call setqflist([])<CR>:cclose<CR>
nnoremap ,ct :call setqflist([{'filename': expand('%'), 'lnum': line('.'), 'col': col('.'), 'text': 'TODO'}], 'a')<CR>
nnoremap ,cf :cfirst<CR> nnoremap ,cf :cfirst<CR>
nnoremap ,cl :clast<CR> nnoremap ,cl :clast<CR>
nnoremap <c-n> :cnext<CR>zz nnoremap ,co :copen<CR>
nnoremap <c-p> :cprevious<CR>zz nnoremap ,cq :call setqflist([])<CR>:cclose<CR>
nnoremap ,cu :colder<CR>
nnoremap ,cr :cnewer<CR> nnoremap ,cr :cnewer<CR>
nnoremap ,ct :call setqflist([{'filename': expand('%'), 'lnum': line('.'), 'col': col('.'), 'text': 'TODO'}], 'a')<CR>
nnoremap ,cu :colder<CR>
nnoremap ,fa :call fzf#run({'sink': 'edit', 'options': '--preview="bat --color=always {}"'})<CR>
nnoremap ,ff :call fzf#run({'sink': 'edit', 'options': '--preview="bat --color=always {}"', 'source': 'git ls-files'})<CR>
nnoremap ,h H nnoremap ,h H
nnoremap ,l L nnoremap ,l L
nnoremap H ^
nnoremap L $
xnoremap H ^
xnoremap L $
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
nnoremap ,t <c-w>v<c-w>l:terminal<CR>a nnoremap ,t <c-w>v<c-w>l:terminal<CR>a
nnoremap <c-d> <c-d>zz
" Don't include curdir, it just causes pain.
set viewoptions=folds,cursor
autocmd BufWinLeave *.* silent! mkview
autocmd BufWinEnter *.* silent! loadview
nnoremap <c-h> <c-w>h nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k nnoremap <c-k> <c-w>k
nnoremap <c-l> <c-w>l nnoremap <c-l> <c-w>l
nnoremap <c-n> :cnext<CR>zz
nnoremap <c-d> <c-d>zz nnoremap <c-p> :cprevious<CR>zz
nnoremap <c-u> <c-u>zz nnoremap <c-u> <c-u>zz
nnoremap H ^
tnoremap <c-w>c <c-\><c-n><c-w>c nnoremap L $
set autoindent
autocmd BufEnter *__virtual* setlocal buftype=nofile bufhidden=hide noswapfile set cursorline
let g:rustfmt_autosave = 0
" remove annoying and bad indentation
autocmd FileType * setlocal indentexpr=
set wildignore=*.o,*.obj,.git/**,tags,*.pyc
" for c tests
set errorformat^=[----]\ %f:%l:\ %m set errorformat^=[----]\ %f:%l:\ %m
set expandtab
set exrc
set guicursor=n-v-c:block-Cursor
set incsearch
set nohlsearch
set nowrap
set nu
set path=** set path=**
set rnu
set rtp+=/home/linuxbrew/.linuxbrew/opt/fzf,/usr/local/opt/fzf,/opt/homebrew/opt/fzf
set secure
set shiftround
set shiftwidth=0
set tabstop=4
set ttimeoutlen=50
set viewoptions=folds,cursor
set wildignore=*.o,*.obj,.git/**,tags,*.pyc
syntax on
tnoremap <c-w>c <c-\><c-n><c-w>c
xnoremap H ^
xnoremap L $
" language specific makeprgs if has('clipboard')
autocmd BufNewFile,BufRead *.h set filetype=c set clipboard^=unnamed,unnamedplus
autocmd FileType c setlocal path+=/usr/local/include,/usr/include endif
autocmd FileType python setlocal makeprg=basedpyright
autocmd FileType go setlocal makeprg=go noexpandtab
autocmd FileType csharp setlocal makeprg=dotnet
autocmd FileType yaml setlocal tabstop=2