Re: decrease number?

2017-06-19 Thread stosss
Thanks Tim, Johns did work exactly the way I wanted it to. I like yours too. On Mon, Jun 19, 2017 at 8:37 PM, Tim Chase wrote: > On 2017-06-19 22:29, John Passaro wrote: > > use the expression register: > > > > s/\v\w+\="\zs\d\d+\ze"/\=submatch(0)-10/g > > Beware that

Re: decrease number?

2017-06-19 Thread stosss
m > http://www.soundcloud.com/a-straight-john-at-last > > On Mon, Jun 19, 2017 at 9:59 PM, stosss <sto...@gmail.com> wrote: > >> Placing cursor on the number and typing 10CTRL-X reduces it by the >> desired amount but how do I do it in a search and replace pattern?

Re: decrease number?

2017-06-19 Thread stosss
Placing cursor on the number and typing 10CTRL-X reduces it by the desired amount but how do I do it in a search and replace pattern? On Mon, Jun 19, 2017 at 7:14 PM, stosss <sto...@gmail.com> wrote: > I have several hundred lines like the one below: > > stroke="#c0c0c0"

decrease number?

2017-06-19 Thread stosss
I have several hundred lines like the one below: I want to change them like this: The "ten" place holder needs to decrease by one. x1="20" y1="45" x2="820" y2="45" Can someone point me to something that would show me a fast way to do this? I am thinking some how I should be able to use

Re: am getting a CRITICAL error using gvim and linux

2017-05-18 Thread stosss
On Thu, May 18, 2017 at 9:51 AM, Tim Chase wrote: > On 2017-05-18 11:04, Charles E Campbell wrote: > > gvim/vim compiled and linked ok; when I started it up that CRITICAL > > message resulted (I'd just wiped out my vim directory+contents, > > gotten the code via git,

unexpected result

2017-05-12 Thread stosss
I typed f2u expecting the cursor to jump to the 2nd "u" on the line but the command deleted my last "p"ut command. 2fu did what I expected. Did f2u do what it was supposed to do? Running Linux vim --version VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 16 2017 13:19:42) Included patches:

Submatch and regex replace

2013-10-25 Thread stosss
Starting out with a number at the beginning of the line and want to change it from a single or double digit to a triple digit such as 1 to 001 or 10 to 010 and 100 stays as is :%s@\(\d\+\)@\=printf(%03d, submatch(1))@ I also want to add some more information around it such as

Re: Submatch and regex replace

2013-10-25 Thread stosss
On Fri, Oct 25, 2013 at 6:01 PM, Paul Isambert zappathus...@free.fr wrote: stosss sto...@gmail.com a écrit: Starting out with a number at the beginning of the line and want to change it from a single or double digit to a triple digit such as 1 to 001 or 10 to 010 and 100 stays

Re: I'm unable to override indentexpr

2013-06-05 Thread stosss
On Wed, Jun 5, 2013 at 7:26 AM, Bram Moolenaar b...@moolenaar.net wrote: Steve Litt wrote: I'm using Vim 7.3 in Xubuntu 12.10. When editing my html files, this happens when I set indentexpr?: indentexpr=HtmlIndentGet(v:lnum) That's no good because HtmlIndentGet(v:lnum) does a

What character is this?

2013-04-10 Thread stosss
This single character unit is showing up in a text file ^F the cursor only stops on the ^ portion of it and never on the F portion. It shows up in the middle of words only. What can I type in the search or search and replace so I can quickly find and remove all of them? Searching for ^F or ^ or F

Re: What character is this?

2013-04-10 Thread stosss
On Wed, Apr 10, 2013 at 3:19 PM, Ben Fritz fritzophre...@gmail.com wrote: On Wednesday, April 10, 2013 2:16:45 PM UTC-5, Jack Gates wrote: This single character unit is showing up in a text file ^F the cursor only stops on the ^ portion of it and never on the F portion. It shows up in the

Re: Vim on the iPad

2013-04-03 Thread stosss
Hi Eric, That is one of the very reasons that the Open Source Software community came about. There are hundreds of thousands (maybe several million by now) of people that disagree with the proprietary corporate ways of locking and controlling what you can and can't do on a computer. Apple almost

Re: i write a new vim package/plugin manager like debian's apt

2013-03-09 Thread stosss
On Sat, Mar 9, 2013 at 5:06 AM, Marc Weber marco-owe...@gmx.de wrote: Excerpts from 孔晓泉's message of Sat Mar 09 05:42:23 +0100 2013: hello everyone: recently i write a new vim package/plugin manager .because it operate like dbian's apt, so i call it vimapt. here is the repository

