P
pramitkumarpal
Guest
I am on
FreeBSD 10.2-RELEASE-p14 FreeBSD 10.2-RELEASE-p14 #0: Wed Mar 16 20:46:12 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Installed vim through pkg install vim.
My Current shell is:
My .profile file is edited as below:
After rebooting also when I use $EDITOR same old vi opens.
Help required on how to set the shell to open vim when I use vi command.
Note:
I am coming from ubuntu
where the following happens:
1. By default only vi is installed.
2. Then when I install vim
3. And run vi
4. vim opens by default.
FreeBSD 10.2-RELEASE-p14 FreeBSD 10.2-RELEASE-p14 #0: Wed Mar 16 20:46:12 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Installed vim through pkg install vim.
My Current shell is:
Code:
$ echo $SHELL
/usr/local/bin/bash
My .profile file is edited as below:
Code:
$ vim .profile
# $FreeBSD: releng/10.2/share/skel/dot.profile 266029 2014-05-14 15:23:06Z bdrewery $
#
# .profile - Bourne Shell startup script for login shells
#
# see also sh(1), environ(7).
#
# These are normally set through /etc/login.conf. You may override them here
# if wanted.
# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH
# BLOCKSIZE=K; export BLOCKSIZE
# Setting TERM is normally done through /etc/ttys. Do only override
# if you're sure that you'll never log in via telnet or xterm or a
# serial line.
# TERM=xterm; export TERM
EDITOR=vim; export EDITOR
PAGER=more; export PAGER
# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV
if [ -x /usr/games/fortune ] ; then /usr/games/fortune freebsd-tips ; fi
After rebooting also when I use $EDITOR same old vi opens.
Help required on how to set the shell to open vim when I use vi command.
Note:
I am coming from ubuntu
where the following happens:
1. By default only vi is installed.
2. Then when I install vim
3. And run vi
4. vim opens by default.