prabhath kiran | 25 Jan 07:44 2015
Picon

Installing auto completion in vim for python.

I used Pydiction plugin to install Tab completion for python. But it doesn't work.
I am using os x and vim 7.4

Thanks for the help.

-- 
--

-- 
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cesar Romani | 23 Jan 22:03 2015
Picon

Problem with matchit when editing html

I'm using vim 7.4.591 on Windows 7.
I'm editing an html file with the matchit plugin installed.
Using % I can jump from <body> to </body>, <script> to </script>, etc.
but not from ( to ), { to }, or [ to ] although "set mps" reports
(:),{:},[:],<:>

How can I add these pairs whenever I'm editing an html file?
If I do, for example, "let b:match_words='(:)'" then all other default
pairs get lost!

Many thanks in advance,

-- 
Cesar

-- 
--

-- 
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cesar Romani | 22 Jan 22:52 2015
Picon

Problem with AutoAlign

I'm using vim 7.4.589 on Windows 7.

I'm editing an html file and type '()' (without quotes)
then go back one place and try to type 'a=' (without quotes), then I get
immediately after the closing parenthesis!
I have to go back one place to continue to type after '='

I discovered that the cause of it is the imap:
ino <silent> = =<c-r>=AutoAlign(1)<cr>

on AutoAlign.vim (v15a)

If I do 'iunmap =' I don't get this problem.

Many thanks in advance,

-- 
Cesar

-- 
--

-- 
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

(Continue reading)

Paul | 22 Jan 00:23 2015
Picon

Want highlight CursorLine/Column to override Search

I have the following in my ~/vimfiles/colors/mine.vim:

   highlight CursorColumn guibg=#002800 guifg=white gui=NONE
   highlight CursorLine guibg=#002000 guifg=white gui=NONE
   highlight Search guifg=black guibg=#cc0000 gui=bold

Sometimes, the cursor line/column overlaps with the text that is
highlighted for Search.  In those locations, Search overrides
CursorLine/Column, and the specified bold formatting makes the
characters jump out of the screen into my eyeballs.

Is there a way to specify which highlight property has priority when
characters fall under several highlight groups?

-- 
--

-- 
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Óscar Pereira | 21 Jan 23:45 2015
Picon

Open folds in autocmd makes vim start at strange lines

Dear all,

I wanted a way to make vim, when opening a file, open all folds it
contained. But *only* when opening the file: if I closed some folds on
the original file and then switched to another window or buffer, when
returning to the original one the folds I had closed should remain
closed. The only way I could solve this was by putting this in my
.vimrc: 

autocmd BufWinEnter * :call ExpandFoldsOnOpenFile()

function! ExpandFoldsOnOpenFile()
	if exists("b:did_initial_fold_expansion") | return
	endif
	let b:did_initial_fold_expansion = 1
	normal(zR)
endfunction

Of course I did *not* want to do this for every file, but before I could
move that piece of code out of .vimrc, I noticed something strange: when
opening a lot of files, even ones with no folds, vim would *not* start
in the file's first line. The most notorious case was mutt: vim would
start in the first non-blank line (either the signature line or the
"Reply Original in..." line if replying to a previous mail).

Now my question is... *why* does this happen? I mean, if I open a file
with no folds, and do "zR", the cursor stays in the same line. I've read
the docs on folds, but I could not an answer. Ideas anyone?

Thanks,
(Continue reading)

Jacky Liu | 21 Jan 04:31 2015
Picon

Gvim shows wrong color for highlight group color names on Ubuntu 14.04


Freshly installed Ubuntu 14.04 then built gvim 7.4 on it, I just discovered that the colors gvim picked were
all wrong for the predefined color names, like the name "Green",See below:

http://bluegene8210.is-programmer.com/user_files/bluegene8210/Image/Screenshot%20from%202015-01-21%2010:14:26.png

Here I did

:runtime syntax/colortest.vim

within Gvim, then sampled the color using Gcolor2. For the color name "Green" I would expect the RGB value
0-255-0, but here I got 0-128-0. Below is the correct color on my last Ubuntu 12.04:

http://bluegene8210.is-programmer.com/user_files/bluegene8210/Image/Screenshot%20from%202015-01-21%2010:42:02.png

It's not just green color got messed with, likewise is many other colors.

I tried building gvim using the same source I used on 12.04, where the color is right, but still no good. 

I also checked /etc/X11/rgb.txt, it looks ok, neither did

:set background=dark

in gvim seems have any effect.

Recon my knowledge about the system level is very limited, please help, thanks.

-- 
--

-- 
You received this message from the "vim_use" maillist.
(Continue reading)

Timeout of i_CTRL-X mode (insert_expand)

I noticed that the mode used for auto-completion etc., that you enter by pressing CTRL-X when in insert
mode, times out very fast. Why is this so? Increasing timeoutlen and even setting notimeout made no difference.

It does not appear to be a plugin issue. I am running Vim 7.4.580 on Arch Linux. The issue does not appear to be
present on Vim 7.4.567 on MS Windows with the same plugins (and almost identical config).

-- 
--

-- 
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bao Niu | 20 Jan 05:31 2015
Picon

why "function!" instead of just "function"

I am learning Vimscript and I wonder if there is any difference between writing "function!" vs.
"function"? What is that exclamation point for here?

-- 
--

-- 
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Bao Niu | 20 Jan 05:24 2015

Should vimgrep always use "/" to enclose your search patterns?

in Vim is enclosing your search pattern with "/" recommended? The documentation says it is optional. If
it's optional then why not just forget it? Can someone explain this using newbie friendly language,
preferably with examples. Thanks.

-- 
--

-- 
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
surge | 20 Jan 05:22 2015
Picon

semicolon to repeat "f" delay

Hi,

What has always puzzled me is that the ";" command to repeat the last "f" or "F" command always takes too long.
There's a noticable delay which I think happens because vim waits if something is about to follow the ";".
As a result I prefer to use "f" one more time instead.

Why the delay and what to do about it?

Thanks

-- 
--

-- 
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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Bruno Sutic | 18 Jan 12:45 2015
Picon

[viml help] getting the behavior of `helpgrep` quickfixlist

Hi group!
I'm working on a small "grep for manpages" plugin. Ideally, it whould mimic how vim's `helpgrep`
functionality works.

Here's the helpgrep quick highlight to describe the wanted feature:
- a user enters `helpgrep some_pattern` in vim's command line. Vim performs search and populates quickfixlist
- it get's interesting here: when an item from this list is selected, vim does a window split to show content
(window split is usually *not* done when opening QF item)
- whenever an item from *this* QF list is chosen, it is opened in *the same* `help` window
- it seems you can't have 2 or more windows displaying "content" from this QFlist

These QFlist features seem specific to helpgrep:
- doing a window split when opening first QFlist item
- always opening QFlist entries in the same window
- only 1 window for this QF list allowed

How can I get the same behavior for my plugin?
Are there some plugins out there that already have this implemented so I can look into them?

Any hint appreciated!

Thanks for the help

-- 
--

-- 
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

--- 
(Continue reading)


Gmane