Vimrc Configuration When using vim to edit Horde source files, the following .vimrc commands may be useful:

# Highlight whitespace at the end of a line
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/

# Tabs = 4 spaces in Horde
set tabstop=4
set shiftwidth=4
set expandtab

# Auto-indent
set ai

# Source files should be in UTF-8
set encoding=utf-8

# Map  to remove all trailing whitespace
:nnoremap   :let _s=@/:%s/\s\+$//e:let @/=_s:nohl