[Wiki] created: Doc/Dev/VimRC

Michael Slusarz <[email protected]>
Newsgroups gmane.comp.horde.cvs
Message-ID <[email protected]>
slusarz  Mon, 13 Jul 2009 15:59:37 -0400

Created page: http://wiki.horde.org/Doc/Dev/VimRC

+ Vimrc Configuration

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

<code>
# 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 <F5> to remove all trailing whitespace
:nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let  
@/=_s<Bar>:nohl<CR>
</code>


--
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.