#vim - Thu 17 May 2007 between 12:58 and 13:56

NY Lost Funds



JarJarBinksset lcs=eol:<C-v>m
or do you want to see a windows file in unix mode?
Zathrusdhaumann: because it's showing you the CRLF as $
if you want it to show you it as something else, tell it to do so.
and make sure to do :set list
JarJarBinksZathrus: :) ahh, forgot set list (hehe)
sorry dhaumann
treKremHI everyone
I was just wondering what variable holds the name of the current file
so I could use it in a custom command
Zathrusin what context? % or expand('%') works.
treKremi want to pass it on to a shellscript
Zathrusso :!somescript %
treKremok
thanks, works great
calmarfunny pic :) http://whitecortex.net/~mikko/curves.jpg
adjcan i make a setting in my .vimrc only apply to gvim?
well, im sure i can. how do i do though
Heptiteadj: Just put it in .gvimrc instead.
JarJarBinkscalmar: hehe
Zathrusif has('gui_running')
jamessanif has("gui_running") | set someoption | endif
adjnice =)
Zathrushaving everything in your .vimrc is cleaner IMO
adjZathrus: agreed
HeptiteExcept the has("gui_running") trick means the settings aren't run if you use the ":gui" command, whereas the .gvimrc is sourced when you do that.
jamessanyeah, but who really uses :gui? ;)
HeptiteI do.
tpopeI occasionally do
rindolfjamessan: I'm using gvim.
tpopewhich raises an interesting concern
actionsoftdrink pets gvim
softdrinkpets gvim
actionZathrus didn't even know of the :gui command
Zathrusdidn't even know of the :gui command
tpopeI just refactored part of my vimrc to use if exists("&guifont") instead
jamessanrindolf: I was referring to the :gui command though which spawns a gvim instance from vim
tpopedon't forget au GUIEnter
rindolfjamessan: oh.
jamessanI've never seen a reason to use :gui but that's probably because I rarely use gvim
HeptitePersonally I prefer to have settings that I /know/ are meant only for the GUI to be in my .gvimrc
tpopethe reason I have a use for :gui is because I rarely use gvim

Page: 2 9 16 

IrcArchive

NY Lost Funds