guillermooo / Vintageous

Vi/Vim emulation for Sublime Text 3
http://guillermooo.bitbucket.org/Vintageous/
Other
1.64k stars 115 forks source link

Vintageous modifications #976

Closed pizchen closed 9 years ago

pizchen commented 9 years ago

Hello,

Based on my usage of VIM, I always used following commands:

:'a, 'b m . :'a, 'b co . :'a, 'b s/sometext/newtext/

But currenlty the Vintageous only support moving or copying a block when they are selected (highlighted) in sublime. So I added code to support resolving marks like above to enable above commands for moving and copying a block.

And, for substitution, normally in VIM it is per line replacement. However in Vintageous it is currently region based. Therefore I also added code to make it a line based action.

For 'dd' command, in VIM it is saving the deleted line(s) into the register '1', Vintageous currently only saved it in register '"'. Hence I modified the default register to be '1', so this saving behavior will be consistent with VIM.

And I'm also using 'r' command a lot for reading in a normal file, I see it is not implented yet so I also tried to implement that as well.

Thanks, Piz

guillermooo commented 9 years ago

Thanks for the PR. Please split these changes into separate PRs. They are too unrelated.