Archive for the ‘vim’ Category
Add Gedit Plugins
Fedora comes with vim
and gedit
installed but the gedit
installation is bare bones. You can update gedit
to include supplemental Plug-ins with the following yum
command as the root
user:
yum install -y gedit-plugins |
It generates the following log file:
Loaded plugins: langpacks, refresh-packagekit mysql-connectors-community | 2.5 kB 00:00 mysql-tools-community | 2.5 kB 00:00 mysql56-community | 2.5 kB 00:00 pgdg93 | 3.6 kB 00:00 updates/20/x86_64/metalink | 14 kB 00:00 updates | 4.9 kB 00:00 (1/2): pgdg93/20/x86_64/primary_db | 86 kB 00:00 (2/2): updates/20/x86_64/primary_db | 11 MB 00:03 (1/2): updates/20/x86_64/pkgtags | 1.5 MB 00:00 (2/2): updates/20/x86_64/updateinfo | 2.0 MB 00:01 Resolving Dependencies --> Running transaction check ---> Package gedit-plugins.x86_64 0:3.10.1-1.fc20 will be installed --> Processing Dependency: libgit2-glib for package: gedit-plugins-3.10.1-1.fc20.x86_64 --> Running transaction check ---> Package libgit2-glib.x86_64 0:0.0.6-2.fc20 will be installed --> Processing Dependency: libgit2.so.0()(64bit) for package: libgit2-glib-0.0.6-2.fc20.x86_64 --> Running transaction check ---> Package libgit2.x86_64 0:0.19.0-2.fc20 will be installed --> Processing Dependency: libxdiff.so.1()(64bit) for package: libgit2-0.19.0-2.fc20.x86_64 --> Processing Dependency: libhttp_parser.so.2()(64bit) for package: libgit2-0.19.0-2.fc20.x86_64 --> Running transaction check ---> Package http-parser.x86_64 0:2.0-5.20121128gitcd01361.fc20 will be installed ---> Package libxdiff.x86_64 0:1.0-3.fc20 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: gedit-plugins x86_64 3.10.1-1.fc20 updates 830 k Installing for dependencies: http-parser x86_64 2.0-5.20121128gitcd01361.fc20 fedora 23 k libgit2 x86_64 0.19.0-2.fc20 fedora 281 k libgit2-glib x86_64 0.0.6-2.fc20 fedora 82 k libxdiff x86_64 1.0-3.fc20 fedora 33 k Transaction Summary ================================================================================ Install 1 Package (+4 Dependent packages) Total download size: 1.2 M Installed size: 5.2 M Downloading packages: (1/5): http-parser-2.0-5.20121128gitcd01361.fc20.x86_64.rpm | 23 kB 00:00 (2/5): libgit2-0.19.0-2.fc20.x86_64.rpm | 281 kB 00:00 (3/5): libgit2-glib-0.0.6-2.fc20.x86_64.rpm | 82 kB 00:00 (4/5): libxdiff-1.0-3.fc20.x86_64.rpm | 33 kB 00:00 (5/5): gedit-plugins-3.10.1-1.fc20.x86_64.rpm | 830 kB 00:01 -------------------------------------------------------------------------------- Total 899 kB/s | 1.2 MB 00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction (shutdown inhibited) Installing : libxdiff-1.0-3.fc20.x86_64 1/5 Installing : http-parser-2.0-5.20121128gitcd01361.fc20.x86_64 2/5 Installing : libgit2-0.19.0-2.fc20.x86_64 3/5 Installing : libgit2-glib-0.0.6-2.fc20.x86_64 4/5 Installing : gedit-plugins-3.10.1-1.fc20.x86_64 5/5 Verifying : libgit2-0.19.0-2.fc20.x86_64 1/5 Verifying : libgit2-glib-0.0.6-2.fc20.x86_64 2/5 Verifying : gedit-plugins-3.10.1-1.fc20.x86_64 3/5 Verifying : http-parser-2.0-5.20121128gitcd01361.fc20.x86_64 4/5 Verifying : libxdiff-1.0-3.fc20.x86_64 5/5 Installed: gedit-plugins.x86_64 0:3.10.1-1.fc20 Dependency Installed: http-parser.x86_64 0:2.0-5.20121128gitcd01361.fc20 libgit2.x86_64 0:0.19.0-2.fc20 libgit2-glib.x86_64 0:0.0.6-2.fc20 libxdiff.x86_64 0:1.0-3.fc20 Complete! |
When you launch the gedit
utility, you click on the
Gedit Plug-in Installation
- After you install the Gedit Plug-ins, you can configure the plug-ins by launching Gedit and then click on the
gedit
menu option. Then, click on the Preferences menu option to enable the new plugins, like the Embedded Terminal plug-in.
- You have four tab options when working with the Preferences menu. The first tab is the View tab, as shown to the left.
- The second tab is the Editor tab, as shown to the left.
- The third tab is the Font & Colors tab, as shown to the left.
- The fourth tab is the Plugins tab, as shown to the left. Scroll down the list and check the Embedded Terminal and Python Console plug-ins’ checkbox. The Embedded Terminal lets you edit a file and have command line access to a Terminal session from the
gedit
menu; and the Python Console session from thegedit
menu.
- Click on the View menu, and then choose the Bottom Panel menu option.
- After enabling the Bottom Panel in the Gedit menu, you can edit a file and click on the Terminal by simply clicking on the subpanel. You can see the split image on the left. There’s also a set of bottom tabs that lets you switch from a Linux Terminal session to the Python console.
As always, I hope this helps those working with gedit
on the Fedora operating system.
Add Color to VIM?
In Fedora 20, documents have no color coding when you edit them with vi
or vim
. That’s because Fedora installs vim-minimal
by default. You can check what’s running with the following command at a shell prompt in the terminal:
rpm -qa | grep vim |
It should print the following to console:
vim-minimal-7.4.179-1.fc20.x86_64 |
You can download and install vim
with the enhanced version by using the following syntax:
sudo yum install vim-enhanced |
Loaded plugins: langpacks, refresh-packagekit Resolving Dependencies --> Running transaction check ---> Package vim-enhanced.x86_64 2:7.4.417-1.fc20 will be installed --> Processing Dependency: vim-common = 2:7.4.417-1.fc20 for package: 2:vim-enhanced-7.4.417-1.fc20.x86_64 --> Processing Dependency: libgpm.so.2()(64bit) for package: 2:vim-enhanced-7.4.417-1.fc20.x86_64 --> Running transaction check ---> Package gpm-libs.x86_64 0:1.20.7-3.fc20 will be installed ---> Package vim-common.x86_64 2:7.4.417-1.fc20 will be installed --> Processing Dependency: vim-filesystem for package: 2:vim-common-7.4.417-1.fc20.x86_64 --> Running transaction check ---> Package vim-filesystem.x86_64 2:7.4.417-1.fc20 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: vim-enhanced x86_64 2:7.4.417-1.fc20 updates 1.0 M Installing for dependencies: gpm-libs x86_64 1.20.7-3.fc20 fedora 32 k vim-common x86_64 2:7.4.417-1.fc20 updates 5.9 M vim-filesystem x86_64 2:7.4.417-1.fc20 updates 11 k Transaction Summary ================================================================================ Install 1 Package (+3 Dependent packages) Total download size: 7.0 M Installed size: 23 M Is this ok [y/d/N]: y Downloading packages: (1/4): gpm-libs-1.20.7-3.fc20.x86_64.rpm | 32 kB 00:00 (2/4): vim-enhanced-7.4.417-1.fc20.x86_64.rpm | 1.0 MB 00:03 (3/4): vim-filesystem-7.4.417-1.fc20.x86_64.rpm | 11 kB 00:03 (4/4): vim-common-7.4.417-1.fc20.x86_64.rpm | 5.9 MB 00:05 -------------------------------------------------------------------------------- Total 1.3 MB/s | 7.0 MB 00:05 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 2:vim-filesystem-7.4.417-1.fc20.x86_64 1/4 Installing : 2:vim-common-7.4.417-1.fc20.x86_64 2/4 Installing : gpm-libs-1.20.7-3.fc20.x86_64 3/4 Installing : 2:vim-enhanced-7.4.417-1.fc20.x86_64 4/4 Verifying : gpm-libs-1.20.7-3.fc20.x86_64 1/4 Verifying : 2:vim-common-7.4.417-1.fc20.x86_64 2/4 Verifying : 2:vim-enhanced-7.4.417-1.fc20.x86_64 3/4 Verifying : 2:vim-filesystem-7.4.417-1.fc20.x86_64 4/4 Installed: vim-enhanced.x86_64 2:7.4.417-1.fc20 Dependency Installed: gpm-libs.x86_64 0:1.20.7-3.fc20 vim-common.x86_64 2:7.4.417-1.fc20 vim-filesystem.x86_64 2:7.4.417-1.fc20 Complete! |
You can now type vim
to edit files in color but vi
will still be in black and white.