vim/.vim/commands.vim " ██ " ░░ " ██ ██ ██ ██████████ ██████ █████ " ░██ ░██░██░░██░░██░░██░░██░░█ ██░░░██ " ░░██ ░██ ░██ ░██ ░██ ░██ ░██ ░ ░██ ░░ " ░░████ ░██ ░██ ░██ ░██ ░██ ░██ ██ " ░░██ ░██ ███ ░██ ░██░███ ░░█████ " ░░ ░░ ░░░ ░░ ░░ ░░░ ░░░░░ " " ▓▓▓▓▓▓▓▓▓▓ " ░▓ author ▓ xero <x@xero.nu> " ░▓ code ▓ http://code.xero.nu/dotfiles " ░▓ mirror ▓ http://git.io/.files " ░▓▓▓▓▓▓▓▓▓▓ " ░░░░░░░░░░ " " json pretty print function! JSONify() %!python -mjson.tool set syntax=json endfunction command J :call JSONify() " remove trailing white space command Nows :%s/\s\+$// " remove blank lines command Nobl :g/^\s*$/d " toggle spellcheck command Spell :setlocal spell! spell? " make current buffer executable command Chmodx :!chmod a+x % " let's make some textmode art! function! AsciiMode() e ++enc=cp850 set nu! set virtualedit=all set colorcolumn=80 endfunction command Ascii :call AsciiMode()