| rook2pawn | hi may i get some vim help |
| Ori_B | ask, don't ask to ask. |
| frogonwheels | rook2pawn: .. since unless everybody happens to be asleep/away, etc, the answer is usually yes/we'll try |
| rook2pawn | yes I am working with gvim70.exe for windows, but I would like to have it save in Unix so the newline is just new line not dos style. so I put this in somewhere in my _vimrc file found in my Program Files/Vim/_vimrc "set fileformats=unix,dos" is this correct |
| frogonwheels | That just affects what fileformats is read |
| rook2pawn | argh... how may I set it so it always saves in Unix mode |
| frogonwheels | Certainly put the filformats in that order helps - and note that it will always write in the same format that you read it in - |
| rook2pawn | where does the gvim save the persistent settings and where does the vim save its persistant settings? are they not one and the same? |
| frogonwheels | Actually - I think changing the order WILL do what you want. gvim also loads gvimrc but they both load vimrc :version rook2pawn: But you understand that existing files won't be affected. YOu would have to set an autocommand or manually type :set fileformat=unix |
| rook2pawn | may i not just put set fileformat=unix in the _vimrc? |
| frogonwheels | set fileformats=unix,dos (as you originally said) But you have to :so the _vimrc or restart vim |
| rook2pawn | right, problem is, when I went to the (gvim->Graphical Menu)->Edit->File Settings->File Format, it always "boldens" DOS, as if DOS were the current selected output. whereupon I want it to be uinx. Where does the Graphical Menu get its data from or is that a preset routine that the author of the GUI put in, that doesnt read setting? |
| frogonwheels | That should show the current version... |
| rook2pawn | also, how do I change the Current working directory by specifying it in some vimrc file? |
| frogonwheels | :set fileformat? :cd directory should do it. |
| \amethyst | rook2pawn: cd path in your vimrc |
| frogonwheels | rook2pawn: Can you give me the steps to your prev problem... what I understand is: rook2pawn: :set fileformats=unix,dos rook2pawn: :e newfile.c :set fileformat? (should give 'unix') rook2pawn: :e oldmsdosfile.c rook2pawn: :set fileformat? (should give 'dos') |
| rook2pawn | yes I put that in a my _vimrc wait what is :e |
| frogonwheels | Hmm.. may I suggest you run vimtutor - won't take you long |
| rook2pawn | i did. it only showed how to navigate, change words, delete lines, basic file saving |
| frogonwheels | :e is 'edit' Did you have a look at the tutor from the irc page? |
| rook2pawn | no, I didn't I figured going through the vimtutor would have been sufficient apparently it wasn't |
| frogonwheels | Hmm. not sure how it misses :e (kinda basic) Ok - vimtutor DOES go through :e Lesson 7.2 |