How to install VIM enhanced on Fedora Linux 29

last updated in Categories , ,

My Fedora Linux workstation shipped with vi commands. The default vi provides no syntax-highlighting for opened files, by default on Fedora Linux 29. It works like the original vi editor. How do I install an enhanced version of vim that provides syntax-highlighting on Fedora Linux 29?

How to access/view Python help when using vim

last updated in Categories , , ,

I am a new Vim text editor user. I am writing Python code. Is there is a way to see Python documentation within vim and without visiting the Internet? Say my cursor is under the print Python keyword, and I press F1. I want to look at the help for the print keyword. How do I show python help() inside vim? How do I call pydoc3/pydoc to seek help without leaving vim?
Continue reading “How to access/view Python help when using vim”

Ubuntu Linux: Install vim Text Editor

last updated in Categories , ,

I recently switched from OS X to Ubuntu. When I run the ‘vim file.c’ command at terminal, I see an error message that read as follows:

The program ‘vim’ can be found in the following packages:
* vim
* vim-gnome

* vim-tiny
* vim-athena
* vim-gtk
* vim-nox
Try: apt-get install <selected package>

How do I fix this problem and why vim is not a default text editor on Ubuntu Linux? How can I install full-fledged vim text editor in Ubuntu Linux?