Re: Highlight just headings?

2013-01-13 Thread Shlomi Fish
Hi wolfv, On Sat, 12 Jan 2013 10:44:03 -0800 (PST) wolfv wrote: > I use VIM to edit .txt files for personal notes and to-do lists. I really > like my setup but sometimes it is hard to pick out the headings. > > The only Markdown convention I use is headings. I turned off Markdown syntax > bec

Re: Yank part of line?

2013-01-13 Thread Tim Chase
On 01/13/13 01:15, stosss wrote: On Sun, Jan 13, 2013 at 1:29 AM, John Beckett wrote: In normal mode, you can of course move the cursor to somewhere within the line and type y$ to yank to the end, or y0 to yank to the beginning, and lots more things. An example could be in your reply above "

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 m

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 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 wrong if my mapp

Re: Macros viewing them?

2013-01-13 Thread Marc Weber
> Maybe I am thinking about this backwards. Maybe I should use macros > for the simple things and mappings for the more complex. I need to Yes - you sohuld, write a function. Another thing you may try: step one, create macro a step two, create macro b step three, create macro c then create

Re: Highlight just headings?

2013-01-13 Thread wolfv
Thanks Shlomi. What is "usr_*"? -- 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

Re: Highlight just headings?

2013-01-13 Thread stosss
On Sun, Jan 13, 2013 at 9:55 AM, wolfv 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 below the text yo

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: Filenames 1 I need to be able to use visual mode to grab only the letters

Re: Use registers in search and replace?

2013-01-13 Thread Bee
On Jan 13, 9:30 am, stosss wrote: > Filenames 1 > > I need to be able to use visual mode to grab only the letters > and not the numbers. File names can be from four letters and > one number to 13 letters and 3 numbers. That makes doing this not sure what result you want the following search repla

Re: Use registers in search and replace?

2013-01-13 Thread Bee
Correction: That should be \a not \w because \w includes 0-9 :s#.*#\1#c Bill -- 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

Re: Use registers in search and replace?

2013-01-13 Thread stosss
On Sun, Jan 13, 2013 at 1:25 PM, Bee wrote: > Correction: > That should be \a not \w because \w includes 0-9 > > :s#.*#\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 that and I don't remember seeing it in the help f

Re: Use registers in search and replace?

