Skip to content


Subversion checkout URL

You can clone with
Download ZIP


David Persson edited this page · 2 revisions

This page provides information for integrating Lithium with your favourite editor. This list of editors is ordered by pref.. alphabetically.


Lithium Color Scheme for Komodo


PhpStorm settings, instructions and information can be found at in the lithium_phpstorm project.


Full integration with TextMate is provided through lithium_textmate.


As per current published Lithium code standards:


Here are some useful lines to add to ~/.vimrc to ensure compliance:

{{{ " Lithium configuration "-- Encoding set fileencodings=utf-8

"-- Indentation set tabstop=4 set shiftwidth=4 set softtabstop=4 set autoindent set noexpandtab

"-- Show whitespace chars set listchars=tab:?\ ,trail:?,extends:>,precedes:< set list

"-- Highlight long lines (soft limit: 80, hard limit: 100) :au BufWinEnter .php,.py let w:m1=matchadd('Search', '\%80v', -1) :au BufWinEnter .php,.py let w:m2=matchadd('ErrorMsg', '\%>100v.+', -1)

"-- Remove trailing whitespaces from lines autocmd FileType php autocmd BufWritePre :call setline(1,map(getline(1,"$"),'substitute(v:val,"\s\+$","","")'))

"-- Press F5 to Clean Current Buffer "-- (i.e., 2-spaces become tabs, end-line whitespace trimmed) nnoremap :let _s=@/:%s/\s+$//e:%s/ /\t/eg:let @/=_s:nohl

"-- No eols :autocmd BufWritePre *.php setlocal binary :autocmd BufWritePre *.php setlocal noeol :autocmd BufWritePost *.php setlocal nobinary }}}

NOTICE: CakeMate is a 2-in-1 CakePHP shell and VIM plugin. Would be nice if someone were interested in porting to Lithium. (

Something went wrong with that request. Please try again.