Re: Replacing current line with last-yanked register

2012-10-14 Thread Marcin Szamotulski
If you yanked the line then it is still in the 0 register. You can paste from it. Though this will be four keystrokes: V"0p If you do that often you could use a map: vnoremap P "0p and then there are only two keystrokes: VP Best, Marcin On 12:38 Sun 14 Oct , Dotan Cohen wrote: > I am curr

Re: Replacing current line with last-yanked register

2012-10-14 Thread Dotan Cohen
On Sun, Oct 14, 2012 at 1:54 PM, Marcin Szamotulski wrote: > If you yanked the line then it is still in the 0 register. You can paste > from it. Though this will be four keystrokes: V"0p > > If you do that often you could use a map: > > vnoremap P "0p > > and then there are only two keystrokes: VP

Re: Replacing current line with last-yanked register

2012-10-14 Thread Marcin Szamotulski
--- Begin Message --- > Thank you Marcin. I don't want to create a map as I've already got > every short combination that is mappable mapped and used often! > > `V"0p` would be a good solution if it were repeatable with the period > character. Is there any solution which is repeatable by the perio

Re: Replacing current line with last-yanked register

2012-10-14 Thread Dotan Cohen
On Sun, Oct 14, 2012 at 3:30 PM, Marcin Szamotulski wrote: > Yes there is one, you could use C at the beginning of a line, but you > have to yank the line with y$ rather than Y (to not catch the EOL) > Explicitly you can use this: press C, now you are in the insert mode, > and press ^r0 (i.e. CTRL

Syntax highlighting in vimdiff makes stuff unreadable (Linux xterm)

2012-10-14 Thread Kevin O'Gorman
I'm running the latest Ubuntu stuff, but this problem has been around for a while. I like to use vim (not gvim) in my linux x-terminal. All is well there. However, when I use vimdiff, none of the default colorschemes is useable because much of the text is unreadable because of low contrast. They

How to highlight words which correspond to tags in a custom tag file ?

2012-10-14 Thread tjg
Suppose I have a agenda file, in which I note things to do, e.g. : 2012.10.13 write to Inc 2012.10.14 write to Gmbh etc... I want to complement this file with incremented information about these companies (quotes, articles, etc…). So, I create a tag file : .vim/doc/vimlog.txt, in which I have bot

Re: Syntax highlighting in vimdiff makes stuff unreadable (Linux xterm)

2012-10-14 Thread Gary Johnson
On 2012-10-14, Kevin O'Gorman wrote: > I'm running the latest Ubuntu stuff, but this problem has been around > for a while. > I like to use vim (not gvim) in my linux x-terminal. All is well > there. However, when I use vimdiff, none of the default colorschemes > is useable because much of the te

Re: Syntax highlighting in vimdiff makes stuff unreadable (Linux xterm)

2012-10-14 Thread Kevin O'Gorman
On Sun, Oct 14, 2012 at 10:56 AM, Gary Johnson wrote: > On 2012-10-14, Kevin O'Gorman wrote: >> I'm running the latest Ubuntu stuff, but this problem has been around >> for a while. >> I like to use vim (not gvim) in my linux x-terminal. All is well >> there. However, when I use vimdiff, none of

A new approach to Python autocompletion

2012-10-14 Thread David Halter
Hi there! I developed an autocompletion for Python: https://github.com/davidhalter/jedi There's a VIM plugin for Jedi: https://github.com/davidhalter/jedi-vim Basically it is a (very) enhanced version of pythoncomplete, which is the default omnicomplete function for vim/python. If anyone has al

A new approach to Python autocompletion

2012-10-14 Thread David Halter
Hi there! I developed an autocompletion for Python, called Jedi: https://github.com/davidhalter/jedi There's a VIM plugin for Jedi: https://github.com/davidhalter/jedi-vim Basically it is a (very) enhanced version of pythoncomplete, which is the default omnicomplete function for vim/python. If a

Changing where Vim saves files

2012-10-14 Thread usernamer
Vim automatically saves files in my Home Folder. I want to be able to change where it saves (i.e. if I do :w filename, it'll save it there). I know if you do :pwd it shows you where it saves files, and you can do :cd [where you want it] to change this, but when you restart vim, it reverts back to

A new approach to Python autocompletion

2012-10-14 Thread David Halter
Hi there! I developed an autocompletion for Python: https://github.com/davidhalter/jedi There's a VIM plugin for Jedi: https://github.com/davidhalter/jedi-vim Basically it is a (very) enhanced version of pythoncomplete, which is the default omnicomplete function for vim/python. If anyone has alw

Re: Changing where Vim saves files

2012-10-14 Thread Marc Weber
Talk about your likings .. I add such to my $HOME/_vimrc: cnoremap >my some-path Then I can type :w >my which will get replaced by some-path and that _vimrc is the file to put commands to make them permanent. There is 'autochdir' option which can help. You can also create your own mapping such

Re: Syntax highlighting in vimdiff makes stuff unreadable (Linux xterm)

2012-10-14 Thread Tony Mechelynck
On 14/10/12 19:13, Kevin O'Gorman wrote: I'm running the latest Ubuntu stuff, but this problem has been around for a while. I like to use vim (not gvim) in my linux x-terminal. All is well there. However, when I use vimdiff, none of the default colorschemes is useable because much of the text i

Re: Changing where Vim saves files

2012-10-14 Thread John Little
Have you tried a cd command in your .vimrc? (if that's not too obvious) See :h .vimrc. On windows vim will find $HOME/_vimrc before $HOME/.vimrc. Regards, John -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For mo

Get filename part only from "% with substitute()

2012-10-14 Thread Graham Lawrence
:echo substitute(@%, "\..*", "", "") :echo substitute(@%, "\([^.]\+\)\..*", "\1", "") Parameters2.html >From :reg ": echo substitute(@%, "\([^.]\+\)\..*", "\1", "") "% Parameters2.html So, how should I write this substitute command? -- Graham Lawrence -- You received this message from th

Re: Get filename part only from "% with substitute()

2012-10-14 Thread Marcin Szamotulski
On 15:25 Sun 14 Oct , Graham Lawrence wrote: > :echo substitute(@%, "\..*", "", "") > > :echo substitute(@%, "\([^.]\+\)\..*", "\1", "") > Parameters2.html > > >From :reg > ": echo substitute(@%, "\([^.]\+\)\..*", "\1", "") > "% Parameters2.html > > So, how should I write this substitute