## #vim - Mon 26 Mar 2007 between 00:40 and 01:59

### NY Lost Funds

 t35t0r i have a word like this Hans-J\"{o}rg why isn't dw cutting the entire word? thorat do dW:h W:h WORD t35t0r ok thanx thorat you could say that w is a programmers word, whereas W is a writers word mgtrn I have ctrl-i mapped to do LaTeX italics. Sometimes when I hit this combo, vast swaths of text disappear, and there is no undo possible. WTF? thorat is it mapped in insert mode or normal mode? mgtrn both.as far as i recall, the strange behavior happens in normal mode. thorat and how is the map?do :imap I mean :nmpa mgtrn i have map! \emph{}i thorat :map:nmapok timlarson what autocmd is needed for catching directory browsing? mgtrn and for when I'm in normal mode, i have map i\emph{ea}b thorat mgtrn: maybe doing :nnoremap is better than :nmapin case the escape sequences are mistaken for some bindings you have... mgtrn ok thanks, i'll try. timlarson how does vim know to display a directory as a list of selectable files instead of flat text? mgtrn i wonder if maybe it only happens once in a while because I'm accidentially hitting somthing besides C-i. Still weird that there'd be no undo available. thorat timlarson: I don't think such an autocmd-event exists Zao C-u is the traditional "nuke everything from here to the beginning of the line" in unixish environments. timlarson netrw does intercept it somehow, but I have not decyphered its code yet Zao In terminals, you can do C-y to re-enter the removed text, but vim doesn't seem to do anything with C-ymgtrn: As a workaround, :imap u' is intriguingly close to i' on most keyboard layouts :) SAS_Spidey01 Could that be because many shells use emacs line editing by default Zao? mgtrn Zao: what does the do? Zao mgtrn: Nothing. It's a no-op.SAS_Spidey01: Mayhaps. I don't use emacs :) mgtrn oh, I see, to make my typos into something harmless.whowas thorat outoflaw What is the Emacs' CTRL-Q equivalent in vim? Can anybody tell me please? gavagai what is ctrl-q in emacs? outoflaw gavagai, well, when I write something I try not to pass the 80 char margin. However when I insert text that line starts going beyond the limit. In emacs when I hit CTRL-Q it rearranges the paragraph. I use vim and would like to know what is the shortcut in vim. gavagai :set tw=80