Re: function counterparts of motion commands

2014-06-11 Thread Pankaj Gupta
Thanks this works for my current use case. Clearly my knowledge of normal is weak and needs brushing up. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 10:02:12 PM UTC-6, wolfv wrote: > On Wednesday, June 11, 2014 9:24:29 PM UTC-6, Ben Fritz wrote: > > On Wednesday, June 11, 2014 5:29:07 PM UTC-5, wolfv wrote: > > > > Can you use vimdiff, from C:\Users\wolf\Documents (rather than My > > > > Documents)? > > > > > > I a

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 9:24:29 PM UTC-6, Ben Fritz wrote: > On Wednesday, June 11, 2014 5:29:07 PM UTC-5, wolfv wrote: > > > Can you use vimdiff, from C:\Users\wolf\Documents (rather than My > > > Documents)? > > > > I am using Windows 7. > > From Command Prompt: > > C:\Users\wolf\Docume

Re: Ability to undo changes from outside Vim

2014-06-11 Thread Ben Fritz
On Wednesday, June 11, 2014 5:36:31 PM UTC-5, Eric Christopherson wrote: > In my vimrc I have > >   set undofile >   set undodir=~/.vimundo > -- thus I am almost always able to undo changes done in Vim even if I close a > file and reopen it. One other benefit I've enjoyed for a while is the > be

Re: vimdiff noob question

2014-06-11 Thread Ben Fritz
On Wednesday, June 11, 2014 5:29:07 PM UTC-5, wolfv wrote: > > Can you use vimdiff, from C:\Users\wolf\Documents (rather than My > > Documents)? > > I am using Windows 7. > From Command Prompt: > C:\Users\wolf\Documents>vim -d a.txt b.txt > This pops up: > C:\PROGRA~2\Vim\vim74\vim.exe is

Ability to undo changes from outside Vim

2014-06-11 Thread Eric Christopherson
In my vimrc I have set undofile set undodir=~/.vimundo -- thus I am almost always able to undo changes done in Vim even if I close a file and reopen it. One other benefit I've enjoyed for a while is the behavior where, if I have a file open in Vim, and some program besides Vim modifies the file

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 2:01:21 PM UTC-6, Tim Chase wrote: > On 2014-06-11 12:33, wolfv wrote: > > > The only reason I use vimdiff from the command prompt is because > > > that is how the tutorial does it. Otherwise I always launch gVim > > > from the taskbar. Is there a way to run vimdiff f

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 3:12:55 PM UTC-6, Ben Fritz wrote: > On Wednesday, June 11, 2014 2:33:57 PM UTC-5, wolfv wrote: > > From Command Prompt: > > C:\Users\wolf\My Documents>gvim -N -u NONE -U NONE -i NONE -O > > a.txt b.txt > > This message pops up: > > Location is not ava

Re: vimdiff noob question

2014-06-11 Thread Ben Fritz
On Wednesday, June 11, 2014 2:33:57 PM UTC-5, wolfv wrote: > From Command Prompt: > C:\Users\wolf\My Documents>gvim -N -u NONE -U NONE -i NONE -O a.txt > b.txt > This message pops up: > Location is not available > C:\Users\wolf\My Documents is not accessible. >

Vim and Evil compared. Documentation

2014-06-11 Thread Rosangela Medeiros da Silva
After my previous article in this list, I learned a lot about Evil and Vim, and concluded that the two editors are equivalent. At least, I didn't find anything that I could do in Vim, but not in Evil. I told before that I wanted to migrate from Evil to Vim, because Evil does not have a help sys

Re: vimdiff noob question

2014-06-11 Thread Tim Chase
On 2014-06-11 12:33, wolfv wrote: > The only reason I use vimdiff from the command prompt is because > that is how the tutorial does it. Otherwise I always launch gVim > from the taskbar. Is there a way to run vimdiff from the taskbar > gVim? If you highlight two files in your File Explorer and ri

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 10:48:15 AM UTC-6, Ben Fritz wrote: > On Tuesday, June 10, 2014 4:49:26 PM UTC-5, wolfv wrote: > > > > I manually set a.txt and b.txt to contain unique lines of text. > > In what program? Vim? Notepad? > > > Then from Command Prompt: > > gvim -O a.txt b.txt > > op

Re: IncSearch not working in s/patt/repl/gc?

2014-06-11 Thread Ben Fritz
On Wednesday, June 11, 2014 12:51:52 PM UTC-5, Christian Brabandt wrote: > Hi Benjamin! > > > > On Mi, 11 Jun 2014, Benjamin Fritz wrote: > > > > > I have these two lines in a modified "lithochromatic" colorscheme: > > > > > > highlight IncSearch ctermbg=NONE ctermfg=NONE guifg=NONE guibg=

Re: IncSearch not working in s/patt/repl/gc?

2014-06-11 Thread Christian Brabandt
Hi Benjamin! On Mi, 11 Jun 2014, Benjamin Fritz wrote: > I have these two lines in a modified "lithochromatic" colorscheme: > > highlight IncSearch ctermbg=NONE ctermfg=NONE guifg=NONE guibg=#f8f8f8 > cterm=underline,bold gui=underline,italic > highlight Search ctermbg=NONE ctermfg=NONE guifg=N

IncSearch not working in s/patt/repl/gc?

2014-06-11 Thread Benjamin Fritz
I have these two lines in a modified "lithochromatic" colorscheme: highlight IncSearch ctermbg=NONE ctermfg=NONE guifg=NONE guibg=#f8f8f8 cterm=underline,bold gui=underline,italic highlight Search ctermbg=NONE ctermfg=NONE guifg=NONE guibg=#d8d8d8 cterm=underline gui=underline In gvim 7.4.292 64

Re: vimdiff noob question

2014-06-11 Thread Ben Fritz
On Tuesday, June 10, 2014 4:49:26 PM UTC-5, wolfv wrote: > > I manually set a.txt and b.txt to contain unique lines of text. In what program? Vim? Notepad? > Then from Command Prompt: > gvim -O a.txt b.txt > opens gvim showing both files as empty. This tells me that Vim is somehow not fin

Re: function counterparts of motion commands

2014-06-11 Thread John Little
On Wednesday, June 11, 2014 12:25:43 PM UTC+12, Pankaj Gupta wrote: > Does a similar function exist for motion commands? The plain answer is :normal, but that's so simple I'm not sure I understand your request. Your example: vim -c "normal M" x.txt HTH, John Little -- -- You receiv

function counterparts of motion commands

2014-06-11 Thread Pankaj Gupta
Hi, I want to launch vim so that the cursor is placed on the middle of the screen when open. I can use the -c option to supply functions. How can I find the function names for motion commands, e.g. M in this case? For switching windows I could find wincmd which is pretty handy. Does a similar f

Re: Sorting a List of Numbers

2014-06-11 Thread Павлов Николай Александрович
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I am trying to guess the logic behind this decision. Using strings should lead to the least amount of additional code since there already is :echo. I would not say that this is right decision though. On June 11, 2014 1:01:21 AM GMT+03:00, Christia