IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.70 MB
Powered by
Channel Info
Network: freenodeChannel: #vim |
Search in www.irclog.org
Log from #vim at freenode 2006-06-05
[10:09]<2jrrd>:map! -- INSERT-MODE: yes; COMMAND-LINE: yes;
[10:09]<azsyds>ok, so it means ACCESSIBLE from both modes
[10:10]<ylcyss>hmm, maybe map-mode-i is new in vim7...
[10:10]<azsyds>I have 6
[10:10]<ylcyss>oh, sorry, it is mapmode-i
[10:11]<azsyds>ipkiss: still no help
[10:11]<2jrrd>anyone know if the conceal patch for v7 is available?
[10:12]<azsyds>oh well. I can beat my head against this some more tomorrow. Thanks for the help, this is the farthest I've gotten. :) nite.
[10:18]<df777>I have one issue when using vim7: when I'm moving using keys hjkl, vim lags on {} matching. Is there any option to solve the problem?
[10:31]<wyppzynmp>ml666, :he matchparen
[10:31]<-- dvxn|syzzzyus xzs>http://www.bagdadsoftware.de")
[11:45]<xnfmv>Why does vim adds a linebreak at the end of the file? And how to I disable this?
[11:59]<ndjwy>heldt: :he 'eol
[12:02]<mzzawn2nw>Is vim able to copy append to a register?
[12:02]<2ggjyva>hi
[12:03]<2ggjyva>mmm how can I set diffrent tab by languages ?
[12:03]<2ggjyva>is this possible?
[12:04]<ndjwy>MarcWebe1: yes, use upercase letter for the named register to append toit
[12:05]<ndjwy>benoitc: take a look at ftplugins and autocommands
[12:07]<mzzawn2nw>Nyoxi: Thx
[12:07]<2ggjyva>mm k thanks
[12:19]<2jrrd>i have a variable that has the contents "one^@two^@three"; i do a replace on it with \n for ^@, but when emitting the variable into a buffer, it still has the ^@ (NUL) chars.
[12:20]<2jrrd>i remember reading that vim uses ^@ to represent \n in memory...
[12:20]<ndjwy>benoitc: :he sub-replace-special
[12:20]<ndjwy>ewww
[12:20]<ndjwy>boggy: ^^
[12:21]<2jrrd>moi?
[12:21]<ndjwy>boggy: :he sub-replace-special
[12:21]<2jrrd>i'm not sure what you specifically mean
[12:22]<ndjwy>read the help
[12:22]<dyvxzj>how do I make .* non greedy in vim?
[12:22]<ndjwy>enter what I told you in vim and read
[12:22]<ndjwy>mithro: use \{-}
[12:22]<2jrrd>yeah, i know; but i'm sure specifically what to read
[12:22]<2jrrd>i know about special replacements
[12:22]<dyvxzj>Nyoxi: where in the expression?
[12:23]<2jrrd>mith, after the atom you want to work it on
[12:23]<2jrrd>eg \d\{-}
[12:23]<ndjwy>boggy: maybe I missunderstood your problem, what exactly you want to replace nulls with?
[12:24]<2jrrd>newlines -- \n
[12:24]<ndjwy>yep, so read the help :)
[12:24]<2jrrd>then i want to paste that variable into a buffer
[12:24]<2jrrd>yes, and i've done that -- and it pastes the ^@ NULs
[12:25]<2jrrd>sub (var, ^@, \n) -- setline (var, 1)
[12:25]<ndjwy>then maybe read agian about sub-replace-special
[12:30]<zywwjg>i wonder, does vim have any built in way of counting LOC?
[12:30]<2jrrd>lines or LOC?
[12:31]<zywwjg>that is, actual lines - comment lines - whitespaced lines
[12:31]<zywwjg>(- being subtraction :p)
[12:31]<2jrrd>ctrl-g
[12:31]<2jrrd>or g ctrl-g
[12:31]<2ggjyva>Niomi: thanks !
[12:31]<zywwjg>how cool
[12:31]<zywwjg>thank you
[12:31]<2jrrd>oh, sorry
[12:31]<2jrrd>not what you want
[12:31]<zywwjg>uhm, where is loc count :p
[12:32]<2jrrd>i guess you could script it...
[12:32]<zywwjg>yea but different languages use different comment types etc
[12:32]<zywwjg>was just wondering if vim had some support that used the syntax definitions
[12:33]<2jrrd>v:comment-pattern\|white-space:g, save result, subtract lines - result
[12:33]<2jrrd>something like that
[12:33]<2jrrd>you'd have to undo it, too
[12:34]<zywwjg>uhm
[12:34]<2jrrd>actually, \0 would do
[12:34]<zywwjg>them \ commands don't work for me
[12:35]<zywwjg>probably keymap problem
[12:37]<zjacnzz6w>can anyone tell me how to change the java syntax file so that for indenting I get 4 spaces instead of 8? I got it do it uses spaces instead of tabs (maybe it did that before, I don't remember), but I can't find how to change the number of spaces
[12:37]<2jrrd>setf tabstop=8 in your java.vim
[12:37]<zywwjg>set sw=4
[12:38]<2jrrd>oh, yea :D
[12:38]<2jrrd>i think in $VIM/sytax/java.vim
[12:38]<zywwjg>you should use tabs for indendation though
[12:38]<zywwjg>set ts=4
[12:39]<zywwjg>uh and set noet
[12:40]<zjacnzz6w>cool, that fixed it
[12:40]<zjacnzz6w>according to the checkstyle rules this prof. makes us use we have to use spaces
[12:40]<zjacnzz6w>thanks
[12:40]<zywwjg>some people have this wierd idea that spaces are better for intendation
[12:41]<2jrrd>spaces are best when you're collaborating
[12:41]<zywwjg>i disagree
[12:41]<zjacnzz6w>why?
[12:41]<zywwjg>read http://derkarl.org/why_to_tabs.html ?
[12:41]<zjacnzz6w>ok
[12:42]<zywwjg>boggy: what makes spaces better when collaborating? i can't think of a single reason
[12:54]<2jrrd>still can't get this... let x = "one^@two^@three" | call substitute (x, "^@", "^M", "g") | call setline (1, x)
[12:54]<2jrrd>can't get it to convert
[15:44]<mzzawn2nz>Why can't I map <m-a> in insert mode but in normal mode?
[15:46]<lnjnnzm>GUI, terminal, ..?
[15:46]<za2s>In which does it work, in which doesn't it?
[15:48]<mzzawn2nz>GUI
[15:49]<mzzawn2nz>It works in normal mode
[15:51]<mzzawn2nz>Oh. It only doesn't work after setxkbmap dvorak. With us it works? Strage
[15:52]<mzzawn2nz>solved. it works now
[16:05]<dld>is there a way to to tell vim to set an option or not depending on whether it is running on a terminal or with the GUI (gvim)?
[16:05]<dld>for example, my .vimrc contains 'set background=dark', which is ok on the terminal, but when I invoke it as gvim, I'd like it to use 'set background=light'
[16:13]<mzzawn2nz>dpm: .gvimrc?
[16:13]<dld>ok, thanks.







