Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

vim-mac · Vim (Vi IMproved) text editor Macintosh list

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 12376 - 12405 of 13697   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#12376 From: Eric Weir <eeweir@...>
Date: Wed Jun 1, 2011 1:37 pm
Subject: Folding
eeweir@...
Send Email Send Email
 
I'm a Vim novice, and a writer not a programmer. I've perused the responses to
questions about folding in the Vim FAQ. It's largely Greek to me. I have a
couple questions: I understand folds can be indented. Is it possible to get Vim
to wrap words to the indent column? Is there a way I can get folds to persist
across a save and reload?

Thanks,
--------------------------------------------------------------------------------\
----------
Eric Weir
Decatur, GA  USA
eeweir@...




--
You received this message from the "vim_mac" 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

#12377 From: Eric Weir <eeweir@...>
Date: Wed Jun 1, 2011 2:30 pm
Subject: Re: Folding
eeweir@...
Send Email Send Email
 
My apologies for the multiple copies of my post. I don't have an explanation.
May be a problem I've been having with Apple Mail and my ISP [AT&T].

--------------------------------------------------------------------------------\
----------
Eric Weir
Decatur, GA  USA
eeweir@...




--
You received this message from the "vim_mac" 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

#12378 From: LocoJay Dev <locojaydev@...>
Date: Wed Jun 1, 2011 11:34 pm
Subject: vim python2.7 brew build
locojaydev@...
Send Email Send Email
 
hi,

i would like to have python2.7 once running


:python import sys;  print sys.path

at the moment it shows

/Library/Python2.6/site-packages

but may main python is brew 2.7

which python /usr/local/bin/python --> ../Cellar/python/2.7.1/bin/python  ( +
all the other pip ipython, ....)

i m a bit confused.
why does vim not use brews python?

i tried the following from git source

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp
--enable-perlinterp
--with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framew\
ork/Versions/2.7/lib/python2.7/config

but still

:python import sys;  print sys.path

outputs 2.6

any idea?

is there maybe a way to set the "main" python in vimrc ( would prefer to use
brew macvim instead of master)

many thanks

--
You received this message from the "vim_mac" 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

#12379 From: Nathan Ramella <nar@...>
Date: Wed Jun 1, 2011 11:40 pm
Subject: Re: vim python2.7 brew build
nar@...
Send Email Send Email
 
--enable-pythoninterp=dynamic might help you out


On Jun 1, 2011, at 4:34 PM, LocoJay Dev wrote:

> hi,
>
> i would like to have python2.7 once running
>
>
> :python import sys;  print sys.path
>
> at the moment it shows
>
> /Library/Python2.6/site-packages
>
> but may main python is brew 2.7
>
> which python /usr/local/bin/python --> ../Cellar/python/2.7.1/bin/python  ( +
all the other pip ipython, ....)
>
> i m a bit confused.
> why does vim not use brews python?
>
> i tried the following from git source
>
> ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp
--enable-perlinterp
--with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framew\
ork/Versions/2.7/lib/python2.7/config
>
> but still
>
> :python import sys;  print sys.path
>
> outputs 2.6
>
> any idea?
>
> is there maybe a way to set the "main" python in vimrc ( would prefer to use
brew macvim instead of master)
>
> many thanks
>
> --
> You received this message from the "vim_mac" 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
>


--
You received this message from the "vim_mac" 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

#12380 From: locojay <locojaydev@...>
Date: Thu Jun 2, 2011 12:29 am
Subject: Re: vim python2.7 brew build
locojaydev@...
Send Email Send Email
 
./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp=dynamic --enable-perlinterp --with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

did not help. 

configure outputs :
checking --enable-pythoninterp argument... dynamic
checking for python... /usr/local/bin/python
checking Python version... 2.7
checking Python is 1.4 or better... yep
checking Python's install prefix... /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7
checking Python's execution prefix... /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7
checking Python's configuration directory... (cached) /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

this all looks ok to me 

but 

:python import sys; print sys.path

I also resmlink 

Current in /System/Library/Frameworks/Python.framework/Versions to

/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7

no clue 

on ./src/MacVim/mvim outputs 2.6 

On Wednesday, June 1, 2011 at 7:40 PM, Nathan Ramella wrote:

--enable-pythoninterp=dynamic might help you out


On Jun 1, 2011, at 4:34 PM, LocoJay Dev wrote:

hi,

i would like to have python2.7 once running


:python import sys; print sys.path

at the moment it shows

/Library/Python2.6/site-packages

but may main python is brew 2.7

which python /usr/local/bin/python --> ../Cellar/python/2.7.1/bin/python ( + all the other pip ipython, ....)

i m a bit confused.
why does vim not use brews python?

i tried the following from git source

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

but still

:python import sys; print sys.path

outputs 2.6

any idea?

is there maybe a way to set the "main" python in vimrc ( would prefer to use brew macvim instead of master)

many thanks

--
You received this message from the "vim_mac" 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


--
You received this message from the "vim_mac" 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

--
You received this message from the "vim_mac" 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

#12381 From: Nathan Ramella <nar@...>
Date: Thu Jun 2, 2011 2:11 am
Subject: Re: vim python2.7 brew build
nar@...
Send Email Send Email
 
You might be getting a false-negative by mvim if you've got Vim installed in 
/Applications/ and you're testing the in your source tree (having not
installed it). 

Try running $TOPDIR/src/Vim directly after building?

I've got python2.6 as my 'default' and tried the following:

./configure \
  --enable-pythoninterp=dynamic \
  vi_cv_path_python=/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python

And it worked for me.

-n

On Jun 1, 2011, at 5:29 PM, locojay wrote:

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp=dynamic --enable-perlinterp --with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

did not help. 

configure outputs :
checking --enable-pythoninterp argument... dynamic
checking for python... /usr/local/bin/python
checking Python version... 2.7
checking Python is 1.4 or better... yep
checking Python's install prefix... /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7
checking Python's execution prefix... /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7
checking Python's configuration directory... (cached) /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

this all looks ok to me 

but 

:python import sys; print sys.path

I also resmlink 

Current in /System/Library/Frameworks/Python.framework/Versions to

/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7

no clue 

on ./src/MacVim/mvim outputs 2.6 

On Wednesday, June 1, 2011 at 7:40 PM, Nathan Ramella wrote:

--enable-pythoninterp=dynamic might help you out


On Jun 1, 2011, at 4:34 PM, LocoJay Dev wrote:

hi,

i would like to have python2.7 once running


:python import sys; print sys.path

at the moment it shows

/Library/Python2.6/site-packages

but may main python is brew 2.7

which python /usr/local/bin/python --> ../Cellar/python/2.7.1/bin/python ( + all the other pip ipython, ....)

i m a bit confused.
why does vim not use brews python?

i tried the following from git source

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

but still

:python import sys; print sys.path

outputs 2.6

any idea?

is there maybe a way to set the "main" python in vimrc ( would prefer to use brew macvim instead of master)

many thanks

--
You received this message from the "vim_mac" 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


--
You received this message from the "vim_mac" 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


--
You received this message from the "vim_mac" 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

--
You received this message from the "vim_mac" 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

#12382 From: locojay <locojaydev@...>
Date: Thu Jun 2, 2011 2:25 am
Subject: Re: vim python2.7 brew build
locojaydev@...
Send Email Send Email
 
thanks that helped

On Wednesday, June 1, 2011 at 10:11 PM, Nathan Ramella wrote:

You might be getting a false-negative by mvim if you've got Vim installed in 
/Applications/ and you're testing the in your source tree (having not
installed it). 

Try running $TOPDIR/src/Vim directly after building?

I've got python2.6 as my 'default' and tried the following:

./configure \
  --enable-pythoninterp=dynamic \
  vi_cv_path_python=/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python

And it worked for me.

-n

On Jun 1, 2011, at 5:29 PM, locojay wrote:

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp=dynamic --enable-perlinterp --with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

did not help. 

configure outputs :
checking --enable-pythoninterp argument... dynamic
checking for python... /usr/local/bin/python
checking Python version... 2.7
checking Python is 1.4 or better... yep
checking Python's install prefix... /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7
checking Python's execution prefix... /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7
checking Python's configuration directory... (cached) /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

this all looks ok to me 

but 

:python import sys; print sys.path

I also resmlink 

Current in /System/Library/Frameworks/Python.framework/Versions to

/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7

no clue 

on ./src/MacVim/mvim outputs 2.6 

On Wednesday, June 1, 2011 at 7:40 PM, Nathan Ramella wrote:

--enable-pythoninterp=dynamic might help you out


On Jun 1, 2011, at 4:34 PM, LocoJay Dev wrote:

hi,

i would like to have python2.7 once running


:python import sys; print sys.path

at the moment it shows

/Library/Python2.6/site-packages

but may main python is brew 2.7

which python /usr/local/bin/python --> ../Cellar/python/2.7.1/bin/python ( + all the other pip ipython, ....)

i m a bit confused.
why does vim not use brews python?

i tried the following from git source

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

but still

:python import sys; print sys.path

outputs 2.6

any idea?

is there maybe a way to set the "main" python in vimrc ( would prefer to use brew macvim instead of master)

many thanks

--
You received this message from the "vim_mac" 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


--
You received this message from the "vim_mac" 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


--
You received this message from the "vim_mac" 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

--
You received this message from the "vim_mac" 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

--
You received this message from the "vim_mac" 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

#12383 From: Dan Michael <danmichaelo@...>
Date: Thu Jun 2, 2011 10:56 am
Subject: Svar: Folding
danmichaelo@...
Send Email Send Email
 
onsdag 1. juni 2011 kl. 15:37:08 UTC+2 skrev Eric Weir følgende:

