How to get the directory name of the current file

2011-07-20 Thread 何聪辉
Hi, I am using vim as the simple IDE, and use qmake and make tool to configure my project. If a directory named Foo, and inside the directory, there exists some headers and source files, I use the command qmake -project, and it will generate a file called Foo.pro, After I type qmake, it will

Re: How to get the directory name of the current file

2011-07-20 Thread Albie Janse van Rensburg
何聪辉 wrote on 20/07/2011 09:29 AM: Hi, I am using vim as the simple IDE, and use qmake and make tool to configure my project. If a directory named Foo, and inside the directory, there exists some headers and source files, I use the command qmake -project, and it will generate a file called

Re: arrow keys don't move cursor but output ABCD in INSERT mode

2011-07-20 Thread Tony Mechelynck
On 19/07/11 16:51, Ben Schmidt wrote: On 7/07/11 12:00 PM, Ben Schmidt wrote: On 6/07/11 11:40 PM, Ben Schmidt wrote: On 4/07/11 10:56 PM, Tim Chase wrote: On 07/04/2011 03:07 AM, Kent wrote: last weekend I finally did the switch from .vim to vim-addon-manager. after the change, I made some

Re: How to get the directory name of the current file

2011-07-20 Thread Erik Christiansen
Within vim, %:h will do that. To demonstrate, try: :!ls %:h or :e %:h/elephant Erik -- 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: How to get the directory name of the current file

2011-07-20 Thread 何聪辉
I try that, %:h will get the relative path, that is .(dot), and I want the get the absolute name. I try %:p:h, and it works. Thanks all the time. 2011/7/20 Erik Christiansen dva...@internode.on.net Within vim, %:h will do that. To demonstrate, try: :!ls %:h or :e %:h/elephant Erik --

Re: where does Win7's VIM read my .vimrc files from?

2011-07-20 Thread Tony Mechelynck
On 20/07/11 01:03, Linda W wrote: John Trammell wrote: fileencodings=ucs-bom,utf-16le,utf-8,default,latin1 That does it!...thanks!... --- I Prematurely spoke, since it worked wtih utf-16le, but I later found that I couldn't read normal utf-8 files! So...it really didn't. Yeah, usually

substitute with list content

2011-07-20 Thread Chen San
i have saw some usages in such a form: let i=1 | g/foo/s//\=blah_.i/ | let i=i+1 then my question is, what if i wanna substitute something with a list, such as ['one','two','three'] i have try the next script: let i=0 let alist=['one','two','three'] for n in alist g/foo/s//\=n/ endfor

Re: substitute with list content (oops)

2011-07-20 Thread Tony Mechelynck
On 20/07/11 11:32, Tony Mechelynck wrote: On 20/07/11 10:21, Chen San wrote: i have saw some usages in such a form: let i=1 | g/foo/s//\=blah_.i/ | let i=i+1 then my question is, what if i wanna substitute something with a list, such as ['one','two','three'] i have try the next script: let

Re: substitute with list content

2011-07-20 Thread Luc Hermitte
Hello, Chen San wrote: i have saw some usages in such a form: let i=1 | g/foo/s//\=blah_.i/ | let i=i+1 then my question is, what if i wanna substitute something with a list, such as ['one','two','three'] Sometimes ago, I wrote a :RotateSubstitute command that should answer your need:

Re: How to get the directory name of the current file

2011-07-20 Thread Benjamin R. Haskell
On Wed, 20 Jul 2011, 何聪辉 wrote: Hi, I am using vim as the simple IDE, and use qmake and make tool to configure my project. If a directory named Foo, and inside the directory, there exists some headers and source files, I use the command qmake -project, and it will generate a file called

Re: How to get the directory name of the current file

2011-07-20 Thread Bee
On Jul 20, 6:52 am, Benjamin R. Haskell v...@benizi.com wrote: On Wed, 20 Jul 2011, 何聪辉 wrote: Hi, I am using vim as the simple IDE, and use qmake and make tool to configure my project. If a directory named Foo, and inside the directory, there exists some headers and source files, I use

Re: How to get the directory name of the current file

2011-07-20 Thread Benjamin R. Haskell
On Wed, 20 Jul 2011, Bee wrote: On Jul 20, 6:52 am, Benjamin R. Haskell wrote: On Wed, 20 Jul 2011, 何聪辉 wrote: Hi, I am using vim as the simple IDE, and use qmake and make tool to configure my project. If a directory named Foo, and inside the directory, there exists some headers and source

Re: a question about path where the files to be edited are

2011-07-20 Thread Jose Caballero
You could put those directories into the 'path' option, then use :find instead of :edit. Once those directories are in 'path', though, you could use gF or ^WF to jump to the file name and line number under the cursor. Hmmm. Seems like gF or ^WF don't work for me. I am stuck with vim 6.3,

Re: a question about path where the files to be edited are

2011-07-20 Thread Gary Johnson
On 2011-07-20, Jose Caballero wrote: You could put those directories into the 'path' option, then use :find instead of :edit. Once those directories are in 'path', though, you could use gF or ^WF to jump to the file name and line number under the cursor. Hmmm. Seems

SAP - HR/Payroll - Team Lead/Houston, TX /long-term

2011-07-20 Thread mohit soni
Hello Friend, Hope you are doing great. If you have perfect match for the below requirement please forward updated resume of your available consultant along with the rates and contact details ASAP.* Please Send Resumes To * mo...@catamerica.com * SAP - HR/Payroll - Team Lead Houston, TX

Automation Test Lead/Chicago,IL/ 6 months contract

2011-07-20 Thread mohit soni
Please Send The Resumes To mo...@catamerica.com Automation Test Lead – Chicago,IL – Starting ASAP Position: Automation Test Lead Type: Contract, 6 months Immediate need, starting as soon as July 25 All interviews phone only Essential job responsibilities: Will need to understand the application

Fwd: Apps Systems Engineer 6 (PeopleSoft Developer) /Minneapolis, MN or Chandler, AZ or Winston-Salem, NC/18 + months

2011-07-20 Thread mohit soni
Hello Folks, Hope you are doing great. If you have perfect match for the below requirement please forward updated resume of your available consultant along with the rates and contact details ASAP. Please Send The Resumes To mo...@catamerica.com *Apps Systems Engineer 6 (PeopleSoft Developer)

Re: SAP - HR/Payroll - Team Lead/Houston, TX /long-term

2011-07-20 Thread Harsh J
Why do you need a person for that when Vim can do all of it? ;-) On Thu, Jul 21, 2011 at 1:01 AM, mohit soni mohitsoni3...@gmail.com wrote: Hello Friend, Hope you are doing great. If you have perfect match for the below requirement please forward updated resume of your available consultant

RE: SAP - HR/Payroll - Team Lead/Houston, TX /long-term

2011-07-20 Thread John Beckett
Harsh J wrote: ...COPY OF SPAM... Please do not do that! The spam was sufficiently irritating. I have banned the original sender and removed their posts (and the copy from the above) from the Google vim_use archive. I do not know how the spammer got their message posted. It seems unlikely that

Re: SAP - HR/Payroll - Team Lead/Houston, TX /long-term

2011-07-20 Thread Harsh J
John, Sorry 'bout that. Won't be repeated. On Thu, Jul 21, 2011 at 10:22 AM, John Beckett johnb.beck...@gmail.com wrote: Harsh J wrote: ...COPY OF SPAM... Please do not do that! The spam was sufficiently irritating. -- Harsh J -- You received this message from the vim_use maillist. Do