Open tildedave opened 9 years ago
ping, help requested
Some ST3 packages worth rec'ing:
Here's a simple perltidy runner that captures our req's. (I think, I'm still beta-testing at this point.)
And here is a Sublime Text 3 Build Script for running tests, compiling, tidy-ing, and building a distribution.
In vim, I hilight the lines I want to align and then type !column -t
. There is probably a better way, but that works for me.
ping @aanari has a good vim setup that I've been meaning to acquire for a long time now.
@comstud Here's how I set it up so that vim automatically aligns on =>
:
Plugin 'atsepkov/vim-tabularity'
Plugin 'godlygeek/tabular
...
inoremap => =><Esc>:call tabularity#Align('=>')<cr>a
Source: https://github.com/aanari/dotfiles/blob/master/config/vim/settings.vim#L234
Here are my visual mode and normal mode perltidy
mappings for vim as well (,pt
to perltidy the whole file or the current visual selection):
vmap <leader>pt :!perltidy<cr>
nmap <leader>pt :%! perltidy<cr>
@aanari What are your Perltidy settings? I linked some I've been testing out with Function::Parameters. Might be useful to get that out of "beta" so we can start autoformatting.
In emacs I use align-regexp
on =
but I haven't looked for any better solutions.
Are there any editor plugins we can use to easily do this? Might be good to call out in the style section. Presently I do this by hand :frowning: