- in vim, move selection text appen into a specified file
- com! -nargs=1 -range Sbak call MoveSelectedLinesToFile(<f-args>)
- fun! MoveSelectedLinesToFile(filename)
- exec "'<,'>w! >>" . a:filename
- norm gvd
- endfunc
- map <F2> :'<,'> w! >> /YOUR/SELECTIONFILE<cr>:'<,'>d<cr>