On May 17, 1:10 am, Bee <[email protected]> wrote: > I use the same .vimrc on several platforms with versions: > > vim 6x 7x and now vim.tiny 7x (deb) > > But... there is one case I can not make automatic. > > The following are valid in vim 7x and vim.tiny 7x but not vim 6x > > set showtabline=2 "always show tab line "?vi6.2 > set tabpagemax=11 "max tabs "?vi6.2 > set listchars+=nbsp:= "show invisibles "?vi6.2 nbsp:c > > In vim.tiny conditionals and error trapping are not available, so this > does not work as anything within a conditional is ignored: > > if version >= 700 > ... > endif > > Currently I do not use the vim 6x platform often, when I do I comment > out those lines. > > Is there another way? >
How about, put these lines in their own plugin file (or alternatively, separate file which you :source from your .vimrc). Then, at the beginning of the file (before your set commands), put: if v:version < 700 finish endif You'll have a problem if you try using it on Vim 6.x tiny, but that wasn't in your list of versions. -- 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
