aports/main/vim/vimrc
Hugo Osvaldo Barrera 05e8181757 main/vim: remove filetype override for APKBUILD
Vim's upstream defaults already set `filetype=sh` for APKBUILD files, so
this is redundant and effectively a no-op.

Context
-------

Vim plugins such as ALE or nvim-lspconfig currently enable bash-specific
linters when `filetype=bash`. On the other hand, ALE only enables
APKBUILD-specific checks if `filetype=apkbuild`.

I am working on patches for upstream that introduce a dedicated
filetype, 'apkbuild'. This filetype will use the same `sh` highlight
rules (so highlighting remains unchanged).

This override here negates the effect of such patches. I'd rather remove
them now and rely entirely on what upstream does.
2024-01-25 10:12:48 +00:00

18 lines
588 B
VimL

set nocompatible " Use Vim defaults (much better!)
set bs=2 " Allow backspacing over everything in insert mode
set ai " Always set auto-indenting on
set history=50 " keep 50 lines of command history
set ruler " Show the cursor position all the time
" Don't use Ex mode, use Q for formatting
map Q gq
" When doing tab completion, give the following files lower priority.
set suffixes+=.info,.aux,.log,.dvi,.bbl,.out,.o,.lo
set nomodeline
syntax on
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif