mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 02:36:39 +02:00
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.
18 lines
588 B
VimL
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
|