Re: Replacing '%' in a text file
I create a test file and was able to replace all % with % | by doing this: :%s/%/% |/g You shouldn't need to escape the % Muhammad Farooq-i-Azam wrote: I have to replace every occurrence of % in a file with % |. I have been effectively replacing text using the following construct: :%s/\text\/replacement/g However when I try to do the following: :%s/\%\/% |/g I am greeted by an error message. Obviously, the % character needs to be treated differently for being replaced. Escap sequence? I cannot figure out how to do it. May be trivial for the gurus here. I will be thankful for a hint. Many thanks in advance. -- Muhammad Farooq-i-Azam __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Always display full path in tab?
I have been looking through the documentation on vim (yes I even tried using :h tabline) in an attempt to always list the full path in my tabs. I can't see what option I need to enable so that the full path displays. Presently if I edit a file that exists in a rather long path, I see abbreviations in the path names (like /h/v/s/foo.bar). What do I need to do to enable? Thanks...and if this is in the documentation and I overlooked it...sorry - I will deserve the RTFM comments ;) In all seriousness I probably spent a good hour looking...just want the answer now :) Scot -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Re: Shell support in Vim?
Personally, isn't it an issue of preference? I mean, on a Linux system, if you use an xterm plus a gvim window...why do you need this functionality in your editor? The fact the editor will allow you to issue a shell command is nice...but one can easily argue moving the mouse to the xterm to issue commands is -more- than sufficient. I don't think ViM is supposed to be an integrated development environment more than a really good, rock solid editor. The fact that you can compile from it...is also cool too. But heck with an xterm, ant, ViM (with tabbed windows) - does one really need more than that ;) Jerin Joy wrote: Hi, I'm able to run !mkdir.. etc. I was thinking something similar to emacs where I can have a different tab? open where I can compile my files, keep working for 2 weeks and search back through the text for the first command I typed in. But I guess its a design decision whether or not to add this functionality to vim. thanks, Jerin On 5/10/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Jerin Joy wrote: I was just wondering if adding shell support to vim is a feature thats being considered. It would be great to be able to run commands from vim instead of having to shift to terminal to do so. I've seen vim shell but its a separate plugin: http://www.wana.at/vimshell/ Not really. Vim is an editor, not a shell, command line interface or windowing system. You can already do :!cmd, that should be sufficient. -- From know your smileys: [:-) Frankenstein's monster /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org/// -- http://jerinj.blogspot.com/ -- -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Tabbed window by default?
Thanks ahead of time - this is driving me nuts... I just built and installed ViM 7.0 - its great - so nice... I am trying to figure out how to make ViM start, by default, to use tabbed windows. I note I can open a new document in a tab - again awesome! However, if I close any of the tabs such that only one file is open, the tab disappears. I looked and looked and looked for some option I could put in my ~/.gvimrc and cannot see what option I need to have enabled in order for a tab to be enabled/on all the time. Thanks again for the help! Scot -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Is there a way to move tabs around via the mouse?
Is there anyway to move the tabs in a tabbed window around using the mouse? I see the menu options for a tab when I right click on the tab. I also saw the tabm [N] option I can set. However, is it possible to set an option that will allow me to click on a tab and drag it either right or left? -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim