Re: reading contents from a file under directories specified by path variable

2011-06-03 Thread Aman Jain
current working directory. No need for the :r On Fri, Jun 3, 2011 at 2:38 PM, Aman Jain amanjain.nit...@gmail.com wrote: Hi I know vim supports searching for files in those directories which are specified by the path variable. e.g. :se path=/path/to/dir1,/path/to/dir2 :find

How to list all included header files by a c file

2011-04-01 Thread Aman Jain
Hi Is there a way to see all the header files included by a c file, lets say a c file contians only one header file ,but that header file includes 10 header files, and those 10 include further more and so on... I want to get a list of all header files that eventually get included. TIA -- You

vim - save password while editing remote files using scp

2010-10-29 Thread Aman Jain
I'm trying to edit remote files using gvim in this manner: $ gvim scp://usern...@server.edu//home/username/new.txt But everytime I do a save, I have to enter password. I looked up on the internet to see if there's a way by which vim remembers remote passwords. So I found that creating a file

Re: how to know which function I am in currently?

2010-10-06 Thread Aman Jain
Any other solution? since I don't want to make ctags for a single file browsing. On Oct 6, 12:58 pm, Gary Johnson garyj...@spocom.com wrote: On 2010-10-06, Aman Jain wrote: Hi Sometimes while browsing code, I feel a need to quickly know what function I am inside, especially when

How to save output of '[I'

2010-04-07 Thread Aman Jain
Hi After doing '[I' - (left bracket followed by capital i) which is meant for displaying all lines that contain the keyword under cursor, how can I save those results. The output was not available in any registers. Thanks -- You received this message from the vim_use maillist. Do not top-post!

best C++ plugin for vim?

2010-03-11 Thread Aman Jain
structure. For example, if I am about to declare an object for a C++ class, I want to know what is the class hierarchy, i.e. which class was the base class, how many classes have been derived from this particular class, and stuff like that. Any comments are appreciated. Thanks Aman Jain -- You

webpages and vim

2010-03-04 Thread Aman Jain
Hi Sometimes I would like to save the text of a webpage, so that I don't have to copy it over from a browser to vim. I did :e http://www.somewebsite.com and vim shows html for the website. Is there a way such that I get to see only the text, and not the html tags. Thanks Aman Jain -- You

Re: webpages and vim

2010-03-04 Thread Aman Jain
Thanks! -- 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

Advanced vim auto-completion

2010-02-11 Thread Aman Jain
Hi I am trying to build a lexical analyzer using flex. Following is a line which shows a regular expression and its corresponding action. [0-9] {printf(yada yada \n);} //regex1 Is there a way to reuse {printf(yada yada \n);} from regex1 by auto- completion features of vim, so that I don't need

multiple commands in ex mode

2009-11-26 Thread Aman Jain
used ; , etc to separate the two, but it doesn't work TIA Aman Jain -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: multiple commands in ex mode

2009-11-26 Thread Aman Jain
On Nov 26, 1:10 pm, Tinou tinou...@gmail.com wrote: Aman Jain a crit : Hi Is there a way to specify more than one command on ex mode (when i type :). e.g. right now I have to do something like :cscope kill 0 :cscope add /path/to/cscope.out /path/to/ :he \| This leads me to help

How to execute/source a line of a text file?

2009-09-17 Thread Aman Jain
, and then paste and then press enter. Oh Man its too tedious!! Is there a nice way to do this thing? TIA Aman Jain --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: How to execute/source a line of a text file?

2009-09-17 Thread Aman Jain
On Sep 17, 10:41 am, Tim Chase v...@tim.thechases.com wrote: Is there a way to take a line from the editing buffer and then execute it or source it. For example, I was going through a textfile where several linux commands were written. Now since I am lazy :), I don't like to go to

Re: Unable to read remote files using pscp (VIM 7.2)

2009-07-01 Thread Aman Jain
On Jun 30, 6:37 pm, Charles Campbell charles.e.campb...@nasa.gov wrote: Aman Jain wrote: On Jun 30, 12:56 am, Charles Campbell charles.e.campb...@nasa.gov wrote: Aman Jain wrote: shq is already blank in my gvim, and I am getting the same error. So can you suggest some other

