Skip to content

Commit

Permalink
Merge pull request #913 from HarithaIBM/main
Browse files Browse the repository at this point in the history
Added vim-airline and vim-airline-themes info in the doc
  • Loading branch information
IgorTodorovskiIBM authored Nov 20, 2024
2 parents 4b95434 + a91b6b4 commit ef71d5d
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 6 deletions.
11 changes: 9 additions & 2 deletions bin/zopen-install
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ startGPGAgent()
if ps -ef | grep -v grep | grep "gpg-agent" > /dev/null; then
printInfo "gpg-agent started successfully."
else
printError "Failed to start gpg-agent. Install GPG using \"zopen install gpg -y\" command."
printWarning "Failed to start the gpg-agent. Reinstall or upgrade GPG using \"zopen install --reinstall gpg -y\" or \"zopen upgrade gpg -y\" command."
fi
}

Expand Down Expand Up @@ -60,7 +60,9 @@ verifySignatureOfPax()
PUBLIC_KEY_FILE="$zopen_tmp_dir/scriptpubkey.$LOGNAME.$$.asc"
printf "%b" "$SIGNATURE" | tr -d '"' > "$SIGNATURE_FILE"
printf "%b" "$PUBLIC_KEY" | tr -d '"' > "$PUBLIC_KEY_FILE"

startGPGAgent

printVerbose "Importing public key..."
[ -f "$PUBLIC_KEY_FILE" ] && gpg --no-default-keyring --keyring "$TMP_GPG_DIR/pubring.kbx" --batch --yes --import "$PUBLIC_KEY_FILE"
if [ $? -ne 0 ]; then
Expand Down Expand Up @@ -471,7 +473,12 @@ handlePackageInstall()
is_greater=$(echo "$metadataVersion > 0.1" | bc -l)

if [ "$is_greater" -eq 1 ] && ! $skipverify; then
verifySignatureOfPax
if ! command -v gpg> /dev/null; then
skipverify=false;
printWarning "GPG is not installed"
else
verifySignatureOfPax
fi
fi
if ! runLogProgress "pax -rf ${pax} -p p ${paxredirect} ${redirectToDevNull}" "Expanding ${pax}" "Expanded"; then
printWarning "Errors unpaxing, package directory state unknown."
Expand Down
56 changes: 52 additions & 4 deletions docs/Guides/VimOnZOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ This configuration tells vim-plug to manage plugins and specifies vim-gnupg as a

#### Plugins for GPG

Add the following in .vimrc file between plu#begin and plug#end:
Add the following in .vimrc file between plug#begin and plug#end:

> " Install the vim-gnupg plugin <br/>
> Plug 'jamessan/vim-gnupg'
Expand All @@ -123,10 +123,49 @@ When you save the file, vim-gnupg will automatically encrypt it
> vim secretfile.gpg

#### vim-airline
vim-airline is a lightweight status/tabline plugin for Vim. It replaces the standard status line with a more aesthetically pleasing and feature-rich status line. It provides essential information like the current file, line number, file encoding, file type, and Git branch in a minimalistic and visually appealing manner.

#### vim-airline-themes
vim-airline-themes is a companion plugin to vim-airline that offers a variety of themes to customize the appearance of the status line. This plugin makes it easy to switch themes to match your preferred color scheme or to enhance your coding environment's visual appeal.


Add the following in .vimrc file between plug#begin and plug#end:

> " Install the airline plugin<br/>
> Plug 'vim-airline/vim-airline'<br/><br/>
> " Install the airline-themes plugin<br/>
> Plug 'vim-airline/vim-airline-themes'
#### Install vim-airline & vim-airline-themes Plugin

After saving the .vimrc file, open Vim and run the following command to install the plugins

> :PlugInstall
For more details on Airline and Airline-themes, visit https://github.com/vim-airline/vim-airline & https://github.com/vim-airline/vim-airline-themes.

#### Tagbar
Tagbar is a source code browsing tool that displays the outline of the code currently open in a Vim window. It leverages the ctags utility to generate tags—indexed elements in your code—allowing for efficient and quick navigation. Tagbar’s sidebar acts like a visual table of contents, making it simple to locate specific code segments without scrolling or searching manually.


Add the following in .vimrc file between plug#begin and plug#end:

> " Install the Tagbar plugin<br/>
> Plug 'preservim/tagbar'
#### Install Tagbar Plugin

After saving the .vimrc file, open Vim and run the following command to install the plugins

> :PlugInstall
For more details on Tagbar, visit https://github.com/preservim/tagbar.

#### NERDTree
In addition to cscope and ctags, VIM users on z/OS may also want to consider using NERDTree, a plugin that allows users to view and navigate the directory structure of a codebase. This can be useful for quickly switching between files and folders, and is especially useful for working with large codebases that have many different directories and files.

Add the following in .vimrc file between plu#begin and plug#end:
Add the following in .vimrc file between plug#begin and plug#end:

> " Install the NERDTree plugin<br/>
> Plug 'preservim/nerdtree'
Expand All @@ -149,7 +188,7 @@ To quote [its README](https://github.com/tpope/vim-fugitive?tab=readme-ov-file#f
This plugin allows VIM users on z/OS to interact with Git repositories directly from within the editor. This can be incredibly useful for managing code changes and collaborating with other developers, as it allows users to easily manage branches, commit changes, and push code to remote repositories.

Add the following in .vimrc file between plu#begin and plug#end:
Add the following in .vimrc file between plug#begin and plug#end:

> " Install the Fugitive plugin<br/>
> Plug 'tpope/vim-fugitive'
Expand All @@ -166,7 +205,7 @@ For more details on vim-fugitive, visit [https://github.com/tpope/vim-fugitive](

> A Vim plugin which shows a git diff in the sign column. It shows which lines have been added, modified, or removed. You can also preview, stage, and undo individual hunks; and stage partial hunks. The plugin also provides a hunk text object.
Add the following in .vimrc file between plu#begin and plug#end:
Add the following in .vimrc file between plug#begin and plug#end:

> " Install the gitgutter plugin <br/>
> Plug 'airblade/vim-gitgutter'
Expand All @@ -187,6 +226,9 @@ For more details on vim-gitgutter, visit https://github.com/airblade/vim-gitgutt
> " Install the vim-gnupg plugin<br/>
> Plug 'jamessan/vim-gnupg'<br/><br/>
>
> " Install the Tagbar plugin<br/>
> Plug 'preservim/tagbar'<br/><br/>
>
> " Install the NERDTree plugin<br/>
> Plug 'preservim/nerdtree'<br/><br/>
>
Expand All @@ -196,6 +238,12 @@ For more details on vim-gitgutter, visit https://github.com/airblade/vim-gitgutt
> " Install the gitgutter plugin<br/>
> Plug 'airblade/vim-gitgutter'<br/><br/>
>
> " Install the airline plugin<br/>
> Plug 'vim-airline/vim-airline'<br/><br/>
>
> " Install the airline-themes plugin<br/>
> Plug 'vim-airline/vim-airline-themes'<br/><br/>
>
> " Initialize plugin system<br/>
> call plug#end()

0 comments on commit ef71d5d

Please sign in to comment.