Re: Backslashes in execute normal string

2013-01-11 Thread Marco
On 2013–01–10 Christian Brabandt wrote: If I run /\\bar in normal mode this works. What is wrong with this and how do I rewrite the search so that \bar is found including the backslash? You are searching for \bar, where \b translates to the backspace char. This is described at :h

Re: Cannot paste yanked text after terminal vim is suspended

2013-01-11 Thread Dalibor Nasevic
On Friday, January 11, 2013 2:34:24 AM UTC+1, Tim Chase wrote: 4) spawn xclip to manage the selection/clipboard buffers I actually forgot that I had a workaround for the issue (!?): work-around to copy selected text to system clipboard and prevent it from clearing clipboard when using

Re: efficiently navigating and the jumplist

2013-01-11 Thread Jeroen Budts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 TL;DR: I often use countj and countk to jump to other lines (with 'relativenumber' enabled). Is it possible to add those jumps to the jumplist? And/or what are more efficient ways of jumping to lines which are visible on the screen? Thanks, and my

Re: Backslashes in execute normal string

2013-01-11 Thread Ben Fritz
On Friday, January 11, 2013 2:08:25 AM UTC-6, Marco wrote: This only explains the need to escape a backslash with a backslash, not the need for double-escaping. And I didn't find the information either in :h normal or :h execute. It won't be in :he :normal, because it has nothing to do

imap called function inserts an extra zero.

2013-01-11 Thread neilhwatson
Testing function! Pastefile( FILE ) let arg_file = $HOME./.vim/cf3snippets/.a:FILE let @ = join( readfile( arg_file ), \n ) put endfunction imap //tmp c-r=Pastefile( template.cf )CRESCA The above imap results in Code: bundle agent test { 0} The zero on the last line is not in the

Re: imap called function inserts an extra zero.

2013-01-11 Thread Andy Wokula
Am 11.01.2013 17:55, schrieb neilhwat...@gmail.com: Testing function! Pastefile( FILE ) let arg_file = $HOME./.vim/cf3snippets/.a:FILE let @ = join( readfile( arg_file ), \n ) put endfunction imap //tmp c-r=Pastefile( template.cf )CRESCA The above imap results in Code: bundle

Re: imap called function inserts an extra zero.

2013-01-11 Thread neilhwatson
Thank 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, visit http://www.vim.org/maillist.php

Re: Backslashes in execute normal string

2013-01-11 Thread Marco
On 2013–01–11 Ben Fritz wrote: It won't be in :he :normal, because it has nothing to do with your normal command. :he :execute says it evaluates a string. In order to get a '\' character into a double-quoted string, you need to escape it with another '\' character, like here is a string with

Using autocommand to change scrolloff but it is changed in all buffers

2013-01-11 Thread skeept
Hi, I have the following autocommand set readonly files to autoread autocmd BufRead,BufNewFile * if readonly == 1 | setlocal autoread so=0 \ sbo+=ver,hor | endif I usually set so=2 in my vimrc. After I use vim help the value of so is changed in all buffers to be 0. I am sure that

ctrl-f and ctrl-b don't scroll an entire page

2013-01-11 Thread Charles Campbell
Hello! When I press ctrl-f and ctrl-b I seem to get a full page (in my case, 28 lines) less 2, both forward (via ctrl-f) and backward (via ctrl-b). I'd like to have my mpage plugin (which shows a buffer with multiple contiguous pages) scroll forwards and backwards by a full page. I don't

Re: ctrl-f and ctrl-b don't scroll an entire page

2013-01-11 Thread Phil Dobbin
On 01/11/2013 07:34 PM, Charles Campbell wrote: Hello! When I press ctrl-f and ctrl-b I seem to get a full page (in my case, 28 lines) less 2, both forward (via ctrl-f) and backward (via ctrl-b). I'd like to have my mpage plugin (which shows a buffer with multiple contiguous pages) scroll

Re: Using autocommand to change scrolloff but it is changed in all buffers

2013-01-11 Thread Andy Wokula
Am 11.01.2013 19:54, schrieb skeept: Hi, I have the following autocommand set readonly files to autoread autocmd BufRead,BufNewFile * if readonly == 1 | setlocal autoread so=0 \ sbo+=ver,hor | endif I usually set so=2 in my vimrc. After I use vim help the value of so is

Re: ctrl-f and ctrl-b don't scroll an entire page

2013-01-11 Thread Charles Campbell
Phil Dobbin wrote: On 01/11/2013 07:34 PM, Charles Campbell wrote: Hello! When I press ctrl-f and ctrl-b I seem to get a full page (in my case, 28 lines) less 2, both forward (via ctrl-f) and backward (via ctrl-b). I'd like to have my mpage plugin (which shows a buffer with multiple

Re: Using autocommand to change scrolloff but it is changed in all buffers

2013-01-11 Thread skeept
'scrolloff' is a global option, :setlocal can be used to change a global OK, I understand why this is the case now. I will remove that setting from the autocommand. Thank you. Jorge. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

Re: ctrl-f and ctrl-b don't scroll an entire page

