Tag Archives: Install the VIm editor

Raspberry PI install VIM editor


Raspberry Pi installs the ViM editor

1. Delete default VI editor
sudo apt-get remove vim-common

[setupvars.sh] OpenVINO environment initialized
pi@raspberrypi:~ $ sudo apt-get remove vim-common
Reading the package list... Finished...
Dependency tree of the package being analyzed        
Reading status information... Finished...       
The following packages were automatically installed and are no longer required.
  vim-runtime
Use 'sudo apt autoremove' to uninstall it (them).
The following packages will be [uninstalled].
  vim vim-common vim-tiny
0 packages upgraded, 0 new packages installed, 3 packages to uninstall, and 0 packages not upgraded.
After unzipping, 3,053 kB of space will be free.
Do you wish to continue? [Y/n] Y
(Reading the database ... There are currently 84686 files and directories installed on the system).
Uninstalling vim (2:8.0.0197-4+deb9u1) ...
update-alternatives: Use /usr/bin/vim.tiny to provide /usr/bin/vi (vi) in automatic mode.
update-alternatives: Use /usr/bin/vim.tiny to provide /usr/bin/view (view) in automatic mode.
update-alternatives: Use /usr/bin/vim.tiny to provide /usr/bin/ex (ex) in automatic mode.
update-alternatives: Use /usr/bin/vim.tiny to provide /usr/bin/rview (rview) in automatic mode.
Uninstalling vim-tiny (2:8.0.0197-4+deb9u1) ...
Uninstalling vim-common (2:8.0.0197-4+deb9u1) ...
Working with triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Working with triggers for gnome-menus (3.13.3-9) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
pi@raspberrypi:~ $ 

2. Install the VIm editor
sudo apt-get install vim

pi@raspberrypi:~ $ sudo apt-get install vim
Reading the package list... Finished...
Dependency tree of the package being analyzed        
Reading status information... Finished...       
The following software will be installed at the same time.
  vim-common
Recommended Installation.
  ctags vim-doc vim-scripts
The following [new] packages will be installed.
  vim vim-common
0 packages upgraded, 2 new packages installed, 0 packages to uninstall, 0 packages not upgraded.
Need to download 159 kB/949 kB of archives.
Decompression consumes 2,203 kB of extra space.
Do you wish to continue? [Y/n] Y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf vim-common all 2:8.0.0197-4+deb9u1 [159 kB]                                                
Downloaded 159 kB in 20 seconds (7,672 B/s)           
The unselected package vim-common is being selected.
(Reading database ... The system currently has 84619 files and directories installed.)
Preparing to unpack ... /vim-common_2%3a8.0.0197-4+deb9u1_all.deb ...
Unpacking vim-common (2:8.0.0197-4+deb9u1) ...
Unselected package vim is being selected.
Preparing to unpack ... /vim_2%3a8.0.0197-4+deb9u1_armhf.deb ...
Unpacking vim (2:8.0.0197-4+deb9u1) ...
Working with triggers for mime-support (3.60) ...
Working with triggers for desktop-file-utils (0.23-1) ...
Working on vim-common (2:8.0.0197-4+deb9u1) ...
Working with triggers for man-db (2.7.6.1-2) ...
Working with triggers for gnome-menus (3.13.3-9) ...
Working with triggers for hicolor-icon-theme (0.15-1) ...
Setting up vim (2:8.0.0197-4+deb9u1) ...
update-alternatives: Use /usr/bin/vim.basic to provide /usr/bin/vim (vim) in automatic mode.
update-alternatives: Use /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in automatic mode.
update-alternatives: Use /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in automatic mode.
update-alternatives: Use /usr/bin/vim.basic to provide /usr/bin/rview (rview) in automatic mode.
update-alternatives: Use /usr/bin/vim.basic to provide /usr/bin/vi (vi) in automatic mode.
update-alternatives: Use /usr/bin/vim.basic to provide /usr/bin/view (view) in automatic mode.
update-alternatives: Use /usr/bin/vim.basic to provide /usr/bin/ex (ex) in automatic mode.
pi@raspberrypi:~ $