Click to See Complete Forum and Search --> : vim for dos
TheLinuxDuck
01-18-2001, 01:14 PM
Does anyone know how I set up a similar .vimrc in dos? There isn't a user home dir, and I don't think a file can begin with ., so how do I do it? http://www.linuxnewbie.org/ubb/smile.gif Anyone? Bueller? Bueller?
------------------
TheLinuxDuck
I have a belly button.
:wq
YaRness
01-18-2001, 01:25 PM
c:\vim\_vimrc is where mine is
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/
knute
01-18-2001, 01:31 PM
hehehehe.... Nice thing about dos is that you can put the file anywhere your heart desires and then just add the path to where-ever you stored the file to the path statement in your config.sys file (is the path statement in config.sys? can't remember... It is either there or autoexec.bat. http://www.linuxnewbie.org/ubb/smile.gif )
It's been to long since I have used Dos to remember...
------------------
Knute
If it's on the network and ain't secured, it's free game.
YaRness
01-18-2001, 01:37 PM
well i think [g]vim looks for it in c:\vim.
of course you could probably put it somewhere else and make a .bat file to call vim with the config file specified on the parameter.
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/
TheLinuxDuck
01-18-2001, 04:55 PM
Geez, I'm dense sometimes..
I went to edit the new file c:\vim\_vimrc, and it was already there.. duh. I could have done a search, and found it..
hrmm..
Ok, well, then, I have one other questuion then..
Every time I get to the end of a line or beginning, vim beeps the most annoying beep. I have no idea to disable it, minus disconnecting the speaker itself.
Can I put something into the _vimrc file to disable it?
------------------
TheLinuxDuck
I have a belly button.
:wq
Strike
01-18-2001, 05:34 PM
Try :set novisualbell
TheLinuxDuck
01-18-2001, 05:41 PM
Originally posted by Strike:
Try :set novisualbell
Sorry, Strike, didn't work. ::sigh:: I hate that blasted beep. I think I will just disconnect the speaker. http://www.linuxnewbie.org/ubb/frown.gif
------------------
TheLinuxDuck
I have a belly button.
:wq
fafnir
01-18-2001, 06:51 PM
The visual bell makes the screen flash when vim feels the need to beep, you probably want to set something like "nobell" (I haven't tried it, so take with a pinch of salt). <wishfull thinking> Maybe if you turn visualbell on it will turn the audio bell off </wishfull thinking>
HTH
Fafnir
TheLinuxDuck
01-18-2001, 07:00 PM
Originally posted by fafnir:
probably want to set something like "nobell" (I haven't tried it, so take with a pinch of salt).
Unfortuntely, 'nobell' isn't recognized. http://www.linuxnewbie.org/ubb/frown.gif
<wishfull thinking> Maybe if you turn visualbell on it will turn the audio bell off </wishfull thinking>
That did work!! It just flashes when the beep should happen.. the only trouble is, the flash takes as long as the bell, and if beeping more than once it's almost as annoying (though quieter, which is really what I was after..) http://www.linuxnewbie.org/ubb/smile.gif
Thanks for the tip thingy ("thingy" courtesy of YaRness)
------------------
TheLinuxDuck
I have a belly button.
:wq
There is definitely a way to set it so you have neither the the visual nor audio bell. Unfortunately, it's in my .vimrc at work; I'll try to remember to check tomorrow, and I'll get back to you.
f'lar
01-18-2001, 09:25 PM
<grasping straws> maybe if you turn the visualbell on, and then off on the next statement </grasping>
YaRness
01-19-2001, 11:01 AM
i figured out how to get rid of the beeping:
in windows: turn my speakers off.
in solaris on the base: set the volume to nil.
in kde/mandrake/whatever: i think i turned off the option somewhere to beep at me with the computer speaker.
see, it's EASY.
(sure wish someone would post how to ACTUALLY turn it all off in vim though....)
<edit> whoohoo, i just figured out how to set gvim to use the ctrl-c, ctrl-x, and ctrl-v windows cut/pasting stuff i'm so addicted too.
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/
[This message has been edited by YaRness (edited 19 January 2001).]
nanode
01-19-2001, 11:28 AM
I use gvim.exe for win32 quite a bit - actually all the time @ work.
To get in the spirit of Unix, I made a /usr/local/ folder on C:\ and store all my apps there. It has no added function, but it messes with the MCSE types if they try to troubleshoot my box.
I created $VIM="C:\usr\local\vim\vim57\"
Saves a bit of typing http://www.linuxnewbie.org/ubb/smile.gif
YaRness
01-19-2001, 12:12 PM
i have two fun things in my dos path:
c:\vim\vim57
c:\usr\local\wbin <---(unix proggies, ls, grep, cat, etc)
i've also got a sh.exe somewhere, but i haven't figured out how to set it up yet.
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/
nanode
01-19-2001, 12:40 PM
my sh.exe works, but has some funky behavior. The most annoying thing is 'ls' brings up the win32 cmd.exe window.
I placed mine on the taskbar/tray thing - and editing the properties so I could set where in the file system to open to.
YaRness
01-19-2001, 01:19 PM
Originally posted by nanode:
my sh.exe works, but has some funky behavior. The most annoying thing is 'ls' brings up the win32 cmd.exe window.
I placed mine on the taskbar/tray thing - and editing the properties so I could set where in the file system to open to.
did you hafta set up some kind of config file? can i see it? http://www.linuxnewbie.org/ubb/smile.gif or at least get some info. it would be nice to play with... when i start sh.exe right now, it uses DOS's prompt env variable.. etc.
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/
'kay dude; try this:
':set vb t_vb='
I'm relatively certain this is how I got rid of those annoying beeps & flashes. Strangely, I can't seem to find this phrase anywhere in my vimrc file. weird.
TheLinuxDuck
01-19-2001, 06:13 PM
Originally posted by kmj:
':set vb t_vb='
YOU ROCK!!!! If you were near me, and a woman, I would kiss you!!!!!
::dancing around!!::
::singing and laughing::
::happy thoughts::
WOOO HOOO!!!! http://www.linuxnewbie.org/ubb/smile.gif http://www.linuxnewbie.org/ubb/smile.gif http://www.linuxnewbie.org/ubb/biggrin.gif http://www.linuxnewbie.org/ubb/biggrin.gif
------------------
TheLinuxDuck
I have a belly button.
:wq
I'm glad it worked for you; http://www.linuxnewbie.org/ubb/wink.gif
YaRness
01-22-2001, 02:20 PM
Originally posted by kmj:
'kay dude; try this:
':set vb t_vb='
I'm relatively certain this is how I got rid of those annoying beeps & flashes. Strangely, I can't seem to find this phrase anywhere in my vimrc file. weird.
yeah, but in gvim, it still flashes http://www.linuxnewbie.org/ubb/frown.gif
that's ok, i think i'm using window's default beep, which is a very quiet sound anyway, not at all like having awful pc speaker beeps.
------------------
"Assembly of Japanese bicycle require great peace of mind."
Registered Linux User #188285 http://counter.li.org/