X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/aa0735dc4bc63a16bc18f8027d42accfcaf57b01..82b9ea0aee24ef8542719076bb166b169f58a46f:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 4d72ff3..0e533cf 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -653,6 +653,7 @@ if executable('ag') let g:unite_source_rec_async_command = 'ag --follow --nocolor --nogroup --hidden -g ""' end nnoremap [unite]f :Unite -start-insert file_rec/async +call unite#custom#source('file_rec/async', 'sorters', 'sorter_selecta') " unite-buffer {{{3 call unite#custom#default_action('buffer', 'open') @@ -735,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]