last day (17 days later) » 

9:23 PM
ohai
 
10:23 PM
@unNaturhal what about it?
 
@sehe Here, or in the other chat? xD
 
10:40 PM
@unNaturhal apparently you chose the other chat. Next time, for hardcore vim (offtopic) stuff, consider taking this room?
 
@sehe Ooookey :D
I'm creating the html sample file
Then I will show you what happen when I try to do what you say :P
 
Ok
Have you edited $MYVIMRC to sanity yet?
 
Nope, can you regive me the command please?
 
in Lounge<C++>, 12 mins ago, by sehe
@unNaturhal Type :behave xterm
That's the most important bit.
in Lounge<C++>, 12 mins ago, by sehe
@unNaturhal One piece of advice: :tabedit $MYVIMRC | g/\cwin/d | %:s/behave mswin/behave xterm/g | wq and restart
^ that is to edit your vim config file
 
@sehe Done, nothing is happening
 
10:48 PM
I take it you did `:behave xterm`?
Of course nothing is happening: you just changed an option
 
@sehe Ah okok :P
 
Now, mouse selection should lang you in VISUAL mode, instead of (select) mode
 
@sehe This say that there is an error
It cannot regain the file
 
@unNaturhal Yeah, that's ok. Drop the g/\cwin/d | part.
@unNaturhal regain?
Just don't save it, then: :quit!
 
@sehe recover?
 
10:49 PM
17 secs ago, by sehe
Just don't save it, then: :quit!
 
Wait
E pressed esc, now the error is gone, and a file is open
 
@unNaturhal start with :e! (reload)
Now, delete the line that says something like source windows.vim
Change the line behave mswin into behave xterm
 
Done
 
@unNaturhal Great, save, you might test the config now:
:source %
 
mmh
 
10:53 PM
Once you restart, you'll be a happier vimmer. No windows-user-proof oddities
 
I have to close the file first?
 
@unNaturhal Nope. No problem if you did. You can restart. I bet you didn't make errors with the edits :)
 
You win...
 
If the file was closed, :source $MYVIMRC would do the job.
% means 'current file'
 
Aaah
It gives an error xD
With the file open
 
10:55 PM
@unNaturhal It? Error? When?
 
In doing :source %
 
Ok, what file is open and what is the error?
 
Function MyDiff already exist, put ! to replace it
 
Aha. I forgot. The default vimrc on windows is really quite bad. But I know enough: save, close and restart vim
 
10:57 PM
(the lines before the infamous MyDiff function were sourced without error)
 
...It seems that I haven't the right to write .-.
 
@unNaturhal Hmm. Could be. Try :w! (force overwrite)?
Windows 7, I don't have it.
 
I cannot open the file in write mode
(i'm translating the command as well as I can :P)
 
@unNaturhal Damn. I don't know where to put your personal vimrc on Windows 7. Perhaps google SO for that
Apparently, the default vimrc ($MYVIMRC currently) is the system global one and you can't edit it (unless you run as administrator, of course)
 
Mmmh, wait, if it's a problem of win7 I will solve it
I run as administrator xD
 
11:01 PM
@unNaturhal It must be
@unNaturhal Yeahm but UAC, elevation etc. they don't happen automatically. I'd search SO to see where to put your personal vimrc instead
28
Q: Where should the .vimrc file be located on Windows 7?

AJ.I recently installed vim on Windows 7 as a stand-alone binary. Where should I put my .vimrc file?

 
SAVED! :D
 
It appears that you should be able to use :saveas! $HOME/_vimrc
@unNaturhal Ok, now, restart and feel the difference :)
 
I changed the autorizations :P
@sehe Restarted, now?
 
@unNaturhal Happy vimming!
Load your text, select stuff and hit = to reindent (just hoping the filetype detection will be working ... )
 
@sehe Ok, now when I select the text I can run commands
But := doesn't indent the source :P
 
11:06 PM
@unNaturhal Brillant. Dunno who invented that default windows config. I'd strongly consider firing her :)
@unNaturhal Nope. I mentioned that
 
@sehe Her? It's a girl that invented it? xD
 
@unNaturhal Trying not to be biased
I see I edited over that by accident:
> Damn. Just found out that := means something else entirely.
 
@sehe Yeah, I remember :P
 
To be honest, I didn't know that. I just assumed it would work, like :%y (yank), :%> (increase indent) :%< (v.v.), :%d etc.
 
Ahahah :)
Don't worry! I solved my problem anyway :)
 
11:10 PM
Those all correspond to the normal mode commands. Only = is odd
Great. I'm off to bed then. Feel free to come back to this room in the future. I might not be around immediately, but I'll respond to plink messages (@sehe)
Perhaps we should make this a proper vim room. Not a bad idea actually.
 
You have been very kind to help me. Thank you so much :)
 
Cheers
 
@sehe I will do :D
Good night ;)
 

  last day (17 days later) »