FreeBSD 10 & vim

FreeBSD bash Key Bindings

vim without X11 (pkgng)

Für vim will mir pkg ein komplettes X11 mit allem und Gummibärchen reindrücken
Why does Vim in pkgng depend on X11 and the GTK?

$ pkg install vim-lite

vim without X11 (portupgrade)

FreeBSD: HOWTO install vim from ports WITHOUT X-Windows.
Install vim on FreeBSD without X11

MAKE_ARGS = {
'editors/vim' => 'WITHOUT_X11=YES',
}

Tabs to Spaces

vi search and replace – how to replace all tabs with spaces

1,$s/\t/    /g

How to replace tabs with spaces?
Replace Tab with Spaces in VIM
Converting tabs to spaces

vim profile

FreeBSD Install VIM Editor Without X11 GUI + Setup profile

# cp /usr/local/share/vim/vim74/vimrc_example.vim /usr/local/share/vimrc
$ echo "alias vi='vim'" >> ~/.bashrc
set nocompatible
filetype on
filetype indent on
filetype plugin on
set laststatus=2
syntax on
[root@ns3 /home/andreas]# pkg install vim
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The following 105 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        vim: 7.4.884
        libXt: 1.1.4_3,1
        xproto: 7.0.27
        libSM: 1.2.2_3,1
        libICE: 1.0.9_1,1
        libX11: 1.6.2_3,1
        libXdmcp: 1.1.2
        libxcb: 1.11_1
        libpthread-stubs: 0.3_6
        libXau: 1.0.8_3
        kbproto: 1.0.6
        python27: 2.7.10_1
        libffi: 3.2.1
        pango: 1.36.8_2
        encodings: 1.0.4_3,1
        font-util: 1.3.1
        libXft: 2.3.2_1
        libXrender: 0.9.8_3
        renderproto: 0.11.1
        fontconfig: 2.11.1,1
        expat: 2.1.0_3
        freetype2: 2.6_1
        xorg-fonts-truetype: 7.7_1
        font-misc-meltho: 1.0.3_3
        mkfontdir: 1.0.7
        mkfontscale: 1.1.2
        libfontenc: 1.1.2_3
        font-bh-ttf: 1.0.3_3
        font-misc-ethiopic: 1.0.3_3
        dejavu: 2.35
        harfbuzz: 1.0.1
        cairo: 1.14.2,2
        libGL: 10.6.8
        libXfixes: 5.0.1_3
        fixesproto: 5.0
        dri2proto: 2.8
        libXdamage: 1.1.4_3
        damageproto: 1.2.1
        libdevq: 0.0.2_1
        libXxf86vm: 1.1.4_1
        xf86vidmodeproto: 2.3.1
        libXext: 1.3.3_1,1
        xextproto: 7.3.0
        libdrm: 2.4.60,1
        libpciaccess: 0.13.3
        pciids: 20150924
        libxshmfence: 1.2
        libglapi: 10.6.8
        libXvMC: 1.0.9
        libXv: 1.0.10_3,1
        videoproto: 2.3.2
        glproto: 1.4.17
        libEGL: 10.6.8
        gbm: 10.6.8
        llvm36: 3.6.2_2
        perl5: 5.20.3_8
        png: 1.6.20
        pixman: 0.32.6_1
        xcb-util-renderutil: 0.3.9_1
        xcb-util: 0.4.0_1,1
        glib: 2.44.1_1
        libiconv: 1.14_8
        pcre: 8.37_4
        libXpm: 3.5.11_4
        libXinerama: 1.1.3_3,1
        xineramaproto: 1.2.1
        icu: 55.1
        graphite2: 1.3.2
        cscope: 15.8b
        gtk2: 2.24.28_1
        hicolor-icon-theme: 0.15
        cups-client: 2.0.3_2
        libgcrypt: 1.6.3
        libgpg-error: 1.20
        gnutls: 3.3.17.1
        nettle: 2.7.1
        gmp: 5.1.3_2
        ca_root_nss: 3.20.1
        libtasn1: 4.7
        p11-kit: 0.23.1_1
        trousers-tddl: 0.3.10_7
        libidn: 1.31
        mDNSResponder: 567
        python2: 2_3
        gtk-update-icon-cache: 2.24.28
        libXcursor: 1.1.14_3
        libXcomposite: 0.4.4_3,1
        compositeproto: 0.4.2
        libXi: 1.7.4_1,1
        inputproto: 2.3.1
        atk: 2.16.0
        libXrandr: 1.4.2_3
        randrproto: 1.4.1
        gdk-pixbuf2: 2.32.1
        jasper: 1.900.1_15
        jpeg-turbo: 1.4.1
        tiff: 4.0.4
        jbigkit: 2.1_1
        shared-mime-info: 1.4
        python: 2.7_2,2
        lua52: 5.2.4
        ruby: 2.1.7,1
        libyaml: 0.1.6_2
        tcl86: 8.6.4
        ctags: 5.8

