function! Foo() if l:something let foo = 1 endif echom foo . 'bar' endfunction " vim: ts=4 sw=4 et