3 ms·
> Is there a way how I can copy blocks of code outside the vim window to another application without also copying the line numbers? If you're running vim in a
by justusw 11y ago
> Is there a way how I can copy blocks of code outside the vim window to another application without also copying the line numbers?
If you're running vim in a terminal, there is an option to add native clipboard support to your yank registers. If you use vim under OS X and have installed it with brew, it will be added automatically.
To check whether your current vim installation has clipboard support, try running `vim --version | grep +clipboard`.
You might also find this to be helpful: http://vimcasts.org/blog/2013/11/getting-vim-with-clipboard-support/ http://vimcasts.org/blog/2013/11/getting-vim-with-clipboard-...
- dockerlocker 11y agoa good example for a stupid limitation and the enprmous waste of brian power just for a very simple thing. Have to start studying and doing real research for the most simple features. Waste!
- mbrock 11y agoSo fix it permanently or stop complaining?
- robenkleene 11y agoIdeally, Vim is a tool you'll be able to use for the rest of your life, so an upfront cost in learning it is a cost that becomes small when measured against the time scale of your career. Furthermore, Vim needs to be setup and is configurable because it existed before many computer usage patterns had been standardized that we take for granted now (e.g., Vim's cut and paste system is different than any current big name operating systems). But the very fact that Vim pre-dates these paradigms, and continues to be used despite the extra work it requires to get past that, this very fact is what makes it more likely that you'll be able to continue using it indefinitely. I.e., Vim will survive the next paradigm shift, because it survived the last one. If you really want to be careful about investing in learning a tool, the ones you should be careful about are the ones that have not survived a paradigm shift yet. (Photoshop is great example of a dangerous skill investment in my opinion, Photoshop takes an extraordinary amount of muscle memory to use effectively and it hasn't yet survived a paradigm shift. Those skills look poised to become completely obselete by touch-based design tools soon, 5-10 years from now. Not saying I have an better idea, because Photoshop is still probably the best tool for doing that type of work, but just plan on throwing everything you learn away.)