Re: Unable to read remote files using pscp (VIM 7.2)

2009-06-29 Thread Aman Jain
shq is already blank in my gvim, and I am getting the same error. So can you suggest some other alternative? --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: Unable to read remote files using pscp (VIM 7.2)

2009-06-29 Thread Aman Jain
On Jun 30, 12:56 am, Charles Campbell charles.e.campb...@nasa.gov wrote: Aman Jain wrote: shq is already blank in my gvim, and I am getting the same error. So can you suggest some other alternative? Read   :help netrw-debug and send me a copy of the debugging output.  If you use ftp

Unable to read remote files using pscp (VIM 7.2)

2009-06-28 Thread Aman Jain
. .shellescape(tgtdir,1) 5100:exe s:netrw_silentxfer.!.g:netrw_scp_cmd.shellescape (useport,1). .args. .shellescape(machine.:.tgt,1) TIA Aman Jain India --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org

How to save recordings in vimrc

2009-05-13 Thread Aman Jain
Is there a way to save recordings, as I often need to retype all the useful recordings(e.g commenting a line) whenever I open a vim session. TIA Aman Jain --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http

Vertical ScrollBar in vim(not gvim)

2009-04-15 Thread Aman Jain
How can I enable Vertical ScrollBar in vim(not gvim) I am using version 6.3 TIA Aman Jain --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Search a pattern contained in a register

2009-04-15 Thread Aman Jain
How can I search for the text contained in a register(after yanking). e.g. if I did a ' ayw ' (copy a word to register a) on an identifier, but after some time navigate away , and then need to search for the same, then how do I get the contents of the register a after pressing / ?

Autoscroll all buffers to next pattern match

2009-04-10 Thread Aman Jain
or not. I wish to see the location of all the buffers change to the next symbol occurrence with a single keystroke ('n') . I tried using scrollbind, but it just scrolls the buffers by equal number of lines. TIA :) Aman Jain --~--~-~--~~~---~--~~ You received this message

Re: How to break a long paragraph into lines?

2009-01-05 Thread Aman Jain
On Jan 5, 8:38 am, Tim Chase v...@tim.thechases.com wrote: I often come across text files that contain long paragraphs, and vim's numbering(:se nu) shows only one line for a paragraph until unless a newline is encountered. It is a pain to read that way. Is there a way to render a

Easiest way to insert a blank line?

2009-01-04 Thread Aman Jain
Is there a quicker way to insert a blank line, than by doing 'o'-ESC Thanks Aman Jain --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

How to break a long paragraph into lines?

2009-01-04 Thread Aman Jain
I often come across text files that contain long paragraphs, and vim's numbering(:se nu) shows only one line for a paragraph until unless a newline is encountered. It is a pain to read that way. Is there a way to render a paragraph in the form of numbered lines whereby each line contains a fixed

How to read specific lines from a file into current buffer

2008-10-27 Thread Aman Jain
Hi I want to read line n1-n2 from file foo.c into current buffer I tried :147,227r /path/to/foo/foo.c But I get E16: Invalid range, though I am certain that foo.c contains more than 1000 lines. Thanks Aman Jain India --~--~-~--~~~---~--~~ You received

Re: How to open all buffers in vim

2008-10-13 Thread Aman Jain
Oh great!! This one's cool :) On Oct 14, 8:44 am, Navdeep Parhar [EMAIL PROTECTED] wrote: On Mon, Oct 13, 2008 at 8:42 PM, Aman Jain [EMAIL PROTECTED] wrote: Yes, it works :) :ball opens all the buffers in horizontal fashion :vertical ball opens all the buffers vetically And :tab ball

How to know ESC mode command history

2008-10-13 Thread Aman Jain
Hi All, How can I know the commands issued by me in ESC mode. Say I accidentally pressed some keys which led to some magical effect, so how do I know what I accidentally pressed? For example in Ex mode I can use the UP arrow or :e CTRLf to know what commands I've issued. Thanks Aman Jain