#vim - Mon 12 Mar 2007 between 13:19 and 13:36



gnuvinceehird: Emacs refugee?
ehirdgnuvince: I didn't actually use Emacs for that long, but shells and all OS X text controls use ^A and ^E so i use them all the time
s/shells/shells at default configs, which i happen to use
gnuvinceokay.
but yeah, those are Emacs keybindings.
shlterver: that was a cool puzzle. this channel beats sudoku any time :)
ehirdyeah
terverwhere i can find all ex-commands? for example what excommand for 'O'?
first thing i thought of - add empty line before every ' ' and then format using default vim paragraph feature
Zathrusterver: :he ex-cmd-index
ehirdwhat's the option to enable auto-insertation of matching bracces, etc?
so:
type ", "" appears with cursor in between
same with ( --> (|) where | = caret, etc
{ too (if it could enter+indent after the { too without writing a complex function that'd be cool too)
Zathrusehird: there is none. You can create abbreviations or imaps to do it if you want.
simonterver, thanks!
shlthat shit always distracts me. I think netbeans does that right?
gnuvincedejavu++
shlgnuvince: ?
gnuvinceshl: a lot of IDEs. I know Zend Studio for PHP does it.
shl: the font.
shloh, ok.
ehirdlots of plain editors do it too
personally, it saves me years of typing
shl*cough* bullshit *cough*
actiongnuvince agrees with shl.
gnuvinceagrees with shl.
Zathrusshrug, to each their own. It'd drive me batty though.
ehirdis there a way to make commands execute in the dir of the current file? i.e. :e . would edit the dir of the current file, :!rm somefile would execute in the same dir, ...
shlehird: :lcd %:h
ehirdright but is there a way to do that without running it every 3 seconds :)
shlehird: I think there was something in the help about *always* doing it. but i don't remember if it was a autocmd or an option
Zathrusehird: :he 'autochdir --- as noted, it'll break many things.
ehirdwhy would it break things?
Zathrusrtfm
ehirdThis option is provided for backward compatibility with the Vim
released with Sun ONE Studio 4 Enterprise Edition. <-- heh.
anyway - it says it will break things
not why
Zathrusbecause many plugins, scripts, etc. don't expect the cwd to be changing like that.

Page: 1 8 15 

IrcArchive