gather file specific configurations

This commit is contained in:
Ivar Fatland
2026-08-31 14:21:12 +02:00
parent 3c987f7d59
commit e39d7eb951
+2 -2
View File
@@ -3,8 +3,6 @@ set background=dark
colorscheme retrobox colorscheme retrobox
nnoremap ,rc :source $MYVIMRC<CR> nnoremap ,rc :source $MYVIMRC<CR>
autocmd FileType make setlocal noexpandtab
autocmd FileType yaml setlocal tabstop=2
let g:rustfmt_autosave = 0 let g:rustfmt_autosave = 0
let g:netrw_banner = 0 let g:netrw_banner = 0
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR> nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
@@ -84,6 +82,8 @@ au BufWinLeave *.* silent! mkview
au FileType * setlocal indentexpr= au FileType * setlocal indentexpr=
au FileType lua setlocal noexpandtab au FileType lua setlocal noexpandtab
au FileType c setlocal noexpandtab au FileType c setlocal noexpandtab
au FileType make setlocal noexpandtab
au FileType yaml setlocal tabstop=2
function! s:SetFileMark(n) abort function! s:SetFileMark(n) abort
let g:file_marks[a:n] = expand('%:p') let g:file_marks[a:n] = expand('%:p')