Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Aug 19, 2017 2:44 am


System administration, processes administration, jobs, cron, resources, limits, shells, ssh, telnet.

Author Message
mandrei99
Post  Post subject: Change default editor to VI in Debian Linux  |  Posted: Fri Jan 16, 2015 6:59 pm

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

Change default editor to VI in Debian Linux

Debian (and probably other distros) comes with NANO as it's default editor. For those VIM enthusiasts like me, there are two ways to change the editor:
1. Making use of EDITOR variable in /etc/profile:
Code:
# export EDITOR="vim"


2. Change VIM editor in Debian via "update-alternatives":
Code:
# update-alternatives --config editor
There are 3 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /bin/nano            40        auto mode
  1            /bin/nano            40        manual mode
  2            /usr/bin/vim.basic   30        manual mode
  3            /usr/bin/vim.tiny    10        manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/editor (editor) in manual mode





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Change default editor to VI in Debian Linux"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Vim as hex editor

mandrei99

0

649

Wed May 08, 2013 6:24 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD slow booting: Recovering vi editor sessions

mandrei99

0

1258

Wed Feb 19, 2014 4:02 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Debian persistent static route - how to make a static route persistent across reboots

mandrei99

0

7463

Sat Jan 17, 2015 7:55 pm

mandrei99 View the latest post

There are no new unread posts for this topic. How to list PCI devices in Linux - lspci

mandrei99

0

1268

Mon Jul 22, 2013 10:03 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux clear screen / terminal

mandrei99

2

4575

Wed Mar 04, 2015 8:52 am

Guest View the latest post

There are no new unread posts for this topic. Linux: List kernel supported filesystems

debuser

0

434

Tue Mar 10, 2015 5:45 pm

debuser View the latest post

There are no new unread posts for this topic. Linux: list block devices UUID

debuser

0

783

Tue Mar 10, 2015 5:46 pm

debuser View the latest post

There are no new unread posts for this topic. How to prevent Linux SSH client from disconnecting using ServerAliveInterval

mandrei99

0

14503

Fri Jan 09, 2015 8:26 pm

mandrei99 View the latest post

There are no new unread posts for this topic. How to print filesystem super block information in Linux

mandrei99

0

6905

Mon Jul 08, 2013 6:56 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to list the largest files in a directory in Linux/FreeBSD

mandrei99

0

536

Thu Jan 22, 2015 5:14 pm

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO