Re: bracket completion
I tried out Karl's plugin, and it works great, good job :) Although, I'd prefer if I could use tab to move outside, instead of the corresponding closing bracket char. Could this be achieved in a future version? On 4/3/07, David Fishburn [EMAIL PROTECTED] wrote: -Original Message- From: Karl Guertin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 6:42 AM To: vim@vim.org Subject: Re: bracket completion On 3/31/07, Greg Fitzgerald [EMAIL PROTECTED] wrote: Anyone know of a way to achieve bracket completion? I've been sitting on a plugin that does this for a month or so. The main difference between my plugin and the rest of the options here is that I do the completion without breaking history or repeat. Freshly uploaded to vim.org: http://www.vim.org/scripts/script.php?script_id=1849 This plugin was pared down from a larger script that included a set of less reusable mappings, so let me know if there's a problem. Thanks for the script Karl. Not a problem, but a suggestion. Could you make an option to ignore the autoclose if there is a following character. If I am typing a line: If ( -- here I want the autoclose. If I have this line: If (something_is_already_here) ^ And I place my cursor on the i in something I do not want to add the closing brace since generally if I am inserting that the closing brace will be placed at the end of the line (or something). Just a preference, which is why I was hoping it could be an option. So only complete when the ([[ is the last item on the line (as I am typing). Thanks, Dave -- Panos Laganakos
Re: bracket completion
Those are great, thanks alot :) On 4/1/07, Fritz Mehner [EMAIL PROTECTED] wrote: A.J.Mechelynck schrieb: Greg Fitzgerald wrote: Anyone know of a way to achieve bracket completion? For example if your typing a if statement, if (something) { once you type the first bracket the 2nd one is inserted below for you. Scribes and a few other editors have this functionality and was hoping to achieve it with Vim. Another thing that this does, if you were to type $data[' for example. The 2nd ' would be inserted for you after your cursor. Just seems to save time when I played with scribes a few days ago. I was looking through the help, scripts and mailing list archives for something like this but have not hit any matches. Just wondering if people have ideas on how this could be done or maybe know of an existing way. Thanks in advance. --Greg :inoremap { {CR}UpEnd :inoremap [ []Left :inoremap ( ()Left etc. This assumes brace indenting is taken care of (by 'cindent' or 'indentexpr'). IIUC, you can still enter an unpaired brace (or bracket or paren) by prefixing it with Ctrl-V (or with Ctrl-Q if Ctrl-V pastes). Best regards, Tony. In addition I use the following settings vnoremap ( s()EscPRight vnoremap [ s[]EscPRight vnoremap { s{}EscPRight to surround a selection in visual mode. Regards, Fritz -- Panos Laganakos
Re: bracket completion
One thing that would also be great, was if you were able to tab your way out of it, ie move to the outside of the bracket, once you're done. Now you need to either press right, to move ahead (which is not quite vim-ish), or hit escape and Shift_A, to resume editing. Only possible way I can think of, is to use a snippet system, like snippetsEmu[1] or something. Any other suggestions? [1] http://www.vim.org/scripts/script.php?script_id=1318 On 4/2/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Zarko Coklin wrote: It is hard to expand on Tony's feedback, ever. Still, I found the following works a bit better. Not only that it creates a right brace but it also places a cursor on the right spot (taking into consideration indentation if you set it). :inoremap { {CR}UpCREnd :inoremap [ []Left :inoremap ( ()Left Regards, Zarko Coklin The right spot depends on your C coding style: your mapping might apply for if (condition) { statement; statement; } and void function functionname(void* p) { statement; statement; } though it might be better to place CR _after_ End in the {rhs} to avoid splitting a word in the middle. Mine is better for if (condition) { statement; statement; } and void function functionname(void* p) { statement; statement; } and can still be used for yours, by hitting Enter after the mapped { Best regards, Tony. -- Taxes are going up so fast, the government is likely to price itself out of the market. -- Panos Laganakos
Re: question about a python plugin
Not sure which plugin is, but it seems to offer the functionality or Vim 7.0.* - omnicompletion (for the python language) type :help i_CTRL_X-CTRL-O On 3/25/07, shawn bright [EMAIL PROTECTED] wrote: hey gents ! i found this screencast http://www.tuxed.de/vimpst/video.html does anyone know what plugin is being showed off here? thanks shawn -- Panos Laganakos
Re: Updated Windows installer 7.0.219
Is this version compiled with +python/dyn or +python? If so, is it python 2.4 or 2.5? On 3/20/07, fREW [EMAIL PROTECTED] wrote: On wtorek 20 marzec 2007, vim@vim.org wrote: firewall our build machine sits behind. So I'm open to solutions for how to remove obsoletes from the file set. I had considered deleting the oldest files, but in most cases (such as the current) the files to be removed are generally newer than the rest. The best I can do is to occasionally delete the whole set and re-download, but with the new spelling dictionaries, this is 200+ MB each time and I hate to waste the bandwidth. Suggestions? Put that on users bandwidth - let download dictionaries during install from Vim page, distribute only English dicts. Dictionary can be downloaded later even when trying to use particular dictionary. m. That's a good call. And if you give them the option of which dictionaries to install you can save even more. -- -fREW -- Panos Laganakos
Re: Updated Windows installer 7.0.219
Ah, great. Thanks. On 3/21/07, Steve Hall [EMAIL PROTECTED] wrote: From: Panos Laganakos, Wed, March 21, 2007 9:16 am Is this version compiled with +python/dyn or +python? If so, is it python 2.4 or 2.5? See the notes for the file: http://sourceforge.net/project/shownotes.php?release_id=495061group_id=43866 -- Steve Hall [ digitect dancingpaper com ] :: Cream for Vim :: http://cream.sourceforge.net -- Panos Laganakos
macvim wiki available
For any Vim on OS X following the list, there's a macvim specific wiki available here: http://macvim.solhost.org It has content already, so go ahead and do your thing, we're awaiting your contribution! Original announcement here: http://tech.groups.yahoo.com/group/vim-mac/message/4276 Enjoy! -- Panos Laganakos
OS X color scheme issue
Vim Version: 7.0.* OS X Version: 10.4.8 I am having a strange issue on Vim startup. on my .vimrc I specify: set background=dark colorscheme darktango though, every time I start Vim up, it turns out like this: http://panos.solhost.org/images/Picture%201.png the situation persist, even if I start working: http://panos.solhost.org/images/Picture%202.png the only way to fix this, is by executing one of the :set background=dark or :colo darktango commands again, to get it working: http://panos.solhost.org/images/Picture%203.png Any idea what's happening here? -- Panos Laganakos
vim.org refreshed mockup
I made a mockup of a refreshed version of vim.org, trying to maintain as much of the original look as possible: http://panos.solhost.org/mockups/vimorg-01.png vim tangofied icon by toZth -- Panos Laganakos
Re: Planet Vim
I don't see why planet web sites still exist. I can basically recreate this functionality using an rss-aggregating web site such as Bloglines. You can search for Vim-related blogs using their blog search engine, and then track your favorite Vim-related sites in a Vim folder. I use Google Reader, to subscribe to individual feeds, or planets ie: planet.gnome, etc. I haven't heard of bloglines, but I will give it a look. What I find easy about planets, is that you can just subscibe to it and get all the good stuff at once, while if I went through searching for tags 'vim' etc, I would have to hand-pick them myself, 'cause some RSS feeds are not user oriented, like a linux distro, management system may provide info for an vim meant only for maintainers etc as an example. Plus, users who don't have a web based RSS aggregator, can just browse it for fun :) I'm not trying to be negative - I just wanted to save you some time if the functionality that I described is what you require. I'm glad that you mentioned bloglines and I can give it a look. Can it do the stuff that I mentioned above? You are right. I have another idea :-) Lets just mention all vim related blogs in this thread and then people can add them to their rss aggregators themself. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com -- Panos Laganakos
Mapping Alt_Shift on Vim windows
Hello, My problem is this: I am used to pressing Alt_Shift in order to switch languages on windows, but Doing so in Vim will just change language without changing keymap. That results in me not being able to use Vim as keybindings don't work etc. I'd like to know how it'll be possible to map Alt_Shift to set keymap=Greek if None and None if Greek. Thanks. -- Panos Laganakos
Re: Omnicompletion top window
Mike Bradley [EMAIL PROTECTED] wrote: Theres a set called completeopt make sure that it does not contain the string preview. Here are two lines from my .vimrc, I coment one out depending on which feature I would like. Put the second line in your .vimrc and see if it helps. set completeopt=menu,preview turn on preview menu for omni completion set completeopt=menu turn off preview menu for omni completion Hey Mike, Thanks for the tip, but that's not exactly what I'm looking for. I *want* the preview window to appear while I'm in the process of the omnicompletion, but I want it to go away, once I'm done with it. Is there a way to automate the steps I take to close it, as I described in the starting post? -- Panos Laganakos
Omnicompletion top window
Hello, I'd like to know if there's a way to get rid of the top horizontal window that appears while we're using omnicompletion. Right now, after I Ctrl_X Ctrl_O and find the one I want I just type it. While the balloon list disappears the horizontal window with the info stays, so I have to Ctr_W k :q to get rid of it. Is there a faster way to make it go away once I'm done with completion? -- Panos Laganakos
First attempt at tangofied icon
Here's a first attempt at a tangofied vim icon: http://panos.solhost.org/vim-01.png http://panos.solhost.org/vim-02.png
Add omni-completion for Python's Base Modules
Hello, Is it possible to have omni-completion for python's base modules, like sys, os etc? And even more interesting support for any other module installed in site-packages. Thanks.