
Line numbers are no copied with Gvim (Kvim); of course if you're using bare vim in console or terminal... you have no chance at all.iarwain wrote:1) I have line numbers enabled. If I want to copy a piece of code and paste it in another place, the line numbers are also copied. I mean, I can't select the text without the line numbers.
Paste this in your ~/.vimrc:2) If I am at the beginning of a line and I press left-arrow button, it does nothing. it remains at the beginning of the same line. I'd like it to go to the end of the previous line.
Code: Select all
set ww=b,s,<,>,[,],~OK, I'll be switch to gvim.sfragis wrote: Line numbers are no copied with Gvim (Kvim); of course if you're using bare vim in console or terminal... you have no chance at all.
To enable line numbers for Gvim only, paste "set number" in ~/.gvimrc.
That did the trick.sfragis wrote: Paste this in your ~/.vimrc:Code: Select all
set ww=b,s,<,>,[,],~

Are you sure it's vim and not gvim?Aidy wrote:...
selecting lines without numbers works fine here in vim
I have another problem though, I can't copy paste from vim to other applications.
Thank you for the hint, it worked.sfragis wrote: You have to customize the statusline variable, type "<ESC>:help statusline" (w/o doublequotes) from within vim to get the relative help page, there's plenty of options. Also a "grep statusline" among Cream's sources may be helpful.

Code: Select all
source $VIMRUNTIME/mswin.vim OF COURSE I'M SUREiarwain wrote:Are you sure it's vim and not gvim?Aidy wrote:...
selecting lines without numbers works fine here in vim
I have another problem though, I can't copy paste from vim to other applications.Thank you for the hint, it worked.sfragis wrote: You have to customize the statusline variable, type "<ESC>:help statusline" (w/o doublequotes) from within vim to get the relative help page, there's plenty of options. Also a "grep statusline" among Cream's sources may be helpful.

iarwain wrote:Sorry for the question, I just wanted to be sure. Could you post the relevant .vimrc snippet please?
Code: Select all
adriaan@mellotron ~ $ cat ~/.vimrc
:syntax enable
:set number
:set ruler
:set mouse:a
:set scrolloff=3
:set smartindent

Ha! lolUh, instead of using that mswin.vim crap, you could just learn to use vim properly... "+y to copy to the X clipboard
Pfff. Vim 7 has context-aware code completion for Ruby.transienteagle wrote:Its very good to know that you are still around and banging the drum for vim, which, incidentally, I still think is best suited for hairy chested C programming types rather than us svelte ruby types.

Just upgraded a couple of days ago to 7 and have just tried out the code completion following your comment above ........Its neat......to say the least.Pfff. Vim 7 has context-aware code completion for Ruby.