2013-01-11 Thread Andy Wokula
Am 11.01.2013 20:34, schrieb Charles Campbell: Hello! When I press ctrl-f and ctrl-b I seem to get a full page (in my case, 28 lines) less 2, both forward (via ctrl-f) and backward (via ctrl-b). I'd like to have my mpage plugin (which shows a buffer with multiple contiguous pages) scroll

Re: Inconsistent fold opening behaviour after jump to mark within that fold

2013-01-11 Thread Bram Moolenaar
Christian Brabandt wrote: On Mi, 09 Jan 2013, Wiktor Ruben wrote: Hello Vimmers, Let's create sample fold: vim -u NONE -N :set foldmethod=marker i {{{1CR foo bar zazCR foo bar zazEscbmm0za OK, now we have mark 'm' set at the beginning of second 'zaz' within

Re: ctrl-f and ctrl-b don't scroll an entire page

2013-01-11 Thread Charles Campbell
Andy Wokula wrote: Am 11.01.2013 20:34, schrieb Charles Campbell: Hello! When I press ctrl-f and ctrl-b I seem to get a full page (in my case, 28 lines) less 2, both forward (via ctrl-f) and backward (via ctrl-b). I'd like to have my mpage plugin (which shows a buffer with multiple contiguous

Re: ctrl-f and ctrl-b don't scroll an entire page

2013-01-11 Thread Christian Brabandt
Hi Charles! On Fr, 11 Jan 2013, Charles Campbell wrote: Hello! When I press ctrl-f and ctrl-b I seem to get a full page (in my case, 28 lines) less 2, both forward (via ctrl-f) and backward (via ctrl-b). I'd like to have my mpage plugin (which shows a buffer with multiple contiguous

How to paste register over visual selection?

2013-01-11 Thread skeept
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 way of accomplishing this? Regards, Jorge -- You received this message from the vim_use maillist. Do not

Re: How to paste register over visual selection?

2013-01-11 Thread Tim Chase
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 way of accomplishing this? This seems peculiar, as you're doing it right.

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

Re: How to paste register over visual selection?

2013-01-11 Thread Tim Chase
On 01/11/13 19:39, stosss wrote: 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

How to highlight markdown headings in .txt files?

2013-01-11 Thread wolfv
Vim will highlight markdown headings (e.g. #heading1) in files with the “.markdown” suffix. Is there a way to highlight markdown headings in files with the “.txt” sufix? Thank you. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are

Re: Using autocommand to change scrolloff but it is changed in allbuffers

2013-01-11 Thread bilibop project
Hi, message d'origine De: skeept ske...@gmail.com A: vim_use@googlegroups.com Sujet: Using autocommand to change scrolloff but it is changed in allbuffers Date: Fri, 11 Jan 2013 10:54:21 -0800 (PST) Hi, I have the following autocommand set readonly files to autoread

Re: How to highlight markdown headings in .txt files?

2013-01-11 Thread Tim Chase
On 01/11/13 20:10, wolfv wrote: Vim will highlight markdown headings (e.g. #heading1) in files with the “.markdown” suffix. Is there a way to highlight markdown headings in files with the “.txt” sufix? My 7.2 doesn't seem to do markdown by default. However, you can override the 'filetype'

Gvim - Always Opens In Full Screen

2013-01-11 Thread Roy Fulbright
In the past I added the following line to my _vimrc file to have gvim open in full screen:au GUIEnter * simalt ~xNow it opens in full screen even when the above line is commented out. Something elsehas crept in, but I cannot find it. When I start with gvim -u NONE it does not open

Re: Gvim - Always Opens In Full Screen

2013-01-11 Thread Tim Chase
In the past I added the following line to my _vimrc file to have gvim open in full screen:au GUIEnter * simalt ~xNow it opens in full screen even when the above line is commented out. Something elsehas crept in, but I cannot find it. When I start with gvim -u NONE it does not open withfull

Re: How to paste register over visual selection?

2013-01-11 Thread skeept
On Friday, January 11, 2013 8:32:44 PM UTC-5, Tim Chase 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

Re: How to highlight markdown headings in .txt files?

2013-01-11 Thread wolfv
On Friday, January 11, 2013 7:22:43 PM UTC-7, Tim Chase wrote: On 01/11/13 20:10, wolfv wrote: Vim will highlight markdown headings (e.g. #heading1) in files with the �.markdown� suffix. Is there a way to highlight markdown headings in files with the �.txt� sufix?

Re: ctrl-f and ctrl-b don't scroll an entire page

2013-01-11 Thread John Little
On Saturday, January 12, 2013 8:34:24 AM UTC+13, Charles Campbell wrote: about that 2. Is this a page has rows lines less 2 standard, or is it an artifact of my o/s? IIRC vi did that. nvi still does. The 'window' option is clipped to lines minus one, and is only used when there is only

Re: ctrl-f and ctrl-b don't scroll an entire page

2013-01-11 Thread Christian Brabandt
Hi John! On Fr, 11 Jan 2013, John Little wrote: On Saturday, January 12, 2013 8:34:24 AM UTC+13, Charles Campbell wrote: about that 2. Is this a page has rows lines less 2 standard, or is it an artifact of my o/s? IIRC vi did that. nvi still does. The 'window' option is clipped