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:
parent
961cc0df66
commit
1987df7995
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue