Category Archives: vim

vim justify

So, I got some text that I needed to look pretty, meaning all lines should be 96 chars wide but if more than 10 spaces would be needed to added in each line between words, it should remain the same… SO I looked at column, par, fmt, emacs .. then settled on vim !

mkdir ~/.vim
wget -O ~/.vim/justify.vim
echo "so ~/.vim/justify.vim" >> ~/.vimrc
shift v # this will start visual selection mode
shift g # this will put you at the end of the file
:'<,'>Justify 96 10