Fix sorting within neovim

I've a custom function SortParagraph mapped to a key binding.
This sorted different then php-cs-fixer.
I've switched from neovim built-in sort to command line sort of gnuutils
which sorts the same expected way by default.

This is done by not calling a neovim command but command line program
via "!".
This commit is contained in:
Daniel Siepmann 2022-08-22 11:09:35 +02:00
parent 961cc0df66
commit 1987df7995
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -73,7 +73,7 @@ function! Reg()
endfunction
function! SortParagraph()
execute ":normal! vip:'<,'>sort\<esc>"
execute ":normal! vip:'<,'>!sort\<esc>"
endfunction
" Generate .. _: anchor for headline. Cursor have to be on line with headline.