I'm a Vim novice, and a writer not a programmer. I've perused the responses to questions about folding in the Vim FAQ. It's largely Greek to me. I have a couple questions: I understand folds can be indented. Is it possible to get Vim to wrap words to the indent column? Is there a way I can get folds to persist across a save and reload?

If I got your question right, it's about Vim in general, not MacVim-specific, and so better suited for another list like vim_use, not vim_mac, but here we go. My personal favorite when it comes to manual, persistent folding is to use the marker foldmethod (:set foldmethod=marker). You may add this as a modeline (see :help modeline) on the first line of the file (vi: foldmethod=marker). Then write your file like this:

Header for section 1 {{{
    Some header for section 1.1 {{{
         lorem ipsum
         ...
    }}}
    ...
}}}

But of course you may not like to have the "{{{" and "}}}"s in your file, and then there are other foldmethods. Folds can be set using invisible markers and saved (to an external file) using mkview (:help mkview). That makes the file less transferable, since you may move the file to another computer and not get the folds along, but that may or may not be a problem for you. See for instance this page for more help:

http://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun

Word-wrapping: See :h wrap, :h textwidth

- Dan Michael

--
You received this message from the "vim_mac" 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

#12384 From: Eric Weir <eeweir@...>
Date: Thu Jun 2, 2011 2:06 pm
Subject: Re: Svar: Folding
eeweir@...
Send Email Send Email
 

On Jun 2, 2011, at 6:56 AM, Dan Michael wrote:

onsdag 1. juni 2011 kl. 15:37:08 UTC+2 skrev Eric Weir følgende:

I'm a Vim novice, and a writer not a programmer. I've perused the responses to questions about folding in the Vim FAQ. It's largely Greek to me. I have a couple questions: I understand folds can be indented. Is it possible to get Vim to wrap words to the indent column? Is there a way I can get folds to persist across a save and reload?

.... My personal favorite when it comes to manual, persistent folding is to use the marker foldmethod (:set foldmethod=marker). You may add this as a modeline (see :help modeline) on the first line of the file (vi: foldmethod=marker)....

Thanks, Dan. Both this method and the one using invisible markers and mkview are intriguing. I'll read up on them. Will probably have further questions after that.


Word-wrapping: See :h wrap, :h textwidth

And thanks for both of these. 

It appears that what I wanted in the way of word wrapping is [1] not possible except by fiddling with the code of the executable and [2] not essential for the purpose I had in mind, i.e., making all text within a certain range of a given line "disappear under" that line, as a subtopic would under a topic in an outline. I can get what I want, minus indentation, by folding on all the other lines first, then folding on all the lines, indluding the first.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA




--
You received this message from the "vim_mac" 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

#12385 From: Eric Weir <eeweir@...>
Date: Thu Jun 2, 2011 2:39 pm
Subject: Re: Svar: Folding
eeweir@...
Send Email Send Email
 

On Jun 2, 2011, at 6:56 AM, Dan Michael wrote:

http://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun

I though this from the above is going to work for me, Dan. 

But why do something manually when you can do it automatically? To see to it that Vim saves and restores folds when a file is closed and re-opened, add these two lines to your ~/.vimrc:

au BufWinLeave * mkview
au BufWinEnter * silent loadview

Now, each time you close a file, its fold state will be saved and reloaded when you reopen the file in Vim.

After doing that, quitting and restarting Vim, then saving a folded file and reopening it, it opened unfolded. My guess is that something is taken for granted in the suggestion above that in my case should not be taken for granted. What am I missing?

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA




--
You received this message from the "vim_mac" 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

#12386 From: Eric Weir <eeweir@...>
Date: Thu Jun 2, 2011 2:55 pm
Subject: Re: Svar: Folding
eeweir@...
Send Email Send Email
 

On Jun 2, 2011, at 10:39 AM, Eric Weir wrote:

After doing that, quitting and restarting Vim, then saving a folded file and reopening it, it opened unfolded.

My mistake. On my first try I hadn't saved the folded file since inserting those lines in my .vimrc. After doing that the file does open folded. There are a couple of problems, though:

After inserting these lines when starting Vim or creating a new tab I get this error message:

Error detected while processing BufWinEnter Auto commands for "*":
E32: No file name   

And when I open a file, I get the following message:

Error detected while processing BufWinLeave Auto commands for "*":

After that, when i hit <return> the file opens folded. 

I suspect something was assumed in the suggestion of this option that in my case should not be assumed. What am i missing?

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA




--
You received this message from the "vim_mac" 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

#12387 From: William Quirk <wmquirk@...>
Date: Thu Jun 2, 2011 2:30 pm
Subject: Re: vim python2.7 brew build
wmquirk@...
Send Email Send Email
 
Same problem but my main python is 3.2

Any constructive idea is welcome.
Thanks in advance
Bill Quirk


From: LocoJay Dev <locojaydev@...>
To: vim_mac@googlegroups.com
Sent: Wednesday, June 1, 2011 6:34 PM
Subject: vim python2.7 brew build

