<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-881</id>
	<title>Nabble - VIM</title>
	<updated>2009-12-20T07:36:35Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/VIM-f881.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/VIM-f881.html" />
	<subtitle type="html">Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. It's useful whether you're already using vi or using a different editor. VIM home is &lt;a href=&quot;http://www.vim.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26864464</id>
	<title>Re: [ANN] pyclewn release 1.0</title>
	<published>2009-12-20T07:36:35Z</published>
	<updated>2009-12-20T07:36:35Z</updated>
	<author>
		<name>Sergey Khorev</name>
	</author>
	<content type="html">The site tells that pyclewn runs on all unix platforms supported by
&lt;br&gt;python and Windows!
&lt;br&gt;&lt;br&gt;I was thinking of porting clewn to Windows for years, now I don't have to :)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sergey Khorev
&lt;br&gt;&lt;a href=&quot;http://sites.google.com/site/khorser&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sites.google.com/site/khorser&lt;/a&gt;&lt;br&gt;Can anybody think of a good tagline I can steal?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--pyclewn-release-1.0-tp26863583p26864464.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26864250</id>
	<title>Re: To print module's name</title>
	<published>2009-12-20T07:10:58Z</published>
	<updated>2009-12-20T07:10:58Z</updated>
	<author>
		<name>KingTiger.Lu</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=iso-8859-1&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18702&quot;&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;Hi. &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;A&amp;nbsp;simply code .&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;map &amp;lt;F8&amp;gt; &amp;lt;ESC&amp;gt;:echo 
getline(search('^\s*\&amp;lt;\(entity\|module\)\&amp;gt;\s*\w\+','bWn'))&amp;lt;CR&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;ps: my outlook&amp;nbsp; express can't post bottom.. - 
-!,,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;BR&gt;While browsing in verilog or vhdl code, there is 
  a need to get which &quot;module&quot; or &quot;entity&quot; (these are the required keywords) the 
  line is.&lt;BR&gt;&lt;BR&gt;My solution is maybe writing a function and map a key to call 
  this function.&lt;BR&gt;&lt;BR&gt;Any example code for the function would be very 
  well...&lt;BR&gt;&lt;BR&gt;Thanks,&lt;BR&gt;&lt;BR&gt;Burak&lt;BR&gt;&lt;BR&gt;PS:&lt;BR&gt;&lt;BR&gt;The case 
  is&lt;BR&gt;--------------------------------------&lt;BR&gt;module 
  aaa&lt;BR&gt;...&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;the cursor here 
  somewhere&amp;gt;&lt;BR&gt;...&lt;BR&gt;endmodule&lt;BR&gt;--------------------------------------&lt;BR&gt;Just 
  press a key (or key combination) to get (or print) aaa&lt;BR&gt;
  &lt;P&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;

&lt;p&gt;&lt;/p&gt;

-- &lt;br /&gt;
You received this message from the &amp;quot;vim_use&amp;quot; maillist.&lt;br /&gt;
For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/To-print-module%27s-name-tp26844562p26864250.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26864204</id>
	<title>Re: To print module's name</title>
	<published>2009-12-20T07:04:52Z</published>
	<updated>2009-12-20T07:04:52Z</updated>
	<author>
		<name>KingTiger.Lu</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=iso-8859-1&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18702&quot;&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV&gt;The case is&lt;BR&gt;--------------------------------------&lt;BR&gt;module 
  aaa&lt;BR&gt;...&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;the cursor here 
  somewhere&amp;gt;&lt;BR&gt;...&lt;BR&gt;endmodule&lt;BR&gt;--------------------------------------&lt;BR&gt;Just 
  press a key (or key combination) to get (or print) aaa&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;adf &lt;/FONT&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;

&lt;p&gt;&lt;/p&gt;

-- &lt;br /&gt;
You received this message from the &amp;quot;vim_use&amp;quot; maillist.&lt;br /&gt;
For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/To-print-module%27s-name-tp26844562p26864204.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26864022</id>
	<title>Re: vimrc ignores formatoptions</title>
	<published>2009-12-20T06:35:55Z</published>
	<updated>2009-12-20T06:35:55Z</updated>
	<author>
		<name>KingTiger.Lu</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; yet when I edit a file with vim and type:
&lt;br&gt;&amp;gt; :set fo
&lt;br&gt;&amp;gt; I see formatoptions=croql
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; which vi produces:
&lt;br&gt;&amp;gt; vi &amp;nbsp; &amp;nbsp; /usr/bin/vim
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When I change ts=8 and re-run vi, it changes, so it appears
&lt;br&gt;&amp;gt; its reading my file but ignoring 'fo'. &amp;nbsp;Can someone tell me how
&lt;br&gt;&amp;gt; to fix this or why its happening? &amp;nbsp;Maybe its a bug?
&lt;/div&gt;&lt;br&gt;you can set like this :
&lt;br&gt;au filetype &amp;nbsp;yourfiletype &amp;nbsp; set fo-=r 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/vimrc-ignores-formatoptions-tp26859774p26864022.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26863583</id>
	<title>[ANN] pyclewn release 1.0</title>
	<published>2009-12-20T05:37:26Z</published>
	<updated>2009-12-20T05:37:26Z</updated>
	<author>
		<name>Xavier de Gaye-2</name>
	</author>
	<content type="html">Pyclewn 1.0 has been released at &lt;a href=&quot;http://pyclewn.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pyclewn.sourceforge.net/&lt;/a&gt;&lt;br&gt;Pyclewn is a python program that allows the use of gvim as a front end
&lt;br&gt;to a debugger.
&lt;br&gt;&lt;br&gt;Xavier
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ANN--pyclewn-release-1.0-tp26863583p26863583.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26862625</id>
	<title>Re: automatic lines setting?</title>
	<published>2009-12-20T03:31:48Z</published>
	<updated>2009-12-20T03:31:48Z</updated>
	<author>
		<name>John Little-4</name>
	</author>
	<content type="html">Earler, I said:
&lt;br&gt;&amp;gt; If I do
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     :set lines=500|echomsg &amp;lines
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get 500 in the message history, but with
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     :set lines=500|redraw|echomsg &amp;lines
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get 87.
&lt;br&gt;&lt;br&gt;I just tried that on windows (earlier was vim-gtk) and set lines=500|
&lt;br&gt;echomsg &amp;lines gives 76, but adding your lines code to _gvimrc doesn't
&lt;br&gt;work, with or without a redraw.
&lt;br&gt;&lt;br&gt;:help gui &amp;nbsp;suggests using the GUIEnter event. &amp;nbsp;I tried:
&lt;br&gt;&lt;br&gt;func Autolines()
&lt;br&gt;set lines=500 &amp;nbsp;&amp;quot; over zealous numbers of lines
&lt;br&gt;let &amp;lines = ((float2nr(0.85*&amp;lines)&amp;gt;52)?float2nr(0.85*&amp;lines):52)
&lt;br&gt;endfunc
&lt;br&gt;autocmd GUIEnter * call Autolines()
&lt;br&gt;&lt;br&gt;in my _gvimrc on windows and it seemed to work, lines was set to 64.
&lt;br&gt;I'll try it tomorrow on my vim-gtk on Kubuntu.
&lt;br&gt;&lt;br&gt;Regards, John
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/automatic-lines-setting--tp26852063p26862625.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860947</id>
	<title>Re: backup filename including date+time (was: Setting up my vimrc)</title>
	<published>2009-12-19T20:30:47Z</published>
	<updated>2009-12-19T20:30:47Z</updated>
	<author>
		<name>kennethadammiller-2</name>
	</author>
	<content type="html">Oh hey I got it fixed. i added this to ~/.vim/plugin/backupsetting and
