X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/8614cffd5191962c2dc34a23f8b39ebac6fdd954..82b9ea0aee24ef8542719076bb166b169f58a46f:/vim/vimrc?ds=inline diff --git a/vim/vimrc b/vim/vimrc index 23889f1..0e533cf 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -736,6 +736,12 @@ if !exists(":DiffOrig") \ | wincmd p | diffthis endif +" sort operator {{{2 +function! SortLinesOpFunc(...) + '[,']sort +endfunction +nnoremap gs :set operatorfunc=SortLinesOpFuncg@ + " edit configs {{{2 function! EditConfig(what) let l:dir = split(&runtimepath,',')[0]