ports/editors/vim/files/vimrc
Sunpoet Po-Chuan Hsieh d778b0b3dd - Add "let: g:is_posix = 1" to default vimrc
- Bump PORTREVISION for package change

PR:		198728
Submitted by:	<yuri@rawbw.com>
2015-03-28 16:12:11 +00:00

24 lines
481 B
VimL

if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
let g:is_posix = 1
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