Freelance Projects

Upeksha Wisidagama

Vim PowerLine

Vim is the editor I use for my day to day text editing tasks.

Powerline Mode Indicator

Vim Powerline plugin can show the ‘mode information’ on the powerline.

Normal Mode

Vim Powerline Normal

Insert Mode

Vim Powerline Insert

Visual Line Mode

Vim Powerline Visual Line

Visual Block Mode

Vim Powerline Visual Block

Powerline Git Branch Indicator

The above screens show we are working on the ‘Master’ branch. Let’s create and new branch called ‘Upeksha’ and checkout it.

Powerline Create Branch

Now the Git Branch Indicator shows the ‘Upeksha’ branch.

Powerline Upeksha Branch

How to install Powerline

1 – First, Install the Powerline plugin.

‘Installing Powerline Plugin’
1
2
cd ~/.vim/bundle
git clone https://github.com/Lokaltog/vim-powerline.git

2 – Next, install the Powerline fonts.

‘Installing Powerline Fonts’
1
2
3
mkdir ~/.fonts
cd ~/.fonts/
git clone https://github.com/scotu/ubuntu-mono-powerline.git

3 – Finally, configure your Vim instance.

‘Powerline Vim Configuration - .vimrc’
1
2
3
4
5
6
7
8
" Vim Powerline
let g:Powerline_symbols = 'fancy'

" Automatically delete buffers when browsing git history/objects.
au BufReadPost fugitive://* set bufhidden=delete

" Optional Setting
set t_Co=256