Common

Some useful intersting features.

Ranger

A command to open ranger to navigate in the file system. Ranger is a file with Vim key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. Ranger must be installed for this command to work. For Debian and derivatives:

You have you have two possibility. Call the command or use the mapping.

With the command:

:Ranger

With the mapping:

<leader>r

Not required if you do not want to use.

Get update

To get the latest version, you have two possibility. Call the command or use the mapping.

With the command:

:GetUpdateVimMahewinRepository

With the mapping:

<leader>u

It takes the master version of git repository.

Create Git Branch

A function to create a local branch, you have two possibility. Call the command or use the mapping.

:Create_git_branch

With the mapping:

<leader>gbc

It uses the option -b from checkout is therefore moves in the branch created. The command use stash to be sure the repository is clean before create the new branch. Can take two parameters the first one is the name of the branch to create the other one is the branch on must be based.

Remove All Git Branch

A function to remove all local branch if it’s merged on master. If the branch exist on the remote it was also delete in the remote. Call the command or use the mapping.

:RemoveAllGitBranch

With the mappingL

<leader>gbd

If the branch exist on the remote it was also delete in the remote.