mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 00:00:33 -04:00
Now install a minimalistic vimrc without all the controversial options (I hope) Define a template for port Makefiles to vim automatically creates it in case of opening a new one
23 lines
462 B
VimL
23 lines
462 B
VimL
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
|
|
set fileencodings=ucs-bom,utf-8,latin1
|
|
endif
|
|
|
|
set nocompatible
|
|
set bs=indent,eol,start
|
|
set history=50
|
|
set ruler
|
|
|
|
if &t_Co > 2 || has("gui_running")
|
|
syntax on
|
|
set hlsearch
|
|
endif
|
|
|
|
if has("autocmd")
|
|
augroup freebsd
|
|
autocmd!
|
|
if $PORTSDIR != ""
|
|
autocmd BufNewFile $PORTSDIR/*/*/Makefile 0r $PORTSDIR/Templates/Makefile
|
|
else
|
|
autocmd BufNewFile /usr/ports/*/*/Makefile 0r /usr/ports/Templates/Makefile
|
|
endif
|
|
endif
|