The process will require 532 MiB more space.

Proceed with this action? [y/N]: y
[1/105] Installing xproto-7.0.27...
[1/105] Extracting xproto-7.0.27: 100%
[2/105] Installing libXdmcp-1.1.2...
[2/105] Extracting libXdmcp-1.1.2: 100%
[3/105] Installing libpthread-stubs-0.3_6...
[3/105] Extracting libpthread-stubs-0.3_6: 100%
[4/105] Installing libXau-1.0.8_3...
[4/105] Extracting libXau-1.0.8_3: 100%
[5/105] Installing libxcb-1.11_1...
[5/105] Extracting libxcb-1.11_1: 100%
[6/105] Installing kbproto-1.0.6...
[6/105] Extracting kbproto-1.0.6: 100%
[7/105] Installing libX11-1.6.2_3,1...
[7/105] Extracting libX11-1.6.2_3,1: 100%
[8/105] Installing xextproto-7.3.0...
[8/105] Extracting xextproto-7.3.0: 100%
[9/105] Installing fixesproto-5.0...
[9/105] Extracting fixesproto-5.0: 100%
[10/105] Installing libXext-1.3.3_1,1...
[10/105] Extracting libXext-1.3.3_1,1: 100%
[11/105] Installing pciids-20150924...
[11/105] Extracting pciids-20150924: 100%
[12/105] Installing videoproto-2.3.2...
[12/105] Extracting videoproto-2.3.2: 100%
[13/105] Installing libXfixes-5.0.1_3...
[13/105] Extracting libXfixes-5.0.1_3: 100%
[14/105] Installing damageproto-1.2.1...
[14/105] Extracting damageproto-1.2.1: 100%
[15/105] Installing libpciaccess-0.13.3...
[15/105] Extracting libpciaccess-0.13.3: 100%
[16/105] Installing libXv-1.0.10_3,1...
[16/105] Extracting libXv-1.0.10_3,1: 100%
[17/105] Installing libffi-3.2.1...
[17/105] Extracting libffi-3.2.1: 100%
[18/105] Installing expat-2.1.0_3...
[18/105] Extracting expat-2.1.0_3: 100%
[19/105] Installing libXdamage-1.1.4_3...
[19/105] Extracting libXdamage-1.1.4_3: 100%
[20/105] Installing libdevq-0.0.2_1...
[20/105] Extracting libdevq-0.0.2_1: 100%
[21/105] Installing libdrm-2.4.60,1...
[21/105] Extracting libdrm-2.4.60,1: 100%
[22/105] Installing libxshmfence-1.2...
[22/105] Extracting libxshmfence-1.2: 100%
[23/105] Installing libXvMC-1.0.9...
[23/105] Extracting libXvMC-1.0.9: 100%
[24/105] Installing python27-2.7.10_1...
[24/105] Extracting python27-2.7.10_1: 100%
[25/105] Installing freetype2-2.6_1...
[25/105] Extracting freetype2-2.6_1: 100%
[26/105] Installing libfontenc-1.1.2_3...
[26/105] Extracting libfontenc-1.1.2_3: 100%
[27/105] Installing xf86vidmodeproto-2.3.1...
[27/105] Extracting xf86vidmodeproto-2.3.1: 100%
[28/105] Installing libglapi-10.6.8...
[28/105] Extracting libglapi-10.6.8: 100%
[29/105] Installing perl5-5.20.3_8...
[29/105] Extracting perl5-5.20.3_8: 100%
[30/105] Installing renderproto-0.11.1...
[30/105] Extracting renderproto-0.11.1: 100%
[31/105] Installing mkfontscale-1.1.2...
[31/105] Extracting mkfontscale-1.1.2: 100%
[32/105] Installing dri2proto-2.8...
[32/105] Extracting dri2proto-2.8: 100%
[33/105] Installing libXxf86vm-1.1.4_1...
[33/105] Extracting libXxf86vm-1.1.4_1: 100%
[34/105] Installing gbm-10.6.8...
[34/105] Extracting gbm-10.6.8: 100%
[35/105] Installing llvm36-3.6.2_2...
[35/105] Extracting llvm36-3.6.2_2: 100%
[36/105] Installing xcb-util-0.4.0_1,1...
[36/105] Extracting xcb-util-0.4.0_1,1: 100%
[37/105] Installing libiconv-1.14_8...
[37/105] Extracting libiconv-1.14_8: 100%
[38/105] Installing pcre-8.37_4...
[38/105] Extracting pcre-8.37_4: 100%
[39/105] Installing libICE-1.0.9_1,1...
[39/105] Extracting libICE-1.0.9_1,1: 100%
[40/105] Installing font-util-1.3.1...
[40/105] Extracting font-util-1.3.1: 100%
[41/105] Installing libXrender-0.9.8_3...
[41/105] Extracting libXrender-0.9.8_3: 100%
[42/105] Installing fontconfig-2.11.1,1...
[42/105] Extracting fontconfig-2.11.1,1: 100%
Running fc-cache to build fontconfig cache...
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 5 dirs
/usr/local/share/fonts/OTF: caching, new cache contents: 23 fonts, 0 dirs
/usr/local/share/fonts/TTF: caching, new cache contents: 13 fonts, 0 dirs
/usr/local/share/fonts/dejavu: caching, new cache contents: 21 fonts, 0 dirs
/usr/local/share/fonts/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/local/share/fonts/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/local/share/fonts/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/local/lib/X11/fonts: skipping, no such directory
/root/.local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
Re-scanning /usr/local/share/fonts: caching, new cache contents: 0 fonts, 5 dirs
Re-scanning /usr/local/share/fonts/encodings: caching, new cache contents: 0 fonts, 1 dirs
/var/db/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
[43/105] Installing mkfontdir-1.0.7...
[43/105] Extracting mkfontdir-1.0.7: 100%
[44/105] Installing libGL-10.6.8...
[44/105] Extracting libGL-10.6.8: 100%
[45/105] Installing glproto-1.4.17...
[45/105] Extracting glproto-1.4.17: 100%
[46/105] Installing libEGL-10.6.8...
[46/105] Extracting libEGL-10.6.8: 100%
[47/105] Installing png-1.6.20...
[47/105] Extracting png-1.6.20: 100%
[48/105] Installing pixman-0.32.6_1...
[48/105] Extracting pixman-0.32.6_1: 100%
[49/105] Installing xcb-util-renderutil-0.3.9_1...
[49/105] Extracting xcb-util-renderutil-0.3.9_1: 100%
[50/105] Installing glib-2.44.1_1...
[50/105] Extracting glib-2.44.1_1: 100%
No schema files found: doing nothing.
[51/105] Installing libSM-1.2.2_3,1...
[51/105] Extracting libSM-1.2.2_3,1: 100%
[52/105] Installing encodings-1.0.4_3,1...
[52/105] Extracting encodings-1.0.4_3,1: 100%
[53/105] Installing font-misc-meltho-1.0.3_3...
[53/105] Extracting font-misc-meltho-1.0.3_3: 100%
[54/105] Installing font-bh-ttf-1.0.3_3...
[54/105] Extracting font-bh-ttf-1.0.3_3: 100%
[55/105] Installing font-misc-ethiopic-1.0.3_3...
[55/105] Extracting font-misc-ethiopic-1.0.3_3: 100%
[56/105] Installing dejavu-2.35...
[56/105] Extracting dejavu-2.35: 100%
[57/105] Installing cairo-1.14.2,2...
[57/105] Extracting cairo-1.14.2,2: 100%
[58/105] Installing icu-55.1...
[58/105] Extracting icu-55.1: 100%
[59/105] Installing graphite2-1.3.2...
[59/105] Extracting graphite2-1.3.2: 100%
[60/105] Installing gmp-5.1.3_2...
[60/105] Extracting gmp-5.1.3_2: 100%
[61/105] Installing ca_root_nss-3.20.1...
[61/105] Extracting ca_root_nss-3.20.1: 100%
[62/105] Installing libtasn1-4.7...
[62/105] Extracting libtasn1-4.7: 100%
[63/105] Installing inputproto-2.3.1...
[63/105] Extracting inputproto-2.3.1: 100%
[64/105] Installing jpeg-turbo-1.4.1...
[64/105] Extracting jpeg-turbo-1.4.1: 100%
[65/105] Installing jbigkit-2.1_1...
[65/105] Extracting jbigkit-2.1_1: 100%
[66/105] Installing libXt-1.1.4_3,1...
[66/105] Extracting libXt-1.1.4_3,1: 100%
[67/105] Installing libXft-2.3.2_1...
[67/105] Extracting libXft-2.3.2_1: 100%
[68/105] Installing xorg-fonts-truetype-7.7_1...
[69/105] Installing harfbuzz-1.0.1...
[69/105] Extracting harfbuzz-1.0.1: 100%
[70/105] Installing xineramaproto-1.2.1...
[70/105] Extracting xineramaproto-1.2.1: 100%
[71/105] Installing libgpg-error-1.20...
[71/105] Extracting libgpg-error-1.20: 100%
[72/105] Installing nettle-2.7.1...
[72/105] Extracting nettle-2.7.1: 100%
[73/105] Installing p11-kit-0.23.1_1...
[73/105] Extracting p11-kit-0.23.1_1: 100%
[74/105] Installing trousers-tddl-0.3.10_7...
===> Creating users and/or groups.
Using existing group '_tss'.
Using existing user '_tss'.
[74/105] Extracting trousers-tddl-0.3.10_7: 100%
[75/105] Installing libidn-1.31...
[75/105] Extracting libidn-1.31: 100%
[76/105] Installing compositeproto-0.4.2...
[76/105] Extracting compositeproto-0.4.2: 100%
[77/105] Installing libXi-1.7.4_1,1...
[77/105] Extracting libXi-1.7.4_1,1: 100%
[78/105] Installing randrproto-1.4.1...
[78/105] Extracting randrproto-1.4.1: 100%
[79/105] Installing jasper-1.900.1_15...
[79/105] Extracting jasper-1.900.1_15: 100%
[80/105] Installing tiff-4.0.4...
[80/105] Extracting tiff-4.0.4: 100%
[81/105] Installing pango-1.36.8_2...
[81/105] Extracting pango-1.36.8_2: 100%
[82/105] Installing libXinerama-1.1.3_3,1...
[82/105] Extracting libXinerama-1.1.3_3,1: 100%
[83/105] Installing hicolor-icon-theme-0.15...
[83/105] Extracting hicolor-icon-theme-0.15: 100%
[84/105] Installing libgcrypt-1.6.3...
[84/105] Extracting libgcrypt-1.6.3: 100%
[85/105] Installing gnutls-3.3.17.1...
[85/105] Extracting gnutls-3.3.17.1: 100%
[86/105] Installing mDNSResponder-567...
[86/105] Extracting mDNSResponder-567: 100%
[87/105] Installing python2-2_3...
[87/105] Extracting python2-2_3: 100%
[88/105] Installing libXcursor-1.1.14_3...
[88/105] Extracting libXcursor-1.1.14_3: 100%
[89/105] Installing libXcomposite-0.4.4_3,1...
[89/105] Extracting libXcomposite-0.4.4_3,1: 100%
[90/105] Installing atk-2.16.0...
[90/105] Extracting atk-2.16.0: 100%
[91/105] Installing libXrandr-1.4.2_3...
[91/105] Extracting libXrandr-1.4.2_3: 100%
[92/105] Installing gdk-pixbuf2-2.32.1...
[92/105] Extracting gdk-pixbuf2-2.32.1: 100%
[93/105] Installing shared-mime-info-1.4...
[93/105] Extracting shared-mime-info-1.4: 100%
[94/105] Installing cups-client-2.0.3_2...
===> Creating users and/or groups.
Creating group 'cups' with gid '193'.
Creating user 'cups' with uid '193'.
[94/105] Extracting cups-client-2.0.3_2: 100%
[95/105] Installing gtk-update-icon-cache-2.24.28...
[95/105] Extracting gtk-update-icon-cache-2.24.28: 100%
[96/105] Installing python-2.7_2,2...
[96/105] Extracting python-2.7_2,2: 100%
[97/105] Installing libyaml-0.1.6_2...
[97/105] Extracting libyaml-0.1.6_2: 100%
[98/105] Installing libXpm-3.5.11_4...
[98/105] Extracting libXpm-3.5.11_4: 100%
[99/105] Installing cscope-15.8b...
[99/105] Extracting cscope-15.8b: 100%
[100/105] Installing gtk2-2.24.28_1...
[100/105] Extracting gtk2-2.24.28_1: 100%
[101/105] Installing lua52-5.2.4...
[101/105] Extracting lua52-5.2.4: 100%
[102/105] Installing ruby-2.1.7,1...
[102/105] Extracting ruby-2.1.7,1: 100%
[103/105] Installing tcl86-8.6.4...
[103/105] Extracting tcl86-8.6.4: 100%
[104/105] Installing ctags-5.8...
[104/105] Extracting ctags-5.8: 100%
[105/105] Installing vim-7.4.884...
[105/105] Extracting vim-7.4.884: 100%
Message from python27-2.7.10_1:
===========================================================================

Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

