single shot mapping insert mode backwards line move

2017-04-05 Thread Sylvain Viart
Hi, I'm trying to build a function for solving some completion hacking. I mean, I would like to quickly move my cursor in insertmod backward in the current line and cycle though the positions. My idea is to define 2 key bindings: imap which will detect some char in the current line [=/] imap

Re: editing etc/hosts protected under vista

2009-04-09 Thread Sylvain Viart
Hi, Sylvain Viart a écrit : Vim display error message about modifing C:\Windows\System32\drivers\etc\hosts Is there a way to use admin level privileges to write the file? We can launch vim with admin priviledge with right click Run as administrator. Before editing. Regards

full completion in php

2009-04-07 Thread Sylvain Viart
Hi, What's the limit of vim's completion? Can I complete, class names, inheritance, properties, given the context I'm typing? Example: class A extends B { var $some_var; function f1() { } function f1() { $this-| - could complete f1, f2 or

Re: How to redraw the whole vim screen after splitting new windows?

2009-03-27 Thread Sylvain Viart
Hi, Tim Chase a écrit : Clark J. Wang wrote: For window-related autocmds I only found WinEnter and WinLeave. Any idea? What about :redr[aw][!]Redraw the screen right now. When ! is included it is cleared first. Useful to update the screen halfway

Re: macro seems not compatible 7.0 = 7.1

2009-03-20 Thread Sylvain Viart
Hi Ben, Ben Fritz a écrit : I've the following macro working fine on vim 7.0 Vi IMproved 7.0 (2006 May 7, compiled Aug 29 2007 11:52:41) nmap §Z :s/\.$//ecr0zy$Izone escA {crtabtype master;crc-utabfile /etc/bind/db/c-rz;crc-u};esc I have no idea what might be wrong or what might have