2013-01-13 Thread Bee
On Jan 13, 10:37 am, stosss wrote: > On Sun, Jan 13, 2013 at 1:25 PM, Bee wrote: > > Correction: > > That should be \a not \w because \w includes 0-9 > > > :s#.*#\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 Bee
Sorry for the multiple errors, A cold caught me :( > :help substitute should be: :help substitute() Bill -- 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

Re: Use registers in search and replace?

2013-01-13 Thread BPJ
On 2013-01-13 19:37, stosss wrote: On Sun, Jan 13, 2013 at 1:25 PM, Bee wrote: Correction: That should be \a not \w because \w includes 0-9 :s#.*#\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 that and I don't r

Re: Use registers in search and replace?

2013-01-13 Thread stosss
Bill, On Sun, Jan 13, 2013 at 2:26 PM, Bee 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. I will look

Re: Use registers in search and replace?

2013-01-13 Thread Bee
On Jan 13, 12:23 pm, stosss wrote: > Bill, > > On Sun, Jan 13, 2013 at 2:26 PM, Bee 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 t

Re: Use registers in search and replace?

2013-01-13 Thread stosss
bpj On Sun, Jan 13, 2013 at 2:28 PM, BPJ wrote: > On 2013-01-13 19:37, stosss wrote: >> >> On Sun, Jan 13, 2013 at 1:25 PM, Bee wrote: >>> >>> Correction: >>> That should be \a not \w because \w includes 0-9 >>> >>> :s#.*#\1#c >>> >> >> I appreciate the effort but that doesn't solve the problem.

Re: Use registers in search and replace?

2013-01-13 Thread stosss
On Sun, Jan 13, 2013 at 3:29 PM, Bee wrote: > > > On Jan 13, 12:23 pm, stosss wrote: >> Bill, >> >> On Sun, Jan 13, 2013 at 2:26 PM, Bee wrote: >> > Sorry for the multiple errors, >> > A cold caught me :( >> >> >> :help substitute >> >> > should be: >> >> > :help substitute() >> >> I took a clos

Buffer-local unmap of global mapping

2013-01-13 Thread Michael Henry
All, I've got several two-key global mappings for the CtrlP plugin: nnoremap :CtrlPBuffer nnoremap :CtrlP [...] These mappings interact with plugins that provide buffer-local mappings that are prefixes of these multi-key mappings. For example, the Tagbar plugin defines a normal-mode buf

Re: Use registers in search and replace?

2013-01-13 Thread Bee
: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 grouping surround part of the search pattern with \( ... \) then use \1 in the r

Re: Use registers in search and replace?

2013-01-13 Thread stosss
On Sun, Jan 13, 2013 at 3:56 PM, Bee 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 grouping > su

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: Use current file name in the current file?

2013-01-13 Thread Tim Chase
On 01/13/13 15:18, stosss 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 in too many help files today. the current file's name is stored in the "%" register, so you can either paste

Re: Buffer-local unmap of global mapping

2013-01-13 Thread Andy Wokula
Am 13.01.2013 21:42, schrieb Michael Henry: All, I've got several two-key global mappings for the CtrlP plugin: nnoremap :CtrlPBuffer nnoremap :CtrlP [...] These mappings interact with plugins that provide buffer-local mappings that are prefixes of these multi-key mappings. For exa

How to get to EOF, not last line ???

2013-01-13 Thread Aggelos Kolaitis
Hey, I 'm trying to implement a "control all" mapping with the following command at my .vimrc :map ggvG (The escape is to get out of insert mode if needed). However, that way the last line of the file is not selected, which apparently is how G works. So, is there a key to use instead of G to

How can I make the found location of a search standout in GVIM?

2013-01-13 Thread Steve Young
Hi All, When performing a search, the found location is indicated by an outline box cursor. How can I make it standout from the rest of the text such as blink, solid bright yellow, etc. I find myself looking thru the entire screen trying to see this indicator. I'm using the default screen col

Map control all error

2013-01-13 Thread neoaggelos
Hey I'm trying to create a control all mapping with this: :map ggvG However, the last line isn't selected. I know that G is the problem, what I would like to know is the key to get to EOF instead of the last line -- You received this message from the "vim_use" maillist. Do not top-post! Type

Re: Map control all error

2013-01-13 Thread Michael Henry
On 01/13/2013 05:20 PM, neoagge...@yahoo.gr wrote: > Hey I'm trying to create a control all mapping with this: > > :map ggvG > > However, the last line isn't selected. I know that G is the > problem, what I would like to know is the key to get to EOF > instead of the last line If you really want

Re: How can I make the found location of a search standout in GVIM?

2013-01-13 Thread Michael Henry
On 01/13/2013 04:37 PM, Steve Young wrote: > When performing a search, the found location is indicated by > an outline box cursor. How can I make it standout from the > rest of the text such as blink, solid bright yellow, etc. I like Vim's 'hlsearch' option. You can enable it via: :set hlsearc

Re: How to get to EOF, not last line ???

2013-01-13 Thread Gary Johnson
On 2013-01-13, Aggelos Kolaitis wrote: > Hey, I 'm trying to implement a "control all" mapping with the > following command at my .vimrc > > :map ggvG > > (The escape is to get out of insert mode if needed). > > However, that way the last line of the file is not selected, which > apparently is

Re: How to get to EOF, not last line ???

2013-01-13 Thread Tim Chase
On 01/13/13 18:45, Gary Johnson wrote: If for some reason you would rather select characterwise, you could use this: :map gg^vG$ I'd recommend using "0" instead of "^" in case there is some leading white-space: :map gg0vG$ Or, for parity, use "g_" instead of "$": :map gg^vGg_

Re: Highlight just headings?

2013-01-13 Thread wolfv
Thanks Jack. I was hoping others have already done this. Not worth the development effort just for me to use. -- 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.p

Re: How to get to EOF, not last line ???

2013-01-13 Thread Gary Johnson
On 2013-01-13, Tim Chase wrote: > On 01/13/13 18:45, Gary Johnson wrote: > >If for some reason you would rather select characterwise, you could > >use this: > > > > :map gg^vG$ > > I'd recommend using "0" instead of "^" in case there is some leading > white-space: > > :map gg0vG$ Oops.

Error with autostarting in vim-indent-guides

2013-01-13 Thread Gautier DI FOLCO
Hi, I'm trying to use vim-indent-guides ( https://github.com/nathanaelkane/vim-indent-guides/issues) with Vim 7.3.682 on Fedora 17. I have set this in my vimrc: let g:indent_guides_start_level = 0 let g:indent_guides_guide_size = 1 let g:indent_guides_enable_on_vim_startup = 1 But,