bsddb           databases/py-bsddb
gdbm            databases/py-gdbm
sqlite3         databases/py-sqlite3
tkinter         x11-toolkits/py-tkinter

===========================================================================
Message from perl5-5.20.3_8:
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
Message from dejavu-2.35:
Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of your X Windows configuration file:

        Load "freetype"

Add the following line to the "Files" section of X Windows configuration file:

        FontPath "/usr/local/share/fonts/dejavu/"

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
Message from ca_root_nss-3.20.1:
********************************* WARNING *********************************

FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.

*********************************** NOTE **********************************

This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem

***************************************************************************
Message from trousers-tddl-0.3.10_7:
To run tcsd automatically, add the following line to /etc/rc.conf

tcsd_enable="YES"

You might want to edit /usr/local/etc/tcsd.conf to reflect your setup.

To use TPM, add your_account to '_tss' group like following:

# pw groupadd _tss -m your_account
Message from ruby-2.1.7,1:
====
Some of the standard commands are provided as separate ports for ease
of upgrading:

        devel/ruby-gems:        gem - RubyGems package manager
        devel/rubygem-rake:     rake - Ruby Make

And some of the standard libraries are provided as separate ports
since they require extra dependencies:

        databases/ruby-gdbm:    GDBM module

Install them as occasion demands.
====
Message from ctags-5.8:
**************************************************************************
The executable for Exuberant CTAGS is installed as /usr/local/bin/exctags
**************************************************************************

Leave a Reply

Your email address will not be published.