hi,

i would like to have python2.7 once running


:python import sys;  print sys.path

at the moment it shows

/Library/Python2.6/site-packages

but may main python is brew 2.7

which python /usr/local/bin/python --> ../Cellar/python/2.7.1/bin/python  ( + all the other pip ipython, ....)

i m a bit confused.
why does vim not use brews python?

i tried the following from git source

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config

but still

:python import sys;  print sys.path

outputs 2.6

any idea?

is there maybe a way to set the "main" python in vimrc ( would prefer to use brew macvim instead of master)

many thanks

--
You received this message from the "vim_mac" 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


--
You received this message from the "vim_mac" 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

#12388 From: björn <bjorn.winckler@...>
Date: Thu Jun 2, 2011 4:35 pm
Subject: Re: vim python2.7 brew build
bjorn.winckler@...
Send Email Send Email
 
On 2 June 2011 16:30, William Quirk  wrote:
> Same problem but my main python is 3.2
> Any constructive idea is welcome.
> Thanks in advance
> Bill Quirk
> ________________________________
> From: LocoJay Dev <locojaydev@...>
> To: vim_mac@googlegroups.com
> Sent: Wednesday, June 1, 2011 6:34 PM
> Subject: vim python2.7 brew build
>
> hi,
>
> i would like to have python2.7 once running
>
>
> :python import sys;  print sys.path
>
> at the moment it shows
>
> /Library/Python2.6/site-packages
>
> but may main python is brew 2.7
>
> which python /usr/local/bin/python --> ../Cellar/python/2.7.1/bin/python  (
> + all the other pip ipython, ....)
>
> i m a bit confused.
> why does vim not use brews python?
>
> i tried the following from git source
>
> ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp
> --enable-perlinterp
>
--with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framew\
ork/Versions/2.7/lib/python2.7/config
>
> but still
>
> :python import sys;  print sys.path
>
> outputs 2.6
>
> any idea?
>
> is there maybe a way to set the "main" python in vimrc ( would prefer to use
> brew macvim instead of master)
>
> many thanks

Guys, what's with the weird fonts and bad posting manners?  Please
turn off the rich text and bottom post on this list.  Thanks! :-)

Having said that, you should probably ask on vim_use if you need help
with building with a specific version of Python.  I have no experience
of this so can not be of much help (I do recall seeing this type of
discussions several times before, did you try searching old posts?).

Two tips: dynamic Python is not supported on Mac OS X (as far as I
know), and Python 3 needs a separate flag from Python 2.x
(--enable-python3interp, as opposed to --enable-pythoninterp).  Type

./configure --help

to see all flags to configure (there are quite a few related to Python).

Björn

--
You received this message from the "vim_mac" 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

#12389 From: LocoJay Dev <locojaydev@...>
Date: Thu Jun 2, 2011 5:01 pm
Subject: Re: vim python2.7 brew build
locojaydev@...
Send Email Send Email
 
at the end it worked for me it just picked up my old vim .
so if you uninstall fist of reset VIM_APP_DIR ( or so) it works


On Jun 2, 2011, at 12:35 PM, björn wrote:

> On 2 June 2011 16:30, William Quirk  wrote:
>> Same problem but my main python is 3.2
>> Any constructive idea is welcome.
>> Thanks in advance
>> Bill Quirk
>> ________________________________
>> From: LocoJay Dev <locojaydev@...>
>> To: vim_mac@googlegroups.com
>> Sent: Wednesday, June 1, 2011 6:34 PM
>> Subject: vim python2.7 brew build
>>
>> hi,
>>
>> i would like to have python2.7 once running
>>
>>
>> :python import sys;  print sys.path
>>
>> at the moment it shows
>>
>> /Library/Python2.6/site-packages
>>
>> but may main python is brew 2.7
>>
>> which python /usr/local/bin/python --> ../Cellar/python/2.7.1/bin/python  (
>> + all the other pip ipython, ....)
>>
>> i m a bit confused.
>> why does vim not use brews python?
>>
>> i tried the following from git source
>>
>> ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp
>> --enable-perlinterp
>>
--with-python-config-dir=/usr/local/Cellar/python/2.7.1/Frameworks/Python.framew\
ork/Versions/2.7/lib/python2.7/config
>>
>> but still
>>
>> :python import sys;  print sys.path
>>
>> outputs 2.6
>>
>> any idea?
>>
>> is there maybe a way to set the "main" python in vimrc ( would prefer to use
>> brew macvim instead of master)
>>
>> many thanks
>
> Guys, what's with the weird fonts and bad posting manners?  Please
> turn off the rich text and bottom post on this list.  Thanks! :-)
>
> Having said that, you should probably ask on vim_use if you need help
> with building with a specific version of Python.  I have no experience
> of this so can not be of much help (I do recall seeing this type of
> discussions several times before, did you try searching old posts?).
>
> Two tips: dynamic Python is not supported on Mac OS X (as far as I
> know), and Python 3 needs a separate flag from Python 2.x
> (--enable-python3interp, as opposed to --enable-pythoninterp).  Type
>
> ./configure --help
>
> to see all flags to configure (there are quite a few related to Python).
>
> Björn
>
> --
> You received this message from the "vim_mac" 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

