Table of Contents

How can I

vertical alignment of columns

show line endings

change the encoding to utf-8

:set fileencoding=utf8
:w myfilename

Ref:- https://stackoverflow.com/questions/9310274/how-can-i-use-vim-to-convert-my-file-to-utf8

insert newline in search and replace

%s/29/\r29/gc

will insert a new line before each occurrence of 29.

join lines with a character

nmap J :s/\n/, /^M

Preprocess files before diffing them

tags | vimdiff, sort

Ref:- http://vi.stackexchange.com/questions/104/how-can-i-see-the-full-path-of-the-current-file