| JarJarBinks | set lcs=eol:<C-v>m or do you want to see a windows file in unix mode? |
| Zathrus | dhaumann: 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 |
| JarJarBinks | Zathrus: :) ahh, forgot set list (hehe) sorry dhaumann |
| treKrem | HI everyone I was just wondering what variable holds the name of the current file so I could use it in a custom command |
| Zathrus | in what context? % or expand('%') works. |
| treKrem | i want to pass it on to a shellscript |
| Zathrus | so :!somescript % |
| treKrem | ok thanks, works great |
| calmar | funny pic :) http://whitecortex.net/~mikko/curves.jpg |
| adj | can i make a setting in my .vimrc only apply to gvim? well, im sure i can. how do i do though |
| Heptite | adj: Just put it in .gvimrc instead. |
| JarJarBinks | calmar: hehe |
| Zathrus | if has('gui_running') |
| jamessan | if has("gui_running") | set someoption | endif |
| adj | nice =) |
| Zathrus | having everything in your .vimrc is cleaner IMO |
| adj | Zathrus: agreed |
| Heptite | Except 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. |
| jamessan | yeah, but who really uses :gui? ;) |
| Heptite | I do. |
| tpope | I occasionally do |
| rindolf | jamessan: I'm using gvim. |
| tpope | which raises an interesting concern |
| action | softdrink pets gvim |
| softdrink | pets gvim |
| action | Zathrus didn't even know of the :gui command |
| Zathrus | didn't even know of the :gui command |
| tpope | I just refactored part of my vimrc to use if exists("&guifont") instead |
| jamessan | rindolf: I was referring to the :gui command though which spawns a gvim instance from vim |
| tpope | don't forget au GUIEnter |
| rindolf | jamessan: oh. |
| jamessan | I've never seen a reason to use :gui but that's probably because I rarely use gvim |
| Heptite | Personally I prefer to have settings that I /know/ are meant only for the GUI to be in my .gvimrc |
| tpope | the reason I have a use for :gui is because I rarely use gvim |