--
You received this message from the "vim_mac" 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

#12390 From: Eric Weir <eeweir@...>
Date: Fri Jun 3, 2011 1:37 pm
Subject: Re: Svar: Folding
eeweir@...
Send Email Send Email
 

On Jun 2, 2011, at 10:55 AM, Eric Weir wrote:

After inserting these lines when starting Vim or creating a new tab I get this error message:

Error detected while processing BufWinEnter Auto commands for "*":
E32: No file name   

And when I open a file, I get the following message:

Error detected while processing BufWinLeave Auto commands for "*":

After that, when i hit <return> the file opens folded.

Continue to get the first error message, but not the second. However, when a file saved with ten folded lines is saved and reopened, it reopens with only two lines folded.

If anyone can suggest what's going on it would be appreciated.

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA




--
You received this message from the "vim_mac" 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

#12391 From: Dan Michael <danmichaelo@...>
Date: Sat Jun 4, 2011 1:42 pm
Subject: Svar: Re: Svar: Folding
danmichaelo@...
Send Email Send Email
 


fredag 3. juni 2011 kl. 15:37:57 UTC+2 skrev Eric Weir følgende:

On Jun 2, 2011, at 10:55 AM, Eric Weir wrote:

After inserting these lines when starting Vim or creating a new tab I get this error message:

Error detected while processing BufWinEnter Auto commands for "*":
E32: No file name   