Re: Vim on the iPad

2013-03-07 Thread stosss
On Thu, Mar 7, 2013 at 2:22 PM, Eric Weir eew...@bellsouth.net wrote: Hacker's Keyboard for Google Nexus tablets. https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboardfeature=search_result#?t=W251bGwsMSwxLDEsIm9yZy5wb2NrZXR3b3Jrc3RhdGlvbi5wY2tleWJvYXJkIl0. The app

Re: Vim on the iPad

2013-03-07 Thread stosss
On Thu, Mar 7, 2013 at 8:39 PM, Eric Weir eew...@bellsouth.net wrote: On Mar 7, 2013, at 3:39 PM, Jeroen Budts jer...@lightyear.be wrote: I use Hacker's Keyboard daily on my Nexus 7 btw. Together with VimTouch and my entire Vim config (which I could just copy over to the tablet, no special

Re: cannot unsubscribe

2013-02-19 Thread stosss
On Wed, Feb 20, 2013 at 1:50 AM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 19/02/13 12:43, Franco wrote: It seems I cannot unsubscribe from this mailing list. I sent a mail both to vim-unsubscr...@vim.org and to the google address one. I received the confirmation but replying

Re: which file is being edited?

2013-02-18 Thread stosss
On Mon, Feb 18, 2013 at 3:51 AM, shawn wilson ag4ve...@gmail.com wrote: How do I get the full path of the file I'm editing? :Explore will show you where you are and let you pick another file in the directory. -- -- You received this message from the vim_use maillist. Do not top-post! Type

Re: Our posts are being flagged as spam.

2013-02-16 Thread stosss
On Sun, Feb 17, 2013 at 1:05 AM, Erik Christiansen dva...@internode.on.net wrote: On 16.02.13 20:02, John Little wrote: Just had a quick look in my gmail spam folder, and didn't see any headers like you report. Why would you complain to Google? Please examine the footer from your own post:

Re: vim split window editing = separate window editing?

2013-02-02 Thread stosss
On Sat, Feb 2, 2013 at 2:11 PM, Linda W v...@tlinx.org wrote: If vim can split a window and edit the same file in multiple places, shouldn't it be possible to have those windows be disconnected and really be separate windows -- and still edit the same file? I don't think there's is a way to

Re: vim split window editing = separate window editing?

2013-02-02 Thread stosss
Marc, the time stamp on your computer is in the future. On Sat, Feb 2, 2013 at 3:23 PM, Marc Weber marco-owe...@gmx.de wrote: Excerpts from Linda W's message of Sat Feb 02 20:11:33 +0100 2013: If vim can split a window and edit the same file in multiple places, shouldn't it be possible to

Re: ATT shutting down listmail

2013-02-02 Thread stosss
I might have had a slight window of opportunity when I had the 300 vim emails in Spam if instead of moving them to Inbox I had attempted to train their system, but at this point I feel so helpless I just want a real ISP. sc Things are going to get a lot worse in the USA real soon and all of

Re: Sourcing.vimrc breaks all of these iabbrev

2013-01-15 Thread stosss
On Tue, Jan 15, 2013 at 1:47 AM, Christian Brabandt cbli...@256bit.org wrote: On Tue, January 15, 2013 02:24, stosss wrote: I just started creating :iabbrev for all sorts of simple things. They all work just fine when Vim starts but they all break when .vimrc is sourced. I don't understand

Re: Sourcing.vimrc breaks all of these iabbrev

2013-01-15 Thread stosss
SOLVED On Tue, Jan 15, 2013 at 6:28 AM, Christian Brabandt cbli...@256bit.org wrote: On Tue, January 15, 2013 12:06, stosss wrote: On Tue, Jan 15, 2013 at 1:47 AM, Christian Brabandt cbli...@256bit.org wrote: On Tue, January 15, 2013 02:24, stosss wrote: I just started creating :iabbrev

Re: Yank part of line?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 8:45 AM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 13/01/13 08:15, stosss wrote: On Sun, Jan 13, 2013 at 1:29 AM, John Beckett johnb.beck...@gmail.com wrote: stosss wrote: This appears to be the only thing in help that seems to imply you can yank part

Save part from file.txt to file1.txt ?

