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

NY Lost Funds



t35t0ri have a word like this Hans-J\"{o}rg why isn't dw cutting the entire word?
thoratdo dW
:h W
:h WORD
t35t0rok thanx
thoratyou could say that w is a programmers word, whereas W is a writers word
mgtrnI 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?
thoratis it mapped in insert mode or normal mode?
mgtrnboth.
as far as i recall, the strange behavior happens in normal mode.
thoratand how is the map?
do :imap <C-i>
I mean :nmpa <C-i>
mgtrni have map! <C-i> \emph{}<Esc>i
thorat:map
:nmap
ok
timlarsonwhat autocmd is needed for catching directory browsing?
mgtrnand for when I'm in normal mode, i have map <C-i> i\emph{<Esc>ea}<Esc>b
thoratmgtrn: maybe doing :nnoremap is better than :nmap
in case the escape sequences are mistaken for some <alt> bindings you have...
mgtrnok thanks, i'll try.
timlarsonhow does vim know to display a directory as a list of selectable files instead of flat text?
mgtrni 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.
thorattimlarson: I don't think such an autocmd-event exists
ZaoC-u is the traditional "nuke everything from here to the beginning of the line" in unixish environments.
timlarsonnetrw does intercept it somehow, but I have not decyphered its code yet
ZaoIn terminals, you can do C-y to re-enter the removed text, but vim doesn't seem to do anything with C-y
mgtrn: As a workaround, :imap <C-u> <Nop>
`u' is intriguingly close to `i' on most keyboard layouts :)
SAS_Spidey01Could that be because many shells use emacs line editing by default Zao?
mgtrnZao: what does the <Nop> do?
Zaomgtrn: Nothing. It's a no-op.
SAS_Spidey01: Mayhaps. I don't use emacs :)
mgtrnoh, I see, to make my typos into something harmless.
whowas thorat
outoflawWhat is the Emacs' CTRL-Q equivalent in vim? Can anybody tell me please?
gavagaiwhat is ctrl-q in emacs?
outoflawgavagai, 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

Page: 2 9 16 

IrcArchive

NY Lost Funds