This is because vim naively tries to load the view for an empty buffer, but of course no saved view exists for the empty buffer. The same happens when you open a help page. There is no saved view for the help pages, so you will get an error. One simple solution is to use "silent!" instead of "silent". This will silence any error message. My preferred solution is to instead to save views only for files of certain extensions (since mkview saves a lot of things, not just folds, and sometimes you just don't want it all saved). So, for instance,

autocmd BufWinLeave *.txt mkview
autocmd BufWinEnter *.txt silent loadview

And you could also use

autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
 
for it to work with all files with a file extension.

And when I open a file, I get the following message:

Error detected while processing BufWinLeave Auto commands for "*":

After that, when i hit <return> the file opens folded.

Try disabling all plugins and clean your .vimrc file, and see if it still happens. You may also have to clean your ~/.vim/views folder, which is where the views are saved (but then you will loose the folds). 

Then please see :h viewoptions . As you see, a lot of things about the state of the file are saved with mkview, not only folds. It may be a very good idea to only save the things you need, like e.g. :set viewoptions=folds,cursor 

Good luck further! But please try to avoid quadruple-posting next time.

– Dan Michael

--
You received this message from the "vim_mac" 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

#12392 From: Devric <billbox13@...>
Date: Sat Jun 4, 2011 5:21 pm
Subject: Re: Folding
billbox13@...
Send Email Send Email
 
Hey Eric

Rather spend so many times writing your own indenting, have you tried
org mode for vim plugin? search org mode in vim scripts, and should
have some videos to show what it is.
alternative you can use emacs org mode, even though emacs org mode is
so much more powerful but i still love vim more, cos is much more
intuitive than emacs,

using org mode plugin for vim, it has really simple indent method such
as using the " * " symbol to create heading-> sub-heading, unlimited

* 1
** 2
*** 2.1
**** 2.1.1
**** 2,1.2
** 3
*** 3.1

and other really amazing functions such as GTD, calendar, tagging blah
blah you can find them in the videos since i mostly just use the
indentation to record notes

i don't think it remembers the state which line is folded which is
not, its all folded when opening the file, but it is quite simple,
just use "tab" key than it expands and minimizes, much easier than
zR... even you add a shortcut, it still doesn't beat "tab"

if you also like to use the @tags , its good that you also get the
plugin of compview, this gives you a small slide down buffer letting
you see all your search results, when you highlight the line in that
small buffer, you will jump your view in your working buffer to that
line. to trigger it use the leader key than v eg:  \v

have a go at it, i think you should love them as a writer.  invest
sometime in org mode plugin for vim, it saves you the headache of
making one your own.


On Jun 1, 11:37 pm, Eric Weir <eew...@...> wrote:
> I'm a Vim novice, and a writer not a programmer. I've perused the responses to
questions about folding in the Vim FAQ. It's largely Greek to me. I have a
couple questions: I understand folds can be indented. Is it possible to get Vim
to wrap words to the indent column? Is there a way I can get folds to persist
across a save and reload?
>
> Thanks,
>
--------------------------------------------------------------------------------\
----------
> Eric Weir
> Decatur, GA  USA
> eew...@...

--
You received this message from the "vim_mac" 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

#12393 From: Eric Weir <eeweir@...>
Date: Sat Jun 4, 2011 5:59 pm
Subject: Re: Svar: Re: Svar: Folding
eeweir@...
Send Email Send Email
 

On Jun 4, 2011, at 9:42 AM, Dan Michael wrote:

fredag 3. juni 2011 kl. 15:37:57 UTC+2 skrev Eric Weir følgende:

On Jun 2, 2011, at 10:55 AM, Eric Weir wrote:

After inserting these lines when starting Vim or creating a new tab I get this error message:

Error detected while processing BufWinEnter Auto commands for "*":
E32: No file name   

This is because vim naively tries to load the view for an empty buffer, but of course no saved view exists for the empty buffer. The same happens when you open a help page. There is no saved view for the help pages, so you will get an error. One simple solution is to use "silent!" instead of "silent". This will silence any error message. My preferred solution is to instead to save views only for files of certain extensions (since mkview saves a lot of things, not just folds, and sometimes you just don't want it all saved). So, for instance,

autocmd BufWinLeave *.txt mkview
autocmd BufWinEnter *.txt silent loadview

Thanks, Dan. I gave this one a try. Now I don't get either of the error messages.

Good luck further! But please try to avoid quadruple-posting next time.

Does this refer to multiple copies of the same post or multiple responses to a response before receiving a response?

If the former, it shouldn't happen anymore. For a while Apple Mail was hanging up on send, and several times that resulted in multiple copies getting sent when the message was finally sent.

If the second, I didn't realize that that was discouraged.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA




--
You received this message from the "vim_mac" 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

#12394 From: Eric Weir <eeweir@...>
Date: Sat Jun 4, 2011 6:31 pm
Subject: Re: Folding
eeweir@...
Send Email Send Email
 

On Jun 4, 2011, at 1:21 PM, Devric wrote:

Rather spend so many times writing your own indenting, have you tried
org mode for vim plugin? search org mode in vim scripts, and should
have some videos to show what it is.



using org mode plugin for vim, it has really simple indent method such
as using the " * " symbol to create heading-> sub-heading, unlimited

* 1
** 2
*** 2.1
**** 2.1.1
**** 2,1.2
** 3
*** 3.1

and other really amazing functions such as GTD, calendar, tagging blah
blah you can find them in the videos since i mostly just use the
indentation to record notes

Thanks, Devric. Never heard of org mode. As you describe it, sounds very interesting. I'll go looking for it. 

i don't think it remembers the state which line is folded which is
not, its all folded when opening the file....

I was recently given a solution for this. Any one of these:

au BufWinLeave * mkview
au BufWinEnter * silent loadview

autocmd BufWinLeave *.txt mkview
autocmd BufWinEnter *.txt silent loadview

autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview


have a go at it, i think you should love them as a writer.  invest
sometime in org mode plugin for vim, it saves you the headache of
making one your own.

I am definitely intrigued.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA
eeweir@...




--
You received this message from the "vim_mac" 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

#12395 From: elliottcable <me@...>
Date: Sun Jun 5, 2011 3:23 am
Subject: Dynamically resize window when adding/removing vertical splits
me@...
Send Email Send Email
 
I’m using the Janus distribution, with includes NERDTree. My MacVim is
set to open with 152 columns (113, my textwidth, plus space for
NERDTree and line numbers.)

What I want to do, is ensure that when I open new vertical-splits from
NERDTree (or any other way, most specificaly my secondary method of
splitting, which is `-O` from the commandline: `mvim -O "./"
"a_specific_file_to_begin_editing" "and_another_one"`) that the MacVim
window itself resizes to maintain that pattern: 31 columns for
NERDTree, plus 121 columns per vsplit.

So, opening MacVim with two files from the command-line should set the
MacVim window to 273 columns, with three files it should be 394,
etcetera etcetera etcetera. The same rules should apply anytime I open
or close a vsplit with NERDTree or `:q` or whatnot.

Any help with this is appreciated! I’m a vim (and MacVim) noob, but
I’m enjoying what I’m learning so far. :D

--
You received this message from the "vim_mac" 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

#12396 From: Eric Weir <eeweir@...>
Date: Sun Jun 5, 2011 2:32 pm
Subject: Configuring MacVim
eeweir@...
Send Email Send Email
 

I created a .gvimrc and put in my home directory. At present, I've only got two commands in it:

set guioptions-=T
colorscheme murphy

They're not working. MacVim starts up with the toolbar and without the murphy colorscheme.

I'd also like to get rid of the right scrollbar.

Help appreciated.

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA




--
You received this message from the "vim_mac" 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

#12397 From: Peter Palmreuther <pitpalme@...>
Date: Sun Jun 5, 2011 7:29 pm
Subject: Re: Configuring MacVim
pitpalme@...
Send Email Send Email
 
Hi,

On 06/05/2011 at 4:32pm Eric Weir wrote:

I created a .gvimrc and put in my home directory. At present, I've only got two commands in it:

set guioptions-=T
colorscheme murphy

They're not working. MacVim starts up with the toolbar and without the murphy colorscheme.

Use ':version' to inspect the value for "user gvimrc file".

I'd also like to get rid of the right scrollbar.

set guioptions-=r
-- 
Regards,

Peter

--
You received this message from the "vim_mac" 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

#12398 From: Eric Weir <eeweir@...>
Date: Sun Jun 5, 2011 10:06 pm
Subject: Re: Configuring MacVim
eeweir@...
Send Email Send Email
 

On Jun 5, 2011, at 3:29 PM, Peter Palmreuther wrote:

On 06/05/2011 at 4:32pm Eric Weir wrote:

I created a .gvimrc and put in my home directory. At present, I've only got two commands in it:

set guioptions-=T
colorscheme murphy

They're not working. MacVim starts up with the toolbar and without the murphy colorscheme.

Use ':version' to inspect the value for "user gvimrc file".

Thanks, Peter. It is "$HOME/.gvimrc". Which I guess is the one I created, and has only these two commands. [While I'm at it, should "colorscheme murphy" be "set colorscheme murphy?]

I'd also like to get rid of the right scrollbar.

set guioptions-=r

And thanks again.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA




--
You received this message from the "vim_mac" 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

#12399 From: Peter Palmreuther <pitpalme@...>
Date: Mon Jun 6, 2011 6:43 am
Subject: Re: Configuring MacVim
pitpalme@...
Send Email Send Email
 
Hello,

On 06/06/2011 at 00:06 Eric Weir wrote:

On Jun 5, 2011, at 3:29 PM, Peter Palmreuther wrote:

On 06/05/2011 at 4:32pm Eric Weir wrote:

I created a .gvimrc and put in my home directory. At present, I've only got two commands in it:

set guioptions-=T
colorscheme murphy

They're not working. MacVim starts up with the toolbar and without the murphy colorscheme.

Use ':version' to inspect the value for "user gvimrc file".

Thanks, Peter. It is "$HOME/.gvimrc". Which I guess is the one I created, and has only these two commands.

"guess" is quite vague for "problem hunting".
Please open MacVim and enter command ":e $HOME/.gvimrc" to check if the correct file opens, i.e. the one that in fact contains the two lines you entered.
If possible use copy/paste to avoid typos.

All I can say right now is, that MacVim evaluates my users gvimrc file correctly, and it's definitely more than two lines.
And among these lines I do have colorscheme settings and toolbar button disabling settings as well. So yes, it works. We've just got to figure what's different on your system.

Additionally: which version of MacVim are you using?

[While I'm at it, should "colorscheme murphy" be "set colorscheme murphy?]

No. It's correct without "set".
-- 
Regards,

Peter

--
You received this message from the "vim_mac" 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

#12400 From: Devric <billbox13@...>
Date: Mon Jun 6, 2011 7:18 am
Subject: Re: Configuring MacVim
billbox13@...
Send Email Send Email
 
just .vimrc will do

the guioptions-=T kind of useless on mac, you can just hit the button
on the top right of the macvim window to show/hide the tools.



On Jun 6, 12:32 am, Eric Weir <eew...@...> wrote:
> I created a .gvimrc and put in my home directory. At present, I've only got
two commands in it:
>
> set guioptions-=T
> colorscheme murphy
>
> They're not working. MacVim starts up with the toolbar and without the murphy
colorscheme.
>
> I'd also like to get rid of the right scrollbar.
>
> Help appreciated.
>
> Thanks,
>
--------------------------------------------------------------------------------\
----------
> Eric Weir
> Decatur, GA  USA
> eew...@...

--
You received this message from the "vim_mac" 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

#12401 From: björn <bjorn.winckler@...>
Date: Mon Jun 6, 2011 11:40 am
Subject: Re: Dynamically resize window when adding/removing vertical splits
bjorn.winckler@...
Send Email Send Email
 
On 5 June 2011 05:23, elliottcable wrote:
> I’m using the Janus distribution, with includes NERDTree. My MacVim is
> set to open with 152 columns (113, my textwidth, plus space for
> NERDTree and line numbers.)
>
> What I want to do, is ensure that when I open new vertical-splits from
> NERDTree (or any other way, most specificaly my secondary method of
> splitting, which is `-O` from the commandline: `mvim -O "./"
> "a_specific_file_to_begin_editing" "and_another_one"`) that the MacVim
> window itself resizes to maintain that pattern: 31 columns for
> NERDTree, plus 121 columns per vsplit.
>
> So, opening MacVim with two files from the command-line should set the
> MacVim window to 273 columns, with three files it should be 394,
> etcetera etcetera etcetera. The same rules should apply anytime I open
> or close a vsplit with NERDTree or `:q` or whatnot.
>
> Any help with this is appreciated! I’m a vim (and MacVim) noob, but
> I’m enjoying what I’m learning so far. :D

I don't have a proper answer to this question, but let me give you a
lo-tech answer that I use e.g. when viewing diffs.  I've got these
mappings in my ~/.gvimrc

map <D-1> :set co=80<CR>
map <D-2> :set co=165<CR>:winc =<CR>

When I diff something (with two vertical views) I hit Cmd-2 to resize
the window so that both views have 80 columns (the extra columns are
for the split and the gutter).  When I am finished close the split and
hit Cmd-1 to go back to 80 columns.

There may be a way to automate this using autocommands but I cannot
help you with that.  Try asking on vim_use.

Björn

--
You received this message from the "vim_mac" 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

#12402 From: Eric Weir <eeweir@...>
Date: Mon Jun 6, 2011 9:20 pm
Subject: Re: Configuring MacVim
eeweir@...
Send Email Send Email
 
On Jun 6, 2011, at 2:43 AM, Peter Palmreuther wrote:

>> Thanks, Peter. It is "$HOME/.gvimrc". Which I guess is the one I created, and
has only these two commands.
>
> "guess" is quite vague for "problem hunting".
> Please open MacVim and enter command ":e $HOME/.gvimrc" to check if the
correct file opens, i.e. the one that in fact contains the two lines you
entered.
> If possible use copy/paste to avoid typos.

My apologies for the vagueness, Peter.

And thanks. Problem solved. When I opened the file in MacVim I saw that it had
"^Ms" at the beginning and end of the lines. I had created the file in another
editor and must have saved it with CRLF format.

My MacVim version is 7.3.

--------------------------------------------------------------------------------\
----------
Eric Weir
Decatur, GA  USA
eeweir@...




--
You received this message from the "vim_mac" 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

#12403 From: Eric Weir <eeweir@...>
Date: Mon Jun 6, 2011 9:21 pm
Subject: Re: Configuring MacVim
eeweir@...
Send Email Send Email
 
On Jun 6, 2011, at 3:18 AM, Devric wrote:

> the guioptions-=T kind of useless on mac, you can just hit the button
> on the top right of the macvim window to show/hide the tools.

Thanks for bringing that to my attention, Devric.

--------------------------------------------------------------------------------\
----------
Eric Weir
Decatur, GA  USA
eeweir@...




--
You received this message from the "vim_mac" 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

#12404 From: Peter Palmreuther <pitpalme@...>
Date: Mon Jun 6, 2011 9:54 pm
Subject: Re: Configuring MacVim
pitpalme@...
Send Email Send Email
 
On 06/06/2011 at 11:20pm Eric Weir wrote:
>
> On Jun 6, 2011, at 2:43 AM, Peter Palmreuther wrote:
>
>>> Thanks, Peter. It is "$HOME/.gvimrc". Which I guess is the one I created,
and has only these two commands.
>>
>> "guess" is quite vague for "problem hunting".
>> Please open MacVim and enter command ":e $HOME/.gvimrc" to check if the
correct file opens, i.e. the one that in fact contains the two lines you
entered.
>> If possible use copy/paste to avoid typos.
>
> My apologies for the vagueness, Peter.

No problem :-)
It's just been my experience, that "guess" often turned out to be != reality ;-)

> And thanks. Problem solved.

Great news. Glad you got it worked out.

> When I opened the file in MacVim I saw that it had "^Ms" at the beginning and
end of the lines. I had created the file in another editor and must have saved
it with CRLF format.

*nah* How can you edit a vim config file with any other editor but vim ... ;-)
--
Best regard,

Peter

--
You received this message from the "vim_mac" 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

#12405 From: Bram Moolenaar <Bram@...>
Date: Tue Jun 7, 2011 3:40 am
Subject: Re: Problem in gui_mac.c?
Bram@...
Send Email Send Email
 
Lech Lorens wrote:

> 06-06-2011 05:42 u¿ytkownik "Bram Moolenaar" <Bram@...> napisa³:
> >
> > Indeed. However, nobody complained.  Was something else hiding this
> > problem, or does fixing it reveal nother proboem?
> >
>
> I won't be able to check, whether removing the semicolon causes any
> unexpected problems, because I don't even know where the nearest Mac could
> be ;-) Sorry.

Perhaps the vim_mac lists triggers a response?

This was the original remark:

> I found the following fragment in gui_mac.c:
>
> #v+
>     if (gui.which_scrollbars[SBAR_BOTTOM]);
>  p.v += gui.scrollbar_height;
> #v-
>
> The indentation suggests that the author's intention was to increment
> p.v only when the condition is true, but the semicolon at the end of the
> "if()" line prevents it.
> Looks like the semicolon shouldn't be there.

--
hundred-and-one symptoms of being an internet addict:
146. You experience ACTUAL physical withdrawal symptoms when away
      from your 'puter and the net.

  /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
You received this message from the "vim_mac" 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

Messages 12376 - 12405 of 13697   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help