2013-01-14 Thread stosss
I haven't found it in help yet because I'm probably not searching correctly. I want save the yanked text from one large file and save it to another file. I can do this manually with no problem but how to do it automated has escaped me so far. I want to generate file1.txt, file2.txt, file3.txt

Re: Yank part of line?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 10:53 AM, Charles Campbell charles.e.campb...@nasa.gov wrote: stosss wrote: On Mon, Jan 14, 2013 at 8:45 AM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 13/01/13 08:15, stosss wrote: On Sun, Jan 13, 2013 at 1:29 AM, John Beckett johnb.beck...@gmail.com

Re: Use current file name in the current file?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 11:11 AM, Ben Fritz fritzophre...@gmail.com wrote: On Sunday, January 13, 2013 3:18:49 PM UTC-6, Jack Gates wrote: I think I saw something earlier about being able to use the current file name in the current file. But now I can't find what I saw earlier. I have been

Re: Yank part of line?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 11:29 AM, Ben Fritz fritzophre...@gmail.com wrote: On Saturday, January 12, 2013 8:52:50 PM UTC-6, Jack Gates wrote: This appears to be the only thing in help that seems to imply you can yank part of a line. But I can't figure out how to make that work. Am I wrong

Re: Save part from file.txt to file1.txt ?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 11:15 AM, Ben Fritz fritzophre...@gmail.com wrote: On Monday, January 14, 2013 9:41:42 AM UTC-6, Jack Gates wrote: I haven't found it in help yet because I'm probably not searching correctly. I want save the yanked text from one large file and save it to another

Re: Save part from file.txt to file1.txt ?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 11:53 AM, Ben Fritz fritzophre...@gmail.com wrote: On Monday, January 14, 2013 10:42:27 AM UTC-6, Jack Gates wrote: Manually that works. I did find that help section. But I want to do it automated. Is my answer in that help file? I will go back and read it again. If

Re: Use current file name in the current file?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 11:51 AM, Ben Fritz fritzophre...@gmail.com wrote: On Monday, January 14, 2013 10:32:04 AM UTC-6, Jack Gates wrote: In what context? Do you want to insert the file name into the file? Access the file name on the command-line? Something else? If you tell us what

Re: What is a supposed to do in visual mode?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 3:49 PM, skeept ske...@gmail.com wrote: Hi I was reading some documentation and I came across |v_aquote| a extend highlighted area with a double In my case I start visual mode and type a but nothing seems to happen. Is this supposed to surround

Re: What is a supposed to do in visual mode?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 3:55 PM, stosss sto...@gmail.com wrote: On Mon, Jan 14, 2013 at 3:49 PM, skeept ske...@gmail.com wrote: Hi I was reading some documentation and I came across |v_aquote| a extend highlighted area with a double In my case I start visual mode

Re: What is a supposed to do in visual mode?

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 4:06 PM, skeept ske...@gmail.com wrote: On Monday, January 14, 2013 3:57:27 PM UTC-5, Jack Gates wrote: On Mon, Jan 14, 2013 at 3:55 PM, stosss wrote: On Mon, Jan 14, 2013 at 3:49 PM, skeept wrote: Hi I was reading some documentation and I came across

Sourcing.vimrc breaks all of these iabbrev

2013-01-14 Thread stosss
I just started creating :iabbrev for all sorts of simple things. They all work just fine when Vim starts but they all break when .vimrc is sourced. I don't understand. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to.

Re: Sourcing.vimrc breaks all of these iabbrev

2013-01-14 Thread stosss
On Mon, Jan 14, 2013 at 9:57 PM, sc tooth...@swbell.net wrote: On Mon, Jan 14, 2013 at 08:24:40PM -0500, stosss wrote: I just started creating :iabbrev for all sorts of simple things. They all work just fine when Vim starts but they all break when .vimrc is sourced. I don't understand. I

Re: Sourcing.vimrc breaks all of these iabbrev

2013-01-14 Thread stosss
on in your vimrc? Maybe a plugin is clearing them? On Mon, Jan 14, 2013 at 6:24 PM, stosss sto...@gmail.com wrote: I just started creating :iabbrev for all sorts of simple things. They all work just fine when Vim starts but they all break when .vimrc is sourced. I don't understand. No plugins

Macros viewing them?

2013-01-13 Thread stosss
I didn't find anything in help about being able to see the commands in a macro. When I create a mapping I can see what I have typed into the mapping so I can figure out what I did wrong if my mapping doesn't work as expected the first time. Is it possible to do something like this with a recorded

Re: Macros viewing them?

2013-01-13 Thread stosss
Sorry I stopped reading the help file too soon! On Sun, Jan 13, 2013 at 9:21 AM, stosss sto...@gmail.com wrote: I didn't find anything in help about being able to see the commands in a macro. When I create a mapping I can see what I have typed into the mapping so I can figure out what I did

Re: Highlight just headings?

2013-01-13 Thread stosss
On Sun, Jan 13, 2013 at 9:55 AM, wolfv wolfvo...@gmail.com wrote: Thanks Shlomi. What is usr_*? I am sure he means the help files. some of the help files are named usr_*.txt. replace * with a number. -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Use registers in search and replace?

2013-01-13 Thread stosss
I would like to know if I can put the contents of a register on the RHS of a search and replace in a mapping. Or I would like to know if a visual mode used in a mapping can be accomplished based on the conditions. Example: a href=filenames1.htmlFilenames 1/a I need to be able to use visual mode

Re: Use registers in search and replace?

2013-01-13 Thread stosss
On Sun, Jan 13, 2013 at 1:25 PM, Bee fo...@calcentral.com wrote: Correction: That should be \a not \w because \w includes 0-9 :s#a href=\(\a\{4,13}\)\d\{1,3}\.html.*#\1#c I appreciate the effort but that doesn't solve the problem. Also thanks for the knowledge of the \a because I didn't know

Re: Use registers in search and replace?

