check if buffer exists

2007-05-01 Thread Naim Far
Hi all, Could anyone help me with the command of checking if a certain buffer exists, I wasn't to do something like the following " if( exists( ;; open the buffer else find ;; find such a file and open it endif " Thanx in advance...

RE: argdo and grep

2007-03-01 Thread Naim Far
y you could think of?! Thanx again... Naim -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 2:20 PM To: Naim Far Cc: vim@vim.org Subject: Re: argdo and grep On 3/1/07, Naim Far <[EMAIL PROTECTED]> wrote: > I was wondering about a

argdo and grep

2007-03-01 Thread Naim Far
Hi Vimers, I was wondering about argdo! Is there anyway to do the following command :grep * | argdo :%s///g I tried it but it didn't work, I tried some few others ways, but they didn't work either Thanx...

RE: How to diff in gvim

2007-02-13 Thread Naim Far
Hi, Does anyone know how to do "vert diffsplit" between two buffers?! When using diffsplit I have to supply the full path of the second comparison file, what if I simply want the comparison to be done with another already opened buffer?! Thanx in advance... -Original Message- From: Tom

Verilog Indentation

2007-02-04 Thread Naim Far
Hi Vimers, Can anyone please help me with making the vim indent verilog files properly?! Thanx in advance!

Re: replace with a number sequence

2007-02-04 Thread Naim Far
Hi Vimers, Can anyone please help me with making the vim indent verilog files properly?! Thanx in advance!

Re: replace with a number sequence

2007-02-01 Thread Naim Far
Hi, I liked the following replacement command, and I found it very usefull: :let n=0|g//s//\=n/|let n+=1 But, could anyone please explain the way it works?! I used the "help :=" to try and understand it, but the vim help says the ":=" command displays the line number, which cannot explain the

grep and regular expression

2006-12-14 Thread Naim Far
Hi, I'm writing C++ code, I'm trying to search for all class declaration via the following command: :grep 'class\s*\w\+{' *.hpp The command fails! although if I do search for the same expression, the search succeeds (in a specific file)! Y?! Thanx...

file name from command mode

2006-10-25 Thread Naim Far
Hi Vim guys, Any body knows how to get the current file name in command mode?! Thanx...

Re: mapping of

2006-10-25 Thread Naim Far
Have u tried the following: :set nocompatible Roman Pořízka wrote: Hello, I'm trying to map to some command (:tabn 1) and unfortunately it's not working :( I'm trying on linux (where this mapping for mrxvt works) and windows... Have you any clue why it's not working? With regards, Roman Por

automatically going from header file to implementation file

2006-10-18 Thread Naim Far
Hi, Does any body know a way of automatically going from header file to its implementation file?! and vice versa?!