FreeBSD 安装vim 并配置

pkg 镜像源安装

1 pkg install vim

查看 vim信息

 1 root@FreeBSD:~ # pkg info vim
 2 vim-8.1.1954
 3 Name           : vim
 4 Version        : 8.1.1954
 5 Installed on   : Wed Oct 16 22:05:07 2019 CST
 6 Origin         : editors/vim
 7 Architecture   : FreeBSD:12:amd64
 8 Prefix         : /usr/local
 9 Categories     : editors
10 Licenses       : VIM
11 Maintainer     : [email protected]
12 WWW            : http://www.vim.org/
13 Comment        : Improved version of the vi editor
14 Options        :
15         ATHENA         : off
16         CONSOLE        : off
17         CSCOPE         : on
18         CTAGS_BASE     : off
19         CTAGS_EXUBERANT: on
20         CTAGS_UNIVERSAL: off
21         DEFAULT_VIMRC  : on
22         GNOME          : off
23         GTK2           : off
24         GTK3           : on
25         LUA            : off
26         MOTIF          : off
27         NLS            : on
28         PERL           : on
29         PYTHON2        : off
30         PYTHON3        : on
31         RUBY           : on
32         SCHEME         : off
33         TCL            : off
34         X11            : off
35         XTERM_SAVE     : off
36 Shared Libs required:
37         libX11.so.6
38         libglib-2.0.so.0
39         libgobject-2.0.so.0
40         libpango-1.0.so.0
41         libruby26.so.26
42         libcairo.so.2
43         libgtk-3.so.0
44         libperl.so.5.30
45         libICE.so.6
46         libXt.so.6
47         libintl.so.8
48         libSM.so.6
49         libgdk_pixbuf-2.0.so.0
50         libpython3.6m.so.1.0
51         libgio-2.0.so.0
52         libgdk-3.so.0
53         libpangocairo-1.0.so.0
54 Annotations    :
55         FreeBSD_version: 1200086
56         cpe            : cpe:2.3:a:vim:vim:8.1:::::freebsd12:x64
57         repo_type      : binary
58         repository     : FreeBSD
59 Flat size      : 32.2MiB
60 Description    :
61 Vim is a highly configurable text editor built to enable efficient text editing.
62 It is an improved version of the vi editor distributed with most UNIX systems.
63 
64 Vim is often called a "programmer's editor," and so useful for programming that
65 many consider it an entire IDE. It's not just for programmers, though. Vim is
66 perfect for all kinds of text editing, from composing email to editing
67 configuration files.
68 
69 WWW: http://www.vim.org/
70 WWW: https://github.com/vim/vim

再进行vimrc 配置

1 root@FreeBSD:/usr/local/etc/vim # pwd
2 /usr/local/etc/vim
3 root@FreeBSD:/usr/local/etc/vim # cp vimrc ~/.vimrc

vimrc继续修改配置

1 root@FreeBSD:~ # vim .vimrc
2 """""""""""""""""""""""""""""""""""
3 set nu
4 set ts=4

猜你喜欢

转载自www.cnblogs.com/shuitian-ys/p/11685301.html