&lt;br&gt;it works great!
&lt;br&gt;&lt;br&gt;yea when I posted that I hadn't really thought through the vimrc
&lt;br&gt;commands at the bottom, i just thought it would make the directories
&lt;br&gt;automatically.
&lt;br&gt;&lt;br&gt;&lt;br&gt;if !has_key(s:, 'origbdir')
&lt;br&gt;&amp;nbsp; let s:origbdir = &amp;bdir
&lt;br&gt;endif
&lt;br&gt;&lt;br&gt;function! s:ChangeBackupSettings()
&lt;br&gt;&amp;nbsp; let dir = $HOME . &amp;quot;/Shortcuts/Backups/&amp;quot; . strftime(&amp;quot;%y%m%d&amp;quot;)
&lt;br&gt;&lt;br&gt;&amp;nbsp; let &amp;backupext ='.' . strftime(&amp;quot;%H%M%S&amp;quot;) . '.bak'
&lt;br&gt;&lt;br&gt;&amp;nbsp; if ! filewritable(dir)
&lt;br&gt;&amp;nbsp; &amp;nbsp; call mkdir(dir, &amp;quot;p&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; if filewritable(dir)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; let &amp;bdir = dir . ',' . s:origbdir
&lt;br&gt;&amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; echoerr &amp;quot;Failed to create backup directory, leaving unchanged!&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; endif
&lt;br&gt;&amp;nbsp; endif
&lt;br&gt;endfunction
&lt;br&gt;&lt;br&gt;augroup BackupSettings
&lt;br&gt;&amp;nbsp; au!
&lt;br&gt;&amp;nbsp; autocmd BufWritePre * call s:ChangeBackupSettings()
&lt;br&gt;augroup END
&lt;br&gt;&lt;br&gt;On Dec 19, 10:07 pm, Sven Guckes &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26860947&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;guc...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; * kennethadammiller &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26860947&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kennethadammil...@...&lt;/a&gt;&amp;gt; [2009-12-20 04:54]:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I'm a beginner and newbie to vim.
&lt;br&gt;&amp;gt; &amp;gt; I was just going to ask about how to set up my vimrc to
&lt;br&gt;&amp;gt; &amp;gt; backup files to a directory that is depended on the date
&lt;br&gt;&amp;gt; &amp;gt; with a file extension that is dependent on the time.
&lt;br&gt;&amp;gt; &amp;gt; This is the current contents of my vimrc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; set nocompatible autoindent ruler incsearch history=300 so=4
&lt;br&gt;&amp;gt; &amp;gt; syntax enable
&lt;br&gt;&amp;gt; &amp;gt; filetype on
&lt;br&gt;&amp;gt; &amp;gt; set patchmode=.orig
&lt;br&gt;&amp;gt; &amp;gt; set backup
&lt;br&gt;&amp;gt; &amp;gt; let &amp;backupdir=&amp;quot;/home/adam/Shortcuts/Backups/&amp;quot; . strftime(&amp;quot;%y%m%d&amp;quot;)
&lt;br&gt;&amp;gt; &amp;gt; let &amp;backupext=strftime(&amp;quot;%H%M%S&amp;quot;) . &amp;quot;.bak&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I was guided to use :let &amp;back... by some
&lt;br&gt;&amp;gt; &amp;gt; good folks on the IRC channel...
&lt;br&gt;&amp;gt; &amp;gt; whenever I try to do it, though, I get
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;E510: Can't make backup file (use ! to override)&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; so.. you are creating a name for a *directory* -
&lt;br&gt;&amp;gt; but where is the command that *creates* it, too?
&lt;br&gt;&amp;gt; vim does not creates directories for you - sorry!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; how do i get it to do what I want?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i suppose you need to run a command that
&lt;br&gt;&amp;gt; creates the directory before you use it:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     :!mkdir &amp;backupdir
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i think you should have added the year+month+day
&lt;br&gt;&amp;gt; as part of the filename rather than the directory:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   let &amp;backupdir=&amp;quot;/home/adam/Shortcuts/Backups/&amp;quot;
&lt;br&gt;&amp;gt;   let &amp;backupext=strftime(&amp;quot;%y-%m-%d.%H%M%S.bak&amp;quot;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mind you:  untested.  just some ideas.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sven
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-my-vimrc-tp26860817p26860947.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860867</id>
	<title>backup filename including date+time (was: Setting up my vimrc)</title>
	<published>2009-12-19T20:07:36Z</published>
	<updated>2009-12-19T20:07:36Z</updated>
	<author>
		<name>Sven Guckes-3</name>
	</author>
	<content type="html">* kennethadammiller &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26860867&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kennethadammiller@...&lt;/a&gt;&amp;gt; [2009-12-20 04:54]:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm a beginner and newbie to vim.
&lt;br&gt;&amp;gt; I was just going to ask about how to set up my vimrc to
&lt;br&gt;&amp;gt; backup files to a directory that is depended on the date
&lt;br&gt;&amp;gt; with a file extension that is dependent on the time.
&lt;br&gt;&amp;gt; This is the current contents of my vimrc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set nocompatible autoindent ruler incsearch history=300 so=4
&lt;br&gt;&amp;gt; syntax enable
&lt;br&gt;&amp;gt; filetype on
&lt;br&gt;&amp;gt; set patchmode=.orig
&lt;br&gt;&amp;gt; set backup
&lt;br&gt;&amp;gt; let &amp;backupdir=&amp;quot;/home/adam/Shortcuts/Backups/&amp;quot; . strftime(&amp;quot;%y%m%d&amp;quot;)
&lt;br&gt;&amp;gt; let &amp;backupext=strftime(&amp;quot;%H%M%S&amp;quot;) . &amp;quot;.bak&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I was guided to use :let &amp;back... by some
&lt;br&gt;&amp;gt; good folks on the IRC channel...
&lt;br&gt;&amp;gt; whenever I try to do it, though, I get
&lt;br&gt;&amp;gt; &amp;quot;E510: Can't make backup file (use ! to override)&amp;quot;
&lt;/div&gt;&lt;br&gt;so.. you are creating a name for a *directory* -
&lt;br&gt;but where is the command that *creates* it, too?
&lt;br&gt;vim does not creates directories for you - sorry!
&lt;br&gt;&lt;br&gt;&amp;gt; how do i get it to do what I want?
&lt;br&gt;&lt;br&gt;i suppose you need to run a command that
&lt;br&gt;creates the directory before you use it:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; :!mkdir &amp;backupdir
&lt;br&gt;&lt;br&gt;i think you should have added the year+month+day
&lt;br&gt;as part of the filename rather than the directory:
&lt;br&gt;&lt;br&gt;&amp;nbsp; let &amp;backupdir=&amp;quot;/home/adam/Shortcuts/Backups/&amp;quot;
&lt;br&gt;&amp;nbsp; let &amp;backupext=strftime(&amp;quot;%y-%m-%d.%H%M%S.bak&amp;quot;)
&lt;br&gt;&lt;br&gt;mind you: &amp;nbsp;untested. &amp;nbsp;just some ideas.
&lt;br&gt;&lt;br&gt;Sven
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-my-vimrc-tp26860817p26860867.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860809</id>
	<title>Re: vimrc ignores formatoptions</title>
	<published>2009-12-19T19:50:12Z</published>
	<updated>2009-12-19T19:50:12Z</updated>
	<author>
		<name>James Michael Fultz-2</name>
	</author>
	<content type="html">* Bob &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26860809&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeep@...&lt;/a&gt;&amp;gt; [2009-12-19 15:41 -0800]:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi-
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; in my ~/.vimrc file I have:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; :set ts=4
&lt;br&gt;&amp;gt; :set nobackup
&lt;br&gt;&amp;gt; :set ai
&lt;br&gt;&amp;gt; :set nocindent
&lt;br&gt;&amp;gt; :set nosi
&lt;br&gt;&amp;gt; :set fo-=r
&lt;br&gt;&amp;gt; :set ruler
&lt;br&gt;&amp;gt; :set tags=./tags
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; yet when I edit a file with vim and type:
&lt;br&gt;&amp;gt; :set fo
&lt;br&gt;&amp;gt; I see formatoptions=croql
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; which vi produces:
&lt;br&gt;&amp;gt; vi &amp;nbsp; &amp;nbsp; /usr/bin/vim
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When I change ts=8 and re-run vi, it changes, so it appears
&lt;br&gt;&amp;gt; its reading my file but ignoring 'fo'. &amp;nbsp;Can someone tell me how
&lt;br&gt;&amp;gt; to fix this or why its happening? &amp;nbsp;Maybe its a bug?
&lt;/div&gt;&lt;br&gt;Try ':verbose set fo' to see where formatoptions is being (re)set. &amp;nbsp;It
&lt;br&gt;may be an override from a filetype plugin or a local vimrc if you have
&lt;br&gt;exrc set.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/vimrc-ignores-formatoptions-tp26859774p26860809.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860770</id>
	<title>Re: vimrc ignores formatoptions</title>
	<published>2009-12-19T19:40:34Z</published>
	<updated>2009-12-19T19:40:34Z</updated>
	<author>
		<name>scott-268</name>
	</author>
	<content type="html">On Saturday 19 December 2009 05:41:10 pm Bob wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi-
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; in my ~/.vimrc file I have:
&lt;br&gt;&amp;gt; :set ts=4
&lt;br&gt;&amp;gt; :set nobackup
&lt;br&gt;&amp;gt; :set ai
&lt;br&gt;&amp;gt; :set nocindent
&lt;br&gt;&amp;gt; :set nosi
&lt;br&gt;&amp;gt; :set fo-=r
&lt;br&gt;&amp;gt; :set ruler
&lt;br&gt;&amp;gt; :set tags=./tags
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; yet when I edit a file with vim and type:
&lt;br&gt;&amp;gt; :set fo
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I see formatoptions=croql
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; which vi produces:
&lt;br&gt;&amp;gt; vi &amp;nbsp; &amp;nbsp; /usr/bin/vim
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When I change ts=8 and re-run vi, it changes, so it appears
&lt;br&gt;&amp;gt; its reading my file but ignoring 'fo'. &amp;nbsp;Can someone tell me
&lt;br&gt;&amp;gt; &amp;nbsp;how to fix this or why its happening? &amp;nbsp;Maybe its a bug?
&lt;/div&gt;&lt;br&gt;many things can change your formatoption setting
&lt;br&gt;&lt;br&gt;one might be exposed by executing
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; :verbose set fo?
&lt;br&gt;&lt;br&gt;more clues might come from 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; :scriptnames
&lt;br&gt;&lt;br&gt;poke around
&lt;br&gt;&lt;br&gt;sc
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/vimrc-ignores-formatoptions-tp26859774p26860770.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860817</id>
	<title>Setting up my vimrc</title>
	<published>2009-12-19T19:09:49Z</published>
	<updated>2009-12-19T19:09:49Z</updated>
	<author>
		<name>kennethadammiller-2</name>
	</author>
	<content type="html">I'm a beginner and newbie to vim.
&lt;br&gt;I was just going to ask about how to set up my vimrc to backup files
&lt;br&gt;to a directory that is depended on the date with a file extension that
&lt;br&gt;is dependent on the time
&lt;br&gt;This is the current contents of my vimrc.
&lt;br&gt;&lt;br&gt;:set nocompatible
&lt;br&gt;:set autoindent
&lt;br&gt;:set history=300
&lt;br&gt;:set ruler
&lt;br&gt;:set incsearch
&lt;br&gt;:syntax enable
&lt;br&gt;:filetype on
&lt;br&gt;:set so=4
&lt;br&gt;:set patchmode=.orig
&lt;br&gt;:set backup
&lt;br&gt;:let &amp;backupdir=&amp;quot;/home/adam/Shortcuts/Backups/&amp;quot; . strftime(&amp;quot;%y%m%d&amp;quot;)
&lt;br&gt;:let &amp;backupext=strftime(&amp;quot;%H%M%S&amp;quot;) . &amp;quot;.bak&amp;quot;
&lt;br&gt;&lt;br&gt;I was guided to use :let &amp;back... by some good folks on the IRC
&lt;br&gt;channel...
&lt;br&gt;whenever I try to do it, though, I get &amp;quot;E510: Can't make backup file
&lt;br&gt;(use ! to override)`
&lt;br&gt;I'm sure you can understand from what I've got here what I want it to
&lt;br&gt;do. Please help me.
&lt;br&gt;how do i get it to do what I want?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-my-vimrc-tp26860817p26860817.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860552</id>
	<title>Re: automatic lines setting?</title>
	<published>2009-12-19T18:37:18Z</published>
	<updated>2009-12-19T18:37:18Z</updated>
	<author>
		<name>Ling F. Zhang</name>
	</author>
	<content type="html">John,
&lt;br&gt;&lt;br&gt;redraw works, but it leaves a lot of crap at the terminal (very long,
&lt;br&gt;see pastebin link here:)
&lt;br&gt;&lt;a href=&quot;http://pastebin.com/m4cecfb20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/m4cecfb20&lt;/a&gt;&lt;br&gt;&lt;br&gt;here the output counts up to 100 because I used set lines=100 instead
&lt;br&gt;of 500.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;MZ
&lt;br&gt;&lt;br&gt;On Dec 19, 4:06 pm, John Little &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26860552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john.b.lit...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Dec 19, 2:14 pm, Mathieu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26860552&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lingfe...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; $ head .gvimrc
&lt;br&gt;&amp;gt; &amp;gt; set lines=500  &amp;quot; over zelous numbers of lines
&lt;br&gt;&amp;gt; &amp;gt; let &amp;lines = ((float2nr(0.85*&amp;lines)&amp;gt;52)?float2nr(0.85*&amp;lines):52)
&lt;br&gt;&amp;gt; &amp;gt; ...If I issue the first two commands by hand after
&lt;br&gt;&amp;gt; &amp;gt; gvim has open. It will do what I want it to do.  Why don't it work as
&lt;br&gt;&amp;gt; &amp;gt; part of .gvimrc?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is an implicit redraw between them when &amp;quot;issue&amp;quot; them by hand.
&lt;br&gt;&amp;gt; If I do
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     :set lines=500|echomsg &amp;lines
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get 500 in the message history, but with
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     :set lines=500|redraw|echomsg &amp;lines
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get 87.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You could try putting a redraw in your .gvimrc, after the set
&lt;br&gt;&amp;gt; lines=500.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards, John
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/automatic-lines-setting--tp26852063p26860552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860292</id>
	<title>Re: automatic lines setting?</title>
	<published>2009-12-19T17:37:10Z</published>
	<updated>2009-12-19T17:37:10Z</updated>
	<author>
		<name>Bee-9</name>
	</author>
	<content type="html">Mathieu wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Here the first few lines of my .gvimrc:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $ head .gvimrc
&lt;br&gt;&amp;gt; set lines=500 &amp;nbsp;&amp;quot; over zelous numbers of lines
&lt;br&gt;&amp;gt; let &amp;lines = ((float2nr(0.85*&amp;lines)&amp;gt;52)?float2nr(0.85*&amp;lines):52)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set columns=85
&lt;br&gt;&amp;gt; &amp;quot; double the size of window if running diff
&lt;br&gt;&amp;gt; if &amp;diff
&lt;br&gt;&amp;gt; &amp;nbsp; let &amp;columns = ((&amp;columns * 2 &amp;gt; 160)? 160: &amp;columns*2)
&lt;br&gt;&amp;gt; endif
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I wanted gvim to use 85% of the height of the screen or 52 lines,
&lt;br&gt;&amp;gt; whichever is greater. &amp;nbsp;If I issue the first two commands by hand after
&lt;br&gt;&amp;gt; gvim has open. It will do what I want it to do. &amp;nbsp;Why don't it work as
&lt;br&gt;&amp;gt; part of .gvimrc?
&lt;/div&gt;&lt;br&gt;From eval.txt line 665
&lt;br&gt;You should always put a space before the ':', otherwise it can be
&lt;br&gt;mistaken for use in a variable such as &amp;quot;a:1&amp;quot;.
&lt;br&gt;&lt;br&gt;Does that help?
&lt;br&gt;--
&lt;br&gt;Bill
&lt;br&gt;Santa Cruz, California
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/automatic-lines-setting--tp26852063p26860292.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860109</id>
	<title>Re: Weird behaviour with the manpage view plugin</title>
	<published>2009-12-19T16:54:11Z</published>
	<updated>2009-12-19T16:54:11Z</updated>
	<author>
		<name>andrewashbacher</name>
	</author>
	<content type="html">Unfortunately, after installing v23d, I'm still having the same
&lt;br&gt;issue. &amp;nbsp;Happening in both vim and gvim v7.2.245. &amp;nbsp;&amp;quot;:Man &amp;lt;fn_name&amp;gt;&amp;quot;
&lt;br&gt;continues to work.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Andrew
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 18, 11:09 am, Charles Campbell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26860109&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Charles.E.Campb...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; andrewashbacher wrote:
&lt;br&gt;&amp;gt; &amp;gt; Dr Chip,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks for a great plugin.  I also am having this problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Here is how I replicate the issue (CLI or GUI):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 1. Open a php file.
&lt;br&gt;&amp;gt; &amp;gt; 2. Type &amp;lt;?php ltrim('__abc', '_'); ?&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 3. Move cursor anywhere on top of 'ltrim'.
&lt;br&gt;&amp;gt; &amp;gt; 4. Press K -- this should work bringing up the PHP manual entry for
&lt;br&gt;&amp;gt; &amp;gt; ltrim in links.
&lt;br&gt;&amp;gt; &amp;gt; 5. :q to close the manual
&lt;br&gt;&amp;gt; &amp;gt; 6. Press K again -- this returns &amp;quot;E129: Function name required&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Note that :Man ltrim continues to work.  Hope this helps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please try manpageview v23d; I haven't finished working with it, but at
&lt;br&gt;&amp;gt; least it works for your example.
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://mysite.verizon.net/astronaut/vim/index.html#MANPAGEVIEW&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mysite.verizon.net/astronaut/vim/index.html#MANPAGEVIEW&lt;/a&gt;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Chip Campbell
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Weird-behaviour-with-the-manpage-view-plugin-tp26520351p26860109.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26859865</id>
	<title>Re: automatic lines setting?</title>
	<published>2009-12-19T16:06:24Z</published>
	<updated>2009-12-19T16:06:24Z</updated>
	<author>
		<name>John Little-4</name>
	</author>
	<content type="html">On Dec 19, 2:14 pm, Mathieu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26859865&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lingfe...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $ head .gvimrc
&lt;br&gt;&amp;gt; set lines=500  &amp;quot; over zelous numbers of lines
&lt;br&gt;&amp;gt; let &amp;lines = ((float2nr(0.85*&amp;lines)&amp;gt;52)?float2nr(0.85*&amp;lines):52)
&lt;br&gt;&lt;br&gt;&amp;gt; ...If I issue the first two commands by hand after
&lt;br&gt;&amp;gt; gvim has open. It will do what I want it to do.  Why don't it work as
&lt;br&gt;&amp;gt; part of .gvimrc?
&lt;br&gt;&lt;br&gt;There is an implicit redraw between them when &amp;quot;issue&amp;quot; them by hand.
&lt;br&gt;If I do
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; :set lines=500|echomsg &amp;lines
&lt;br&gt;&lt;br&gt;I get 500 in the message history, but with
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; :set lines=500|redraw|echomsg &amp;lines
&lt;br&gt;&lt;br&gt;I get 87.
&lt;br&gt;&lt;br&gt;You could try putting a redraw in your .gvimrc, after the set
&lt;br&gt;lines=500.
&lt;br&gt;&lt;br&gt;Regards, John
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/automatic-lines-setting--tp26852063p26859865.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26859774</id>
	<title>vimrc ignores formatoptions</title>
	<published>2009-12-19T15:41:10Z</published>
	<updated>2009-12-19T15:41:10Z</updated>
	<author>
		<name>Jeff Lacki</name>
	</author>
	<content type="html">Hi-
&lt;br&gt;&lt;br&gt;in my ~/.vimrc file I have:
&lt;br&gt;&lt;br&gt;:set ts=4
&lt;br&gt;:set nobackup
&lt;br&gt;:set ai
&lt;br&gt;:set nocindent
&lt;br&gt;:set nosi
&lt;br&gt;:set fo-=r
&lt;br&gt;:set ruler
&lt;br&gt;:set tags=./tags
&lt;br&gt;&lt;br&gt;yet when I edit a file with vim and type:
&lt;br&gt;:set fo
&lt;br&gt;I see formatoptions=croql
&lt;br&gt;&lt;br&gt;which vi produces:
&lt;br&gt;vi &amp;nbsp; &amp;nbsp; /usr/bin/vim
&lt;br&gt;&lt;br&gt;When I change ts=8 and re-run vi, it changes, so it appears
&lt;br&gt;its reading my file but ignoring 'fo'. &amp;nbsp;Can someone tell me how
&lt;br&gt;to fix this or why its happening? &amp;nbsp;Maybe its a bug?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/vimrc-ignores-formatoptions-tp26859774p26859774.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26857098</id>
	<title>Re: timed commands?</title>
	<published>2009-12-19T09:45:36Z</published>
	<updated>2009-12-19T09:45:36Z</updated>
	<author>
		<name>Tony Mechelynck-2</name>
	</author>
	<content type="html">On 24/11/09 17:39, Lev Lvovsky wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'd like to run an ':mksession!' on a regular basis (automatically) -
&lt;br&gt;&amp;gt; is there a generic timer function which I can wrap around that command
&lt;br&gt;&amp;gt; (running it ever hour for example)?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks,
&lt;br&gt;&amp;gt; -lev
&lt;br&gt;&lt;br&gt;IIUC, you want to make sure that Vim will restart with &amp;quot;the same windows 
&lt;br&gt;as when it last closed&amp;quot;, right? For that purpose I would recommend the 
&lt;br&gt;following:
&lt;br&gt;&lt;br&gt;a) to have Vim save the session at shutdown:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; autocmd VimLeave *
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \ if exists('v:dying') &amp;&amp; v:dying &amp;lt; 2 | mksession! | endif
&lt;br&gt;&lt;br&gt;I _think_ this will even run at interruptible crashes (e.g., after an 
&lt;br&gt;illegal opcode or a memory protect violation, but not if the operator 
&lt;br&gt;forces an uninterruptible hard crash). It may or may not run at an AC 
&lt;br&gt;power failure, depending on whether your computer can run a few seconds 
&lt;br&gt;after the AC fails, and on how long the OS will leave Vim for its 
&lt;br&gt;&amp;quot;emergency closedown&amp;quot;.
&lt;br&gt;&lt;br&gt;The test for v:dying &amp;lt; 2 is to avoid doing it again if you get a second 
&lt;br&gt;crash after intercepting a first one (however, IIUC on non-Unix-like 
&lt;br&gt;OSes this variable is always either 0 or undefined, I'm not sure which) 
&lt;br&gt;-- see &amp;quot;:help v:dying&amp;quot;.
&lt;br&gt;&lt;br&gt;b) to make it easier on you to save your session while working:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nnoremap &amp;lt;F12&amp;gt; :mks!&amp;lt;CR&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xnoremap &amp;lt;F12&amp;gt; :&amp;lt;C-U&amp;gt;mks!&amp;lt;CR&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snoremap &amp;lt;F12&amp;gt; &amp;lt;C-O&amp;gt;:&amp;lt;C-U&amp;gt;mks!&amp;lt;CR&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inoremap &amp;lt;F12&amp;gt; &amp;lt;C-O&amp;gt;:mks!&amp;lt;CR&amp;gt;
&lt;br&gt;&lt;br&gt;c) Educate yourself to type :qa or :xa or some variation on them 
&lt;br&gt;_before_ you close the OS, so that a &amp;quot;normal&amp;quot; system shutdown won't 
&lt;br&gt;cause a &amp;quot;crash&amp;quot; of Vim.
&lt;br&gt;&lt;br&gt;Note that (b) above is not strictly necessary on Linux if running gvim 
&lt;br&gt;with GTK2/Gnome2 GUI under KDE (KDE3, at least), where it will save its 
&lt;br&gt;session transparently at X11 closedown; but, strangely enough, the same 
&lt;br&gt;doesn't apply in a Gnome2 winmanager -- or at least that's what I'm 
&lt;br&gt;experiencing at the moment.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Tony.
&lt;br&gt;-- 
&lt;br&gt;The more things change, the more they stay insane.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/timed-commands--tp26500439p26857098.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26856038</id>
	<title>Re: syntax highlight :g/pattern/p in separate buffer?</title>
	<published>2009-12-19T07:43:55Z</published>
	<updated>2009-12-19T07:43:55Z</updated>
	<author>
		<name>john_oshea</name>
	</author>
	<content type="html">On 19/12/2009 12:05, Reckoner wrote:
&lt;br&gt;&amp;gt; I use :g/pattern/p frequently to see where functions are used in a
&lt;br&gt;&amp;gt; very large program. It would be very helpful to be able to see the
&lt;br&gt;&amp;gt; output of this in a separate buffer with corresponding syntax
&lt;br&gt;&amp;gt; highlighting.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is this possible? Is there a plug-in for this?
&lt;br&gt;&lt;br&gt;You might want to give the Tag List plugin a try:
&lt;br&gt;&lt;br&gt;&amp;lt;&lt;a href=&quot;http://vim-taglist.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://vim-taglist.sourceforge.net/&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;From its &amp;quot;Features&amp;quot; page:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The taglist plugin provides the following features:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Displays the tags (functions, classes, structures, variables, etc.) defined in a file in a vertically or horizontally split Vim window.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * In GUI Vim, optionally displays the tags in the Tags drop-down menu and in the popup menu.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Automatically updates the taglist window as you switch between files/buffers. As you open new files, the tags defined in the new files are added to the existing file list and the tags defined in all the files are displayed grouped by the filename.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * When a tag name is selected from the taglist window, positions the cursor at the definition of the tag in the source file.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Automatically highlights the current tag name.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Groups the tags by their type and displays them in a foldable tree.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Can display the prototype and scope of a tag.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Can optionally display the tag prototype instead of the tag name in the taglist window.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * The tag list can be sorted either by name or by chronological order.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Supports the following language files:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; o Assembly, ASP, Awk, Beta, C, C++, C#, Cobol, Eiffel, Erlang, Fortran, HTML, Java, Javascript, Lisp, Lua, Make, Pascal, Perl, PHP, Python, Rexx, Ruby, Scheme, Shell, Slang, SML, Sql, TCL, Verilog, Vim and Yacc.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Can be easily extended to support new languages. Support for existing languages can be modified easily.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Provides functions to display the current tag name in the Vim status line or the window title bar.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * The list of tags and files in the taglist can be saved and restored across Vim sessions.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Provides commands to get the name and prototype of the current tag.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Runs in both console/terminal and GUI versions of Vim.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Works with the winmanager plugin. Using the winmanager plugin, you can use Vim plugins like the file explorer, buffer explorer and the taglist plugin at the same time like an IDE.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Can be used in both Unix and MS-Windows systems.
&lt;/div&gt;&lt;br&gt;You'll need to have ctags installed as well for Tag List to work, but 
&lt;br&gt;it's very much worth it, IMHO.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John O'Shea
&lt;br&gt;Wordbank Limited
&lt;br&gt;33 Charlotte Street, London W1T 1RR
&lt;br&gt;Direct line: +44 (0) 20 7903 8829
&lt;br&gt;Fax: +44 (0) 20 7903 8888
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.wordbank.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wordbank.com/&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/syntax-highlight-%3Ag-pattern-p-in-separate-buffer--tp26854554p26856038.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26854972</id>
	<title>Re: syntax highlight :g/pattern/p in separate buffer?</title>
	<published>2009-12-19T05:22:36Z</published>
	<updated>2009-12-19T05:22:36Z</updated>
	<author>
		<name>Brett Stahlman-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Reckoner wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I use :g/pattern/p frequently to see where functions are used in a
&lt;br&gt;&amp;gt; very large program. It would be very helpful to be able to see the
&lt;br&gt;&amp;gt; output of this in a separate buffer with corresponding syntax
&lt;br&gt;&amp;gt; highlighting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is this possible? Is there a plug-in for this?
&lt;br&gt;&lt;br&gt;You could use Vim's builtin grep to perform the search and the quickfix 
&lt;br&gt;window to view the highlighted results...
&lt;br&gt;&lt;br&gt;:vim /pattern/ %
&lt;br&gt;:copen
&lt;br&gt;&lt;br&gt;:help vimgrep
&lt;br&gt;:help copen
&lt;br&gt;&lt;br&gt;Hope this helps...
&lt;br&gt;Brett Stahlman
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks in advance
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/syntax-highlight-%3Ag-pattern-p-in-separate-buffer--tp26854554p26854972.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26854554</id>
	<title>syntax highlight :g/pattern/p in separate buffer?</title>
	<published>2009-12-19T04:05:48Z</published>
	<updated>2009-12-19T04:05:48Z</updated>
	<author>
		<name>Reckoner</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I use :g/pattern/p frequently to see where functions are used in a
&lt;br&gt;very large program. It would be very helpful to be able to see the
&lt;br&gt;output of this in a separate buffer with corresponding syntax
&lt;br&gt;highlighting.
&lt;br&gt;&lt;br&gt;Is this possible? Is there a plug-in for this?
&lt;br&gt;&lt;br&gt;Thanks in advance
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/syntax-highlight-%3Ag-pattern-p-in-separate-buffer--tp26854554p26854554.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26852063</id>
	<title>automatic lines setting?</title>
	<published>2009-12-18T17:14:37Z</published>
	<updated>2009-12-18T17:14:37Z</updated>
	<author>
		<name>Ling F. Zhang</name>
	</author>
	<content type="html">Here the first few lines of my .gvimrc:
&lt;br&gt;&lt;br&gt;$ head .gvimrc
&lt;br&gt;set lines=500 &amp;nbsp;&amp;quot; over zelous numbers of lines
&lt;br&gt;let &amp;lines = ((float2nr(0.85*&amp;lines)&amp;gt;52)?float2nr(0.85*&amp;lines):52)
&lt;br&gt;&lt;br&gt;set columns=85
&lt;br&gt;&amp;quot; double the size of window if running diff
&lt;br&gt;if &amp;diff
&lt;br&gt;&amp;nbsp; let &amp;columns = ((&amp;columns * 2 &amp;gt; 160)? 160: &amp;columns*2)
&lt;br&gt;endif
&lt;br&gt;&lt;br&gt;I wanted gvim to use 85% of the height of the screen or 52 lines,
&lt;br&gt;whichever is greater. &amp;nbsp;If I issue the first two commands by hand after
&lt;br&gt;gvim has open. It will do what I want it to do. &amp;nbsp;Why don't it work as
&lt;br&gt;part of .gvimrc?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/automatic-lines-setting--tp26852063p26852063.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26848187</id>
	<title>Re: Weird behaviour with the manpage view plugin</title>
	<published>2009-12-18T11:09:16Z</published>
	<updated>2009-12-18T11:09:16Z</updated>
	<author>
		<name>Charles Campbell</name>
	</author>
	<content type="html">andrewashbacher wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dr Chip,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for a great plugin. &amp;nbsp;I also am having this problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is how I replicate the issue (CLI or GUI):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. Open a php file.
&lt;br&gt;&amp;gt; 2. Type &amp;lt;?php ltrim('__abc', '_'); ?&amp;gt;
&lt;br&gt;&amp;gt; 3. Move cursor anywhere on top of 'ltrim'.
&lt;br&gt;&amp;gt; 4. Press K -- this should work bringing up the PHP manual entry for
&lt;br&gt;&amp;gt; ltrim in links.
&lt;br&gt;&amp;gt; 5. :q to close the manual
&lt;br&gt;&amp;gt; 6. Press K again -- this returns &amp;quot;E129: Function name required&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Note that :Man ltrim continues to work. &amp;nbsp;Hope this helps.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Please try manpageview v23d; I haven't finished working with it, but at 
&lt;br&gt;least it works for your example.
&lt;br&gt;(&lt;a href=&quot;http://mysite.verizon.net/astronaut/vim/index.html#MANPAGEVIEW&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mysite.verizon.net/astronaut/vim/index.html#MANPAGEVIEW&lt;/a&gt;)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Chip Campbell
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Weird-behaviour-with-the-manpage-view-plugin-tp26520351p26848187.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26847794</id>
	<title>Re: [patch] &lt;C-Y&gt; in virtual replace when line above is shorter</title>
	<published>2009-12-18T10:38:18Z</published>
	<updated>2009-12-18T10:38:18Z</updated>
	<author>
		<name>Bram Moolenaar</name>
	</author>
	<content type="html">&lt;br&gt;Lech Lorens wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Vim erroneously re-indents the current line if in virtual replace mode
&lt;br&gt;&amp;gt; &amp;lt;C-Y&amp;gt; or &amp;lt;C-E&amp;gt; is pressed while the line above or below respectively is
&lt;br&gt;&amp;gt; not long enough.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; To reproduce the problem execute:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ vim -u NONE -U NONE -i NONE -c 'set nocp noet ts=8 inde=0 indk=&amp;lt;:&amp;gt;' \
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -c 'call feedkeys(&amp;quot;2G$gR\&amp;lt;C-Y&amp;gt;\&amp;lt;C-Y&amp;gt;&amp;quot;)' \
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file.txt
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; where file.txt is:
&lt;br&gt;&amp;gt; #v+
&lt;br&gt;&amp;gt; abcdefghijklmnopqrstuvwxyz
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 2 3 4 5
&lt;br&gt;&amp;gt; #v-
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The result should be:
&lt;br&gt;&amp;gt; #v+
&lt;br&gt;&amp;gt; abcdefghijklmnopqrstuvwxyz
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 2 3 4 z
&lt;br&gt;&amp;gt; #v-
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but it is:
&lt;br&gt;&amp;gt; #v+
&lt;br&gt;&amp;gt; abcdefghijklmnopqrstuvwxyz
&lt;br&gt;&amp;gt; 1 2 3 4 z &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 2 3 4 5
&lt;br&gt;&amp;gt; #v-
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The problem is caused by 0 passed to in_cinkeys() as the typed key.
&lt;br&gt;&amp;gt; Function in_cinkeys() is then unable to recognise the &amp;quot;not found&amp;quot; return
&lt;br&gt;&amp;gt; value from get_special_key_code().
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The attached patch fixes the problem.
&lt;/div&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You have the right to remain silent. Anything you say will be
&lt;br&gt;misquoted, then used against you.
&lt;br&gt;&lt;br&gt;&amp;nbsp;/// Bram Moolenaar -- &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26847794&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bram@...&lt;/a&gt; -- &lt;a href=&quot;http://www.Moolenaar.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.Moolenaar.net&lt;/a&gt;&amp;nbsp; &amp;nbsp;\\\
&lt;br&gt;/// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sponsor Vim, vote for features -- &lt;a href=&quot;http://www.Vim.org/sponsor/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.Vim.org/sponsor/&lt;/a&gt;&amp;nbsp;\\\
&lt;br&gt;\\\ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;download, build and distribute -- &lt;a href=&quot;http://www.A-A-P.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.A-A-P.org&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ///
&lt;br&gt;&amp;nbsp;\\\ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;help me help AIDS victims -- &lt;a href=&quot;http://ICCF-Holland.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ICCF-Holland.org&lt;/a&gt;&amp;nbsp; &amp;nbsp; ///
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_dev&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---Dev-f884.html&quot; embed=&quot;fixTarget[884]&quot; target=&quot;_top&quot; &gt;Vim - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch--%3CC-Y%3E-in-virtual-replace-when-line-above-is-shorter-tp26836760p26847794.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26844924</id>
	<title>Re: To print module's name</title>
	<published>2009-12-18T07:18:28Z</published>
	<updated>2009-12-18T07:18:28Z</updated>
	<author>
		<name>Andy Wokula</name>
	</author>
	<content type="html">Am 18.12.2009 15:51, schrieb Bu Rak:
&lt;br&gt;&amp;gt; While browsing in verilog or vhdl code, there is a need to get which
&lt;br&gt;&amp;gt; &amp;quot;module&amp;quot; or &amp;quot;entity&amp;quot; (these are the required keywords) the line is.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My solution is maybe writing a function and map a key to call this function.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any example code for the function would be very well...
&lt;br&gt;&lt;br&gt;&amp;gt; The case is
&lt;br&gt;&amp;gt; --------------------------------------
&lt;br&gt;&amp;gt; module aaa
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;the cursor here somewhere&amp;gt;
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; endmodule
&lt;br&gt;&amp;gt; --------------------------------------
&lt;br&gt;&amp;gt; Just press a key (or key combination) to get (or print) aaa
&lt;br&gt;&lt;br&gt;map command in vim to match module/instance names in verilog
&lt;br&gt;(from Jan 2009)
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://groups.google.de/group/vim_use/browse_thread/thread/cb8428efdb5b550b/574000345d69f35?q=#0574000345d69f35&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.de/group/vim_use/browse_thread/thread/cb8428efdb5b550b/574000345d69f35?q=#0574000345d69f35&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andy
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/To-print-module%27s-name-tp26844562p26844924.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26844640</id>
	<title>Re: To print module's name</title>
	<published>2009-12-18T06:58:14Z</published>
	<updated>2009-12-18T06:58:14Z</updated>
	<author>
		<name>A. S. Budden</name>
	</author>
	<content type="html">2009/12/18 Bu Rak &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26844640&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lokumcu@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; While browsing in verilog or vhdl code, there is a need to get which
&lt;br&gt;&amp;gt; &amp;quot;module&amp;quot; or &amp;quot;entity&amp;quot; (these are the required keywords) the line is.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My solution is maybe writing a function and map a key to call this function.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any example code for the function would be very well...
&lt;br&gt;&lt;br&gt;This isn't a direct answer to your question, but there's some code
&lt;br&gt;below that handles this for C/C++ etc. &amp;nbsp;It may even work for VHDL if
&lt;br&gt;you indent in a similar way. &amp;nbsp;If you change the line starting echo
&lt;br&gt;getline(search... to have a slightly different regular expression in
&lt;br&gt;the first set of double quotes, you should be able to make it do what
&lt;br&gt;you want. &amp;nbsp;At the moment it searches for a line that starts with at
&lt;br&gt;least two non-(space/tab/#/slash) characters that doesn't end in a
&lt;br&gt;colon (this works quite well for a lot of indented languages).
&lt;br&gt;&lt;br&gt;Al
&lt;br&gt;&lt;br&gt;&amp;quot; Show the name of the current function
&lt;br&gt;nmap ,f :call ShowFuncName()&amp;lt;CR&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;quot; Show the name of the current function (designed for C/C++, Perl, Java etc)
&lt;br&gt;fun! ShowFuncName()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let lnum = line(&amp;quot;.&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let col = col(&amp;quot;.&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echohl ModeMsg
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo getline(search(&amp;quot;^[^ \t#/]\\{2}.*[^:]\s*$&amp;quot;, 'bW'))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echohl None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; call search(&amp;quot;\\%&amp;quot; . lnum . &amp;quot;l&amp;quot; . &amp;quot;\\%&amp;quot; . col . &amp;quot;c&amp;quot;)
&lt;br&gt;endfun
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://sites.google.com/site/abudden&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sites.google.com/site/abudden&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/To-print-module%27s-name-tp26844562p26844640.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26844562</id>
	<title>To print module's name</title>
	<published>2009-12-18T06:51:24Z</published>
	<updated>2009-12-18T06:51:24Z</updated>
	<author>
		<name>Bu Rak</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;While browsing in verilog or vhdl code, there is a need to get which &amp;quot;module&amp;quot; or &amp;quot;entity&amp;quot; (these are the required keywords) the line is.&lt;br&gt;&lt;br&gt;My solution is maybe writing a function and map a key to call this function.&lt;br&gt;
&lt;br&gt;Any example code for the function would be very well...&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Burak&lt;br&gt;&lt;br&gt;PS:&lt;br&gt;&lt;br&gt;The case is&lt;br&gt;--------------------------------------&lt;br&gt;module aaa&lt;br&gt;...&lt;br&gt;   &amp;lt;the cursor here somewhere&amp;gt;&lt;br&gt;
...&lt;br&gt;endmodule&lt;br&gt;--------------------------------------&lt;br&gt;Just press a key (or key combination) to get (or print) aaa&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

-- &lt;br /&gt;
You received this message from the &amp;quot;vim_use&amp;quot; maillist.&lt;br /&gt;
For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/To-print-module%27s-name-tp26844562p26844562.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26843842</id>
	<title>Re: vim syntax file patch</title>
	<published>2009-12-18T05:59:25Z</published>
	<updated>2009-12-18T05:59:25Z</updated>
	<author>
		<name>Charles Campbell</name>
	</author>
	<content type="html">c9s wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; any comment ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 15, 9:11 pm, Cornelius &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26843842&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cornelius.h...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi folks,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I found that VimL syntax doesnt fold for something like:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; fun! g:Test()
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; endf
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; it folds for :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; fun! g:Test.ok()
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; endf
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; so this is a patch of fixing the global function folding and my test code.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;/div&gt;Try using vim 7.2-95, available at my website since Nov 18 &amp;nbsp;-- &amp;nbsp;I didn't 
&lt;br&gt;see any problem with its folding with the example you gave above.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Chip Campbell
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_dev&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---Dev-f884.html&quot; embed=&quot;fixTarget[884]&quot; target=&quot;_top&quot; &gt;Vim - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch--vim-syntax-file-patch-tp26794544p26843842.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26850472</id>
	<title>Re: gvim start-up geometry</title>
	<published>2009-12-18T05:05:16Z</published>
	<updated>2009-12-18T05:05:16Z</updated>
	<author>
		<name>Bacrito</name>
	</author>
	<content type="html">On Dec 16, 11:54 pm, MK &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26850472&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;halfcountp...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Fvwm will do that -- which is how I've had it for long time -- fullscreen terminal with no frame.  But I've been feeling the need for mouse funtionality and tabs.  Maybe I have to go back, because get this:  it does the same thing when you open a new tab (resizes!).
&lt;br&gt;&lt;br&gt;I don't know whether this is relevant to your setup or the resizing
&lt;br&gt;issue, but you can use non-graphical tabs within gvim. Just remove &amp;quot;e&amp;quot;
&lt;br&gt;from :set guioptions. Then tabs will display as they do in plain vim.
&lt;br&gt;(they're much nicer looking this way, imo) I'm not noticing the
&lt;br&gt;resizing behavior with the graphical tabs on Windows though.
&lt;br&gt;&lt;br&gt;-BC
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gvim-start-up-geometry-tp26822819p26850472.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26841441</id>
	<title>Re: Vim client-server communication</title>
	<published>2009-12-18T02:05:47Z</published>
	<updated>2009-12-18T02:05:47Z</updated>
	<author>
		<name>Chris Jones-44</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 08:59:45AM EST, MBro wrote:
&lt;br&gt;&lt;br&gt;[..]
&lt;br&gt;&lt;br&gt;&amp;gt; Not sure how relevant this is to your situation, but I use the client-
&lt;br&gt;&amp;gt; server for a few things in my day-to-day
&lt;br&gt;&amp;gt; work environment:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 1. all MAN pages all show up under one gvim [I'm not an expert BASH
&lt;br&gt;&amp;gt; writer]:
&lt;br&gt;&amp;gt; function man() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gvim_server=&amp;quot;MANPAGES1&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; title=+&amp;quot;set titlestring=&amp;quot;Man_Page&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; silent=&amp;quot;--remote-silent&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; oldIFS=$IFS
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; IFS=
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; # Keep track of previously run 'man pages'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; # this speeds up the process of looking at the same MAN pages over
&lt;br&gt;&amp;gt; and over again...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if [ ! -e /tmp/man.$* ]; then
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /bin/man $* | col -b cat &amp;gt;/tmp/man.$*
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; fi
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gvim --servername $gvim_server -R $title $silent /tmp/man.$* &amp;gt;/dev/
&lt;br&gt;&amp;gt; null &amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; IFS=$oldIFS
&lt;br&gt;&amp;gt; }
&lt;/div&gt;&lt;br&gt;I like the idea..! 
&lt;br&gt;&lt;br&gt;I often end up with a bunch of vim instances on various terminals one
&lt;br&gt;for each of the man pages I looked at over the last 24 hours or so, and
&lt;br&gt;that's clutter. 
&lt;br&gt;&lt;br&gt;Hence, having them all in one dedicated vim instance, sounds like a
&lt;br&gt;great idea.
&lt;br&gt;&lt;br&gt;I'm thinking that the best way to speed this up would possibly be to
&lt;br&gt;have a directory such as ~/manvim with formatted vim pages from previous
&lt;br&gt;runs and check it for the existence of a given man page, and if it
&lt;br&gt;exists, skip the /usr/bin/man | col -b &amp;gt; /wherever sequence. 
&lt;br&gt;&lt;br&gt;Since I use terminal vim in GNU/screen, I added a 'screen -X select 16'
&lt;br&gt;which takes me automatically to screen window #16.. looks like this
&lt;br&gt;setup will suit me better than the :Man plugin, or the vman bash
&lt;br&gt;function that I already have.
&lt;br&gt;&lt;br&gt;I have to play with it a couple of days before I can make an informed
&lt;br&gt;decision.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2. In a perl script I open a desired file in a remote gvim and goto
&lt;br&gt;&amp;gt; the specified line number:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;# This is a stripped-down version of my code
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;my $file = &amp;quot;path/to/file-name.ext&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;my $viewer = &amp;quot;/bin/gvim&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;my $editor_options = '--servername PDU_VIM -R --remote-silent +
&lt;br&gt;&amp;gt; \&amp;quot;set filetype=MIB|LINE_NUM\&amp;quot;';
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$editor_options =~ s/LINE_NUM/$requested_line_number/;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;system &amp;quot;$viewer $editor_options $file&amp;quot;;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It appears to work reasonable for my needs :-)
&lt;/div&gt;&lt;br&gt;I'll take a closer look at this one tomorrow. 
&lt;br&gt;&lt;br&gt;But how come your executables are in /bin/ rather /usr/bin/..?
&lt;br&gt;&lt;br&gt;Is this personal customization, or the distro you are running?
&lt;br&gt;&lt;br&gt;Thanks much for your comments.
&lt;br&gt;&lt;br&gt;CJ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Vim-client-server-communication-tp26772195p26841441.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26839010</id>
	<title>Re: Vim script support of socket access or IPC (inter-process 	communication) ?</title>
	<published>2009-12-17T20:31:30Z</published>
	<updated>2009-12-17T20:31:30Z</updated>
	<author>
		<name>pansz</name>
	</author>
	<content type="html">Sergey Khorev 写道:
&lt;br&gt;&amp;gt; Vim is single-threaded application. If you want to implement proper
&lt;br&gt;&amp;gt; IPC, for instance, Vim waiting on some event, you will need to rewrite
&lt;br&gt;&amp;gt; much of its core I'm afraid.
&lt;br&gt;&lt;br&gt;What if I can expect my communication to respond immediately?
&lt;br&gt;&lt;br&gt;Anyway, we can define a timeout, for single-direction or non-blocking IPC .
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Vim-script-support-of-socket-access-or-IPC-%28inter-process-communication%29---tp26788430p26839010.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26838534</id>
	<title>Re: vim syntax file patch</title>
	<published>2009-12-17T19:13:01Z</published>
	<updated>2009-12-17T19:13:01Z</updated>
	<author>
		<name>Cornelius(c9s)</name>
	</author>
	<content type="html">any comment ?
&lt;br&gt;&lt;br&gt;On Dec 15, 9:11 pm, Cornelius &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26838534&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cornelius.h...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I found that VimL syntax doesnt fold for something like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; fun! g:Test()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; endf
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; it folds for :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; fun! g:Test.ok()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; endf
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; so this is a patch of fixing the global function folding and my test code.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Best Regards.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cornelius ( Yo-An Lin )
&lt;br&gt;&amp;gt; E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26838534&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cornelius.h...@...&lt;/a&gt;://c9s.blogspot.com/
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  vim-syntax.patch
&lt;br&gt;&amp;gt; 1KViewDownload
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  test.vim
&lt;br&gt;&amp;gt; &amp;lt; 1KViewDownload
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_dev&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---Dev-f884.html&quot; embed=&quot;fixTarget[884]&quot; target=&quot;_top&quot; &gt;Vim - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch--vim-syntax-file-patch-tp26794544p26838534.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26838516</id>
	<title>Vim k&amp;r fold</title>
	<published>2009-12-17T19:08:51Z</published>
	<updated>2009-12-17T19:08:51Z</updated>
	<author>
		<name>vimtexhappy</name>
	</author>
	<content type="html">Hello all:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; When i use syntax fold in C file with K&amp;R style.
&lt;br&gt;if () {
&lt;br&gt;}else{
&lt;br&gt;}
&lt;br&gt;the if else fold in one block. how can i break it?
&lt;br&gt;&lt;br&gt;I want to use matchit.vim to match if else.
&lt;br&gt;I don't know how to set the b:match_word.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Vim-k-r-fold-tp26838516p26838516.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26838394</id>
	<title>Re: mvim and 'wait'</title>
	<published>2009-12-17T18:48:55Z</published>
	<updated>2009-12-17T18:48:55Z</updated>
	<author>
		<name>infoarts</name>
	</author>
	<content type="html">Yes indeed - now all is good again in my world.
&lt;br&gt;&lt;br&gt;Thanks for the help Björn.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Richard
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_mac&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---Mac-f885.html&quot; embed=&quot;fixTarget[885]&quot; target=&quot;_top&quot; &gt;Vim - Mac&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mvim-and-%27wait%27-tp26821657p26838394.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26837517</id>
	<title>Re: Vim client-server communication</title>
	<published>2009-12-17T16:48:07Z</published>
	<updated>2009-12-17T16:48:07Z</updated>
	<author>
		<name>Chris Jones-44</name>
	</author>
	<content type="html">On Thu, Dec 17, 2009 at 03:18:33PM EST, Sven Brueggemann wrote:
&lt;br&gt;&amp;gt; Hello Chris,
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; That's what I meant by 'amazing your friends' since though it has
&lt;br&gt;&amp;gt; &amp;gt; its merits, I don't see this particular example as being very
&lt;br&gt;&amp;gt; &amp;gt; useful, probably not enough to justify the overhead and added
&lt;br&gt;&amp;gt; &amp;gt; complexity.
&lt;br&gt;&lt;br&gt;&amp;gt; i didn't follow the thread closely. You might like to watch this video
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.derekwyatt.org/vim/vim-tutorial-videos/vim-intermediate-tutorial-videos/#onevim&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.derekwyatt.org/vim/vim-tutorial-videos/vim-intermediate-tutorial-videos/#onevim&lt;/a&gt;&lt;br&gt;&amp;gt; (about 4:30 min).
&lt;br&gt;&lt;br&gt;Thanks, I have something else streaming right now but I will watch it
&lt;br&gt;asap.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; I want to better understand the feature and find out if it might
&lt;br&gt;&amp;gt; &amp;gt; provide useful editing strategies
&lt;br&gt;&lt;br&gt;&amp;gt; The strategy or paradigm or whatever is to use just one instance of
&lt;br&gt;&amp;gt; vim. If you end your work day with closing lots of vim instances like
&lt;br&gt;&amp;gt; I once did, it's worth a try...
&lt;br&gt;&lt;br&gt;I tend to do everything in one permanent Vim instance that initializes
&lt;br&gt;when I bring up my desktop.. and have it remember what I was doing via
&lt;br&gt;:mksession.
&lt;br&gt;&lt;br&gt;But since I do this to avoid the clutter of spawning instances all over
&lt;br&gt;the place, I may yet switch to the client-server paradigm in order to
&lt;br&gt;give my working model a bit more flexibility. 
&lt;br&gt;&lt;br&gt;Since I run pretty much everything I need in one instance of GNU/screen
&lt;br&gt;over xterm, it would be nice if I could also have screen switch focus to
&lt;br&gt;the particular region where the server vim instance currently lives -
&lt;br&gt;would make things more convenient/transparent.
&lt;br&gt;&lt;br&gt;Another possible use is that you might use several server instances to
&lt;br&gt;address different needs, such as featuring a more capable font when
&lt;br&gt;I occasion have to deal with exotic scripts, maths symbols, etc.
&lt;br&gt;&lt;br&gt;This is especially true, when other layers are involved, such as a
&lt;br&gt;mailer for instance, since this approach might turn out to be more
&lt;br&gt;effective than using the xterm mechanism to switch to a different font,
&lt;br&gt;resizing the terminal, switching back to the default font, resizing the
&lt;br&gt;terminal.. etc.
&lt;br&gt;&lt;br&gt;Certainly worth a try as you indicated.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;CJ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_use&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---General-f883.html&quot; embed=&quot;fixTarget[883]&quot; target=&quot;_top&quot; &gt;Vim - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Vim-client-server-communication-tp26772195p26837517.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26836760</id>
	<title>[patch] &lt;C-Y&gt; in virtual replace when line above is shorter</title>
	<published>2009-12-17T15:24:46Z</published>
	<updated>2009-12-17T15:24:46Z</updated>
	<author>
		<name>Lech Lorens</name>
	</author>
	<content type="html">Vim erroneously re-indents the current line if in virtual replace mode
&lt;br&gt;&amp;lt;C-Y&amp;gt; or &amp;lt;C-E&amp;gt; is pressed while the line above or below respectively is
&lt;br&gt;not long enough.
&lt;br&gt;&lt;br&gt;To reproduce the problem execute:
&lt;br&gt;&lt;br&gt;$ vim -u NONE -U NONE -i NONE -c 'set nocp noet ts=8 inde=0 indk=&amp;lt;:&amp;gt;' \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -c 'call feedkeys(&amp;quot;2G$gR\&amp;lt;C-Y&amp;gt;\&amp;lt;C-Y&amp;gt;&amp;quot;)' \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file.txt
&lt;br&gt;&lt;br&gt;where file.txt is:
&lt;br&gt;#v+
&lt;br&gt;abcdefghijklmnopqrstuvwxyz
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 2 3 4 5
&lt;br&gt;#v-
&lt;br&gt;&lt;br&gt;The result should be:
&lt;br&gt;#v+
&lt;br&gt;abcdefghijklmnopqrstuvwxyz
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 2 3 4 z
&lt;br&gt;#v-
&lt;br&gt;&lt;br&gt;but it is:
&lt;br&gt;#v+
&lt;br&gt;abcdefghijklmnopqrstuvwxyz
&lt;br&gt;1 2 3 4 z &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 2 3 4 5
&lt;br&gt;#v-
&lt;br&gt;&lt;br&gt;&lt;br&gt;The problem is caused by 0 passed to in_cinkeys() as the typed key.
&lt;br&gt;Function in_cinkeys() is then unable to recognise the &amp;quot;not found&amp;quot; return
&lt;br&gt;value from get_special_key_code().
&lt;br&gt;&lt;br&gt;The attached patch fixes the problem.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Cheers,
&lt;br&gt;Lech
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;You received this message from the &amp;quot;vim_dev&amp;quot; maillist.
&lt;br&gt;For more information, visit &lt;a href=&quot;http://www.vim.org/maillist.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.vim.org/maillist.php&lt;/a&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff --git a/src/edit.c b/src/edit.c
&lt;br&gt;index 19e5b8d..2c5cc48 100644
&lt;br&gt;--- a/src/edit.c
&lt;br&gt;+++ b/src/edit.c
&lt;br&gt;@@ -1419,7 +1419,7 @@ normalchar:
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;inserted_space = FALSE;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#ifdef FEAT_CINDENT
&lt;br&gt;-	if (can_cindent &amp;&amp; cindent_on()
&lt;br&gt;+	if (c != NUL &amp;&amp; can_cindent &amp;&amp; cindent_on()
&lt;br&gt;&amp;nbsp;# ifdef FEAT_INS_EXPAND
&lt;br&gt;&amp;nbsp;		&amp;&amp; ctrl_x_mode == 0
&lt;br&gt;&amp;nbsp;# endif
&lt;br&gt;@@ -7397,6 +7397,11 @@ in_cinkeys(keytyped, when, line_is_empty)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int		icase;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int		i;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (NUL == keytyped)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+	EMSG2(_(e_intern2), &amp;quot;in_cinkeys()&amp;quot;);
&lt;br&gt;+	return FALSE;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;#ifdef FEAT_EVAL
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (*curbuf-&amp;gt;b_p_inde != NUL)
&lt;br&gt;&amp;nbsp;	look = curbuf-&amp;gt;b_p_indk;	/* 'indentexpr' set: use 'indentkeys' */
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Vim---Dev-f884.html&quot; embed=&quot;fixTarget[884]&quot; target=&quot;_top&quot; &gt;Vim - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch--%3CC-Y%3E-in-virtual-replace-when-line-above-is-shorter-tp26836760p26836760.html" />
</entry>

</feed>