2013-01-13 Thread stosss
Bill, On Sun, Jan 13, 2013 at 2:26 PM, Bee fo...@calcentral.com wrote: Sorry for the multiple errors, A cold caught me :( :help substitute should be: :help substitute() I took a closer look at the \a you showed me and solved my problem with that by adding in a few more command strings.

Re: Use registers in search and replace?

2013-01-13 Thread stosss
bpj On Sun, Jan 13, 2013 at 2:28 PM, BPJ b...@melroch.se wrote: On 2013-01-13 19:37, stosss wrote: On Sun, Jan 13, 2013 at 1:25 PM, Bee fo...@calcentral.com wrote: Correction: That should be \a not \w because \w includes 0-9 :s#a href=\(\a\{4,13}\)\d\{1,3}\.html.*#\1#c I appreciate

Re: Use registers in search and replace?

2013-01-13 Thread stosss
On Sun, Jan 13, 2013 at 3:29 PM, Bee fo...@calcentral.com wrote: On Jan 13, 12:23 pm, stosss sto...@gmail.com wrote: Bill, On Sun, Jan 13, 2013 at 2:26 PM, Bee fo...@calcentral.com wrote: Sorry for the multiple errors, A cold caught me :( :help substitute should be: :help

Re: Use registers in search and replace?

2013-01-13 Thread stosss
On Sun, Jan 13, 2013 at 3:56 PM, Bee fo...@calcentral.com wrote: :help \a is the collection [A-Za-z] all upper and lower case alphabet characters possibly faster than [A-Za-z] :help /[] a collection create your own collection [a-fz] only lower case letters a b c d e f z :help \( a

Use current file name in the current file?

2013-01-13 Thread stosss
I think I saw something earlier about being able to use the current file name in the current file. But now I can't find what I saw earlier. I have been in too many help files today. I hope some one understands what I am trying to ask. -- You received this message from the vim_use maillist. Do

Re: How to paste register over visual selection?

2013-01-12 Thread stosss
On Sat, Jan 12, 2013 at 12:10 PM, skeept ske...@gmail.com wrote: Would it be possible to define a mapping for p that, when in visual mode checks if I have specified a register (with a) and in that case pastes the contents of that register, and if not simply pastes a previously specified

Yank part of line?

2013-01-12 Thread stosss
This appears to be the only thing in help that seems to imply you can yank part of a line. But I can't figure out how to make that work. Am I wrong about this? Is the only way to yank part of a line in visual mode only or search and replace if one gets technical?

Re: Yank part of line?

2013-01-12 Thread stosss
On Sun, Jan 13, 2013 at 1:29 AM, John Beckett johnb.beck...@gmail.com wrote: stosss wrote: This appears to be the only thing in help that seems to imply you can yank part of a line. But I can't figure out how to make that work. Am I wrong about this? Is the only way to yank part of a line

Re: Yank part of line?

2013-01-12 Thread stosss
On Sun, Jan 13, 2013 at 2:15 AM, stosss sto...@gmail.com wrote: On Sun, Jan 13, 2013 at 1:29 AM, John Beckett johnb.beck...@gmail.com wrote: stosss wrote: This appears to be the only thing in help that seems to imply you can yank part of a line. But I can't figure out how to make that work

Re: How to paste register over visual selection?

2013-01-11 Thread stosss
On Fri, Jan 11, 2013 at 8:32 PM, Tim Chase v...@tim.thechases.com wrote: On 01/11/13 19:26, skeept wrote: If I have something stored in a specific register say register z and select something visual then I try to paste over it with zp but this doesn't seem to do anything... Is there a easy

column alignment ?

2013-01-07 Thread stosss
I start out with this: texttext more textmore text still more textstill more text I want to end up with this: text text more text more text still more textstill more text I have no idea what help to look for or if this is even possible except for

Re: Command history

2013-01-06 Thread stosss
Hi Chris, On Mon, Jan 7, 2013 at 12:16 AM, Chris Schneider ch...@christopher-schneider.com wrote: q: most likely is what you're talking about. It is the history of all your commands. Similarly, q/ is your recent searches. Thanks! I had thought about that myself. -- You received this

Re: fortran indentation

2013-01-05 Thread stosss
On Sat, Jan 5, 2013 at 1:40 PM, Peng Yu pengyu...@gmail.com wrote: use fortran code complete. This will solve your problem Hi, I don't understand what you mean by fortran code complete. Would you please help elaborate a little more? Thanks! I think he means a plugin for Vim called fortran

Re: Vim on the iPad

2012-12-31 Thread stosss
On Mon, Dec 31, 2012 at 1:04 PM, Benjamin Klein b...@silver-chalice.com wrote: On Dec 31, 2012, at 8:35 AM, Eric Weir eew...@bellsouth.net wrote: Couple of questions: Do Android tablets have a file system? [Or is that what would be provided by Jeroen's third option, installing a Debian

Re: increment existing numbers by 1

2012-12-31 Thread stosss
I found this You have to use normal to execute normal mode commands in command mode: :g/searchString/ normal ^A Note that you have to press Ctrl-V Ctrl-A to get the ^A character. I have :s@\d\+@\=submatch(0) +1@g to do what I want. But can CTRL-A or ^A be used in a :s@search@replace@g

Re: regex needed

2012-12-28 Thread stosss
On Fri, Dec 28, 2012 at 11:28 PM, MacVlad vlad.ghitule...@gmx.de wrote: Hello! I have a text-file that looks like this: --- R UNZK904326 57075 P UNZK904385 57127 P UNZK904328 57053 P ULZK908062 57101 P UNZK904322 56498 R UNZK904386 57108 P UNZK904288 56383 P UNZK904397 56383 P

Re: How to use %03d on existing data

2012-12-26 Thread stosss
Thanks again Benjamin Haskell see follow up question below On Wed, Oct 17, 2012 at 10:47 PM, stosss sto...@gmail.com wrote: On Wed, Oct 17, 2012 at 10:32 PM, Benjamin R. Haskell v...@benizi.com wrote: On Wed, 17 Oct 2012, stosss wrote: Okay I have something that should be achievable but I

Re: increment existing numbers by 1

2012-12-26 Thread stosss
On Sun, Dec 23, 2012 at 10:09 PM, stosss sto...@gmail.com wrote: function! Incr() let a = line('.') - line(') let c = virtcol(') if a 0 execute 'normal! '.c.'|'.a.\C-a endif normal ` endfunction vnoremap C-a :call Incr()CR I figured out how to use this. The next step

Re: How to use %03d on existing data

2012-12-26 Thread stosss
Hi Christian On Wed, Dec 26, 2012 at 10:14 AM, Christian Brabandt cbli...@256bit.org wrote: Hi stosss! On Mi, 26 Dez 2012, stosss wrote: What exactly is submatch(0) and submatch(1)? Obviously the 0 and 1 mean something but I am not sure what. I understand what :help submatch is doing

Re: Small Commands

2012-12-26 Thread stosss
On your web site you said you wanted feed back. On Wed, Dec 26, 2012 at 10:07 PM, Sven Guckes guc...@guckes.net wrote: * Tim Chase v...@tim.thechases.com [2012-12-27 03:02]: On 12/26/12 18:05, Sven Guckes wrote: . http://www.guckes.net/vimberlin/small_commands.txt.html Gaaah...my eyes

Re: CTRL-A CTRL-X backwards

2012-12-24 Thread stosss
Yes! Okay now I get it. Thanks! On Dec 24, 2012 5:34 AM, sc tooth...@swbell.net wrote: On Sun, Dec 23, 2012 at 08:55:48PM -0500, stosss wrote: *CTRL-A* CTRL-AAdd [count] to the number or alphabetic character

increment existing numbers by 1

2012-12-23 Thread stosss
I found this. I think it is what I want but I don't understand what it is doing or how to initiate it. http://vim.wikia.com/wiki/Substitute_with_incrementing_numbers Incrementing selected numbers function! Incr() let a = line('.') - line(') let c = virtcol(') if a 0 execute 'normal!

CTRL-A CTRL-X backwards

2012-12-23 Thread stosss
*CTRL-A* CTRL-A Add [count] to the number or alphabetic character at or after the cursor. {not in Vi} *CTRL-X* CTRL-X Subtract

Re: increment existing numbers by 1

2012-12-23 Thread stosss
On Sun, Dec 23, 2012 at 8:33 PM, stosss sto...@gmail.com wrote: I found this. I think it is what I want but I don't understand what it is doing or how to initiate it. http://vim.wikia.com/wiki/Substitute_with_incrementing_numbers Incrementing selected numbers function! Incr() let

Re: regexp

2012-12-18 Thread stosss
On Tue, Dec 18, 2012 at 10:23 PM, John Beckett johnb.beck...@gmail.comwrote: :s#a href=\(.\{-}\).\{-}/a#[InternetShortcut]\rURL=\1# Unless I am missing something you probably meant this. notice the in the middle of the string next to the :s#a

\zs \ze don't seem to be working now.

2012-12-16 Thread stosss
After I got the recent update of Vim from my Linux distro repo The \zs \ze seem to not be working now. I use to do something like this: I have a dog. :s/I have a \zsdog\ze\./cat/ and get I have a cat. That seems to not replace dog with cat like it used to do. It doesn't seem to respond

Re: \zs \ze don't seem to be working now.

2012-12-16 Thread stosss
Well I tried again a few times such as doing s/\zspattern\ze// and it is working. So maybe I was just doing something wrong. Sorry to bother you. -- 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,

Re: Full screen writing, a la Omm Writer in vim

2012-12-07 Thread stosss
On Fri, Dec 7, 2012 at 3:55 PM, Erik Falor ewfa...@gmail.com wrote: Now I'm curious. I imagine that I could emulate much of the OmmWriter experience by running Vim in a full-screened, chromeless terminal in a compositing windowmanager with electric sheep running in the root window, and

Re: how can you delete every line between two phrases?

2012-12-02 Thread stosss
On Sun, Dec 2, 2012 at 9:39 PM, Tim Chase v...@tim.thechases.com wrote: On 12/02/12 20:15, Jiaxing Wang wrote: In :g/how are you?/.;/:-)/d, Is '/how are you?/.;/:-)/' the pattern in :[range]g[lobal]/{pattern}/[cmd]? Would you mind explaining this pattern a little? I don't quite understand

Re: Email backscatter problem [was: Re: Is Vundle dead?]

2012-11-25 Thread stosss
On Sun, Nov 25, 2012 at 4:54 PM, Benjamin R. Haskell v...@benizi.com wrote: On Sun, 25 Nov 2012, Phil Dobbin wrote: On 11/25/2012 06:50 PM, Marco wrote: 2012-11-25 Phil Dobbin: As an aside, this topic is starting to generate spam originating from China. It's not addressed to the list but

Re: vim: is there a way to C-V a text object?

2012-11-19 Thread stosss
On Mon, Nov 19, 2012 at 5:08 PM, Tim Chase v...@tim.thechases.com wrote: On 11/19/12 16:03, ping wrote: looks currently C-v i/a p is same as v i/a p for a paragraph... Does the following do what you want? v i/a p C-v which should select the paragraph characterwise, then turn it into a

Re: New line not recognized

2012-11-18 Thread stosss
On Sun, Nov 18, 2012 at 8:50 AM, Ben Fritz fritzophre...@gmail.com wrote: On Saturday, November 17, 2012 10:46:01 PM UTC-6, stosss wrote: A couple weeks ago I had 4 files that I created on my Linux system and did not move them or share them and some how they were showing a ^M when I

Mappings, no idea how to use.

2012-11-17 Thread stosss
Greetings, This is one of my rear occasions to ask a question. I don't have any idea what to search for to try to figure it out. I did not create this. I have no idea how this works or what key strokes trigger it. Can someone help me understand how to use it? It looks like there are two or three

Re: New line not recognized

2012-11-17 Thread stosss
On Sat, Nov 17, 2012 at 11:39 AM, Christian Brabandt cbli...@256bit.org wrote: Hi Tony! On Sa, 17 Nov 2012, Tony Mechelynck wrote: Depending on how the logging is done, in the case I mentioned there could very well be quite a lot of CRs before the first NL, and, let's say, something like

Re: Closing HTML tags?

2012-11-13 Thread stosss
I have created my own maps to do html tags for the most common ones used. On Nov 13, 2012 7:15 PM, Benjamin Klein b...@silver-chalice.com wrote: I could be dreadfully wrong about this but tag-closing functionality seems like a rather small feature to be available only in its own specific

Re: Closing HTML tags?

2012-11-13 Thread stosss
On Tue, Nov 13, 2012 at 9:39 PM, stosss sto...@gmail.com wrote: I have created my own maps to do html tags for the most common ones used. Sorry about the top post. I was using my smart phone and realized the mistake as soon as I sent it. -- You received this message from the vim_use maillist

Re: Contacting Vim Tips Wiki Admin JohnBeckett

2012-11-09 Thread stosss
With so many Open Source apps that have very cryptic and mostly useless documentation if any this is probably the best one around in regards to documentation and tips or help that actually helps. It is also nice to know there are number of people that like to keep the docs and help and tips in

Re: basic vim usage

2012-11-08 Thread stosss
On Thu, Nov 8, 2012 at 6:23 AM, vicky b vickyb2...@gmail.com wrote: I have started to learn vim in this modern enviroment where gui takes prefers , one thing that still me back to other editors is the ease with which we can copy and paste , can anybody help me out with safe effect in vim or

Re: Tag references and tabs in help files

2012-11-04 Thread stosss
On Sun, Nov 4, 2012 at 11:25 AM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 04/11/12 13:48, Marcin Szamotulski wrote: On 11:53 Sun 04 Nov , Andre Majorel wrote: In help.txt, tabs are used as if help.vim didn't strip the | around tag references. Is it how it's supposed to be ?

Re: Help doc observation

2012-11-03 Thread stosss
On Sat, Nov 3, 2012 at 3:24 AM, John Little john.b.lit...@gmail.com wrote: On Saturday, November 3, 2012 4:53:31 PM UTC+13, stosss wrote: I don't find anything about using \? which does the same thing as \= :-? Type :help \? and go straight to it. Says 'Cannot be used when searching

Re: search and replace using a list of characters to replace

2012-11-03 Thread stosss
Greetings, Just trying to learn On Sat, Nov 3, 2012 at 3:24 PM, Tim Chase v...@tim.thechases.com wrote: On 11/03/12 14:11, Chris Lott wrote: I have a large text file in which I need to remove all punctuation, all special characters (smart quotes) and the like, and a bunch of selected words.

A Vim set question

2012-11-03 Thread stosss
Are these different or the same? I don't see anything different in my display. set display+=lastline set display=lastline -- 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

Re: How to filter a plaintext pattern in a separate fullpage buffer to work on it separately ?

2012-11-02 Thread stosss
On Fri, Nov 2, 2012 at 6:20 PM, sc tooth...@swbell.net wrote: On Thu, Nov 01, 2012 at 01:53:47PM -0700, tjg wrote: Thank you for your answer. If I understand well, I must - first search a pattern, e.g. /Robert - then apply your local expression fold method, here leadero Am I right ?

Re: How to filter a plaintext pattern in a separate fullpage buffer to work on it separately ?

2012-11-02 Thread stosss
Trying to learn. Okay what is Leader or leader All I found when I ran :h leader was these *g:html_map_leader *g:html_map_entity_leader sorry found Leader when I used :h Leader -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

mapleader question

2012-11-02 Thread stosss
I don't understand most of this help doc pasted below. If I have a map Leader instead of \ how do I execute the map? If I have \A I would just type those characters. What do I type for Leader ? *Leader* *mapleader* To define a mapping which uses the mapleader variable, the special string

Re: mapleader question

2012-11-02 Thread stosss
On Fri, Nov 2, 2012 at 8:50 PM, Chris Lott ch...@chrislott.org wrote: If you set mapleader to another chracter, you do the same thing you have been doing with /A but you replace the '/' with the new mapleader. So, if you: let mapleader = , Then you would type ,A Thanks for the answer,

Re: mapleader question

2012-11-02 Thread stosss
Thanks, nice explanation. You answered my question. You helped a lot. On Fri, Nov 2, 2012 at 10:01 PM, Chris Lott ch...@chrislott.org wrote: On Fri, Nov 2, 2012 at 5:47 PM, stosss sto...@gmail.com wrote: I might just not understand the question. Let me try again: My question is this: I see

Help doc observation

2012-11-02 Thread stosss
I decided to go through the the help doc again to learn some more and see what I have over looked. In: *27.4* Matching multiple times To match an optional item, use \=. Example: /folders\= Matches folder and folders. I don't find anything about using \? which does the same thing

Re: vim help

2012-10-28 Thread stosss
Thank You! I was thinking about that myself. On Sun, Oct 28, 2012 at 9:48 PM, Tim Chase v...@tim.thechases.com wrote: On 10/28/12 20:38, 王军 wrote: I want to press F1 ,and display help windows at right side which like used :vsp comand. Don’t like use :sp command. :nnoremap f1 :vert

Re: why is it so difficult to start using vim (may be just for me).

2012-10-23 Thread stosss
Hi Deepak, The book that was mentioned, Learning the vi and Vim Editors Seventh Edition is a good book for the most basic stuff but quickly becomes useless for any thing beyond the most basic stuff. I don't mean anything way beyond the basics just anything just past basics. I don't have any

Re: Replacing current line with last-yanked register

2012-10-22 Thread stosss
On Tue, Oct 16, 2012 at 1:11 PM, Christian Brabandt cbli...@256bit.org wrote: Hi Dotan! On Di, 16 Okt 2012, Dotan Cohen wrote: On Tue, Oct 16, 2012 at 2:48 PM, ping songpingem...@gmail.com wrote: this is a really nice tip , even if sound simple, vim-golf best practice so far I heard.

How to use %03d on existing data

2012-10-17 Thread stosss
Okay I have something that should be achievable but I can't figure it out. I have a lot of files with data for books. Each file is a book and is in chapters with lines of text. sample of existing data: h21/h2p 1 line of text.br 2 another line of text.br 3 lines of text.br ... 10 More lines of

Re: How to use %03d on existing data

2012-10-17 Thread stosss
: On Wed, 17 Oct 2012, stosss wrote: Okay I have something that should be achievable but I can't figure it out. I have a lot of files with data for books. Each file is a book and is in chapters with lines of text. sample of existing data: h21/h2p 1 line of text.br 2 another line

create line break

2011-12-09 Thread stosss
Hello I want to do :%s@\(br /\)\(1\)@\1linebreak\2@ and have it find br /1 and return: br / 1 when I am finished running search and replace. linebreak = whatever is correct I know CR doesn't work because I tried it. It does this br / 1 I know {ctrl-v}{CR} doesn't work either but that seemed

Re: create line break

2011-12-09 Thread stosss
On Fri, Dec 9, 2011 at 4:43 AM, John Beckett johnb.beck...@gmail.com wrote: stosss wrote: I want to do :%s@\(br /\)\(1\)@\1linebreak\2@ and have it find br /1 and return: br / 1 I'm not sure what return means, but the following will change each br /1 by inserting a newline before the 1

Re: create line break

2011-12-09 Thread stosss
On Fri, Dec 9, 2011 at 11:23 AM, Ben Fritz fritzophre...@gmail.com wrote: On Dec 9, 3:43 am, John Beckett johnb.beck...@gmail.com wrote: I would be inclined to replace br / with br\s*/. I'd go even further, with br\s*/\? Good suggestions by both of you. In this case I knew what the break

Re: how to compare two different regions in the same files?

2010-05-12 Thread stosss
On Wed, May 12, 2010 at 12:57 PM, yixiaodaf...@gmail.com yixiaodaf...@gmail.com wrote: Hi, I want to compare the text in two different parts of the same file. Instead of cut and paste to create two new files, are there any ways to directly compare the two parts in vim? I am using vim 7.2.

Re: Open multiple files in vim

2010-05-10 Thread stosss
On Mon, May 10, 2010 at 3:29 AM, robert song robertsong.ja...@gmail.com wrote: Hello, everyone. In vim, if I try to use :sp *.c to open mutiple C source files, and it will stops with Too many file names error. Is there any way to open multiple files in vim ? Read man vim vim -o[N] vim

  1   2   >