Re: indexing in a latex file

2007-02-20 Thread C.G.Senthilkumar.
:s/\search_term\/\\index{}/gc This, with some more fudging with the replace string seems to serve my purpose for now. Thank You. However, I was wondering if there was already some sophisticated script or function written for this purpose explicitly that can handle all the various situations

indexing in a latex file

2007-02-19 Thread C.G.Senthilkumar.
Hi, I want to create an index with the makeindex program. So, I have to markup my latex document with \index{index_term}. Is there a script or some mechanism to do this effeciently? For example, when I search a term, vim should take the cursor to the term and prompt a confirmation(y/n) to index

Re[2]: sourcing

2006-12-05 Thread C.G.Senthilkumar.
On Tue, 5 Dec 2006, Alan G Isaac wrote: On Mon, 4 Dec 2006, Bill McCarthy apparently wrote: Instead of using an autocmd, you could place those maps in a file called tex.vim in your local ftplugin directory. Place this single line in such a file: map buffer c-a :echo 'It worked!'CR I did

Formatting text in reply e-mails

2006-12-05 Thread C.G.Senthilkumar.
Hi I know vim understands character sequences that delimit comments in various programming languages and gqap formats them appropriately. However, while typing a reply to an e-mail, the gqap command doesn't seem to identify the end of a paragraph in the original message because empty lines are

Re: Formatting text in reply e-mails

2006-12-05 Thread C.G.Senthilkumar.
On Wed, 6 Dec 2006, [EMAIL PROTECTED] wrote: Vim may very well be able to do that with built-in commands. I use the external paragraph reformatter 'par-1.52' for this: For example, to format and justify this reply in vim, I used: :','!par 66j No, this doesn't answer my question. My question

(un)sourcing

2006-12-04 Thread C.G.Senthilkumar.
Hi, I use the following autocmd in my ~/.vimrc to load a source file with my personal vim mappings while editing a tex file: autocmd FileType tex source ~/Dot.vilatexrc This works fine. However, the mappings continue to exist even after I open a different filetype without restarting vim. Is

Re: VIM Books

2006-12-04 Thread C.G.Senthilkumar.
:help usr_41.txt should get you started. Hope this helps. Senthil. On Tue, 5 Dec 2006, Jianrong Yu wrote: 2006/12/5, Taylor, Kevin [EMAIL PROTECTED]: I have been using VIM for years to do my development and feel I am a competent user. I have done some minor tweaks in my .vimrc but I have

Finding Long lines

2006-11-27 Thread C.G.Senthilkumar.
Hi, How do I find long lines in a large text file? (I want to be able to define long lines arbitrarily. For default, lets say, it is 80 characters.) Thanks in advance. Senthil.