<bairui>Â Â Â maybe. maybe not. There is no harm in having a general omni as well as file-specidic omnis
<sabgenton>Â Â Â ok
*Â Â Â jhoepken (~jhoe...@dslb-088-076-144-063.pools.arcor-ip.net) has joined #vim
<sabgenton>Â Â Â would still like to know
<bairui>Â Â Â well, i don’t know.
I don’t php. thankfully.
<sabgenton>Â Â Â php works with syntaxcomplete#Complete
<sabgenton>Â Â Â what language are you familiar with?
<sabgenton>Â Â Â (s)
<bairui>Â Â Â none – i keep them all at a respectable distance
<sabgenton>Â Â Â do you vim for config files or note etc?
<bairui>Â Â Â I Vim therefor I am.
<sabgenton>Â Â Â sorry proobly a #vim-chat for this hehe
<sabgenton>Â Â Â nice
<sabgenton>   I was considering trying to learn emacs again then I reallised vim 7 has nice code completion
<bairui>Â Â Â last I saw emacs was ~17 years ago…
<sabgenton>Â Â Â so :cope is just like ^w ing to it but faster
<bairui>Â Â Â well… :cope will open the quickfix window if it’s not already open
<sabgenton>Â Â Â ok see
<bairui>Â Â Â ^w is a prefix (in normal mode) to the windowing commands
<sabgenton>Â Â Â the helpgrep opened for me this time
<bairui>Â Â Â ok
<sabgenton>Â Â Â whats the best place to go to understand exectly what I am puting in .vimrc for omincompletion
<bairui>Â Â Â dunno. I don’t use omni. sorry.
<sabgenton>Â Â Â ok
<sabgenton>Â Â Â what about the file stuff you recommended
<bairui>   filetype plugin indent on  <–  make sure that’s in your ~/.vimrc
<sabgenton>Â Â Â I have it as I showed except for the indent part
<sabgenton>Â Â Â whats indent do?
<bairui>Â Â Â add the indent – it’ll save the next question you have on #vim
 – good luck with the omni stuff, sabgenton – others here do omni. be persistent. I’m gonna hit the sack now.
<bairui>Â Â Â it adds a lot of indentation support for filetypes. g’night all.
<sabgenton>Â Â Â
night
<rudi_s>Â Â Â Hi. Is it possible to increase the files for which the last cursor position is remembered? It seems like only 10 files are remembered. I use the snippet from :help last-position-jump. Thanks.
<jamessan>   rudi_s: :help ‘viminfo  last-position-jump relies on being able to find a value for the ’0 mark for that file
<rudi_s>Â Â Â jamessan: Thanks, but I found no option to increase the number of stored file marks. Or is it the ‘ option?
<jamessan>Â Â Â rudi_s: exactly ![]()
<rudi_s>Â Â Â jamessan: Ah, great. Thank you ![]()
<rudi_s>Â Â Â Is it possible to just change that option without touching the other values? I tried viminfo+=’1000 but that doesn’t seem to work.
<jamessan>   rudi_s: that works fine. it can’t resurrect file information for files that it already forgot, though
<rudi_s>Â Â Â jamessan: Hm. But still have only 100 ‘>’ entries in “History of marks”. ‘viminfo’ is viminfo=’100,<50,s10,h,’1000 (set viminfo+=’1000)
<rudi_s>Â Â Â *after opening more files of course.
<jamessan>Â Â Â rudi_s: the viminfo file is only written when you exit vim (or call :wviminfo)
<rudi_s>Â Â Â jamessan: I know. I visited a few new files, exited vim and when I reopen the files the position is remembered correctly, but I still have only 100 entries in “History of marks”.
<jamessan>Â Â Â rudi_s: then open a file that isn’t already in that history ![]()
<xeon123>Â Â Â in vim, what is considered the <leader> key?
<jamessan>Â Â Â xeon123: :help <leader>
*Â Â Â satyavvd_ is now known as satyavvd
<rudi_s>Â Â Â jamessan: I did of course. It works fine when I use set viminfo=’1000,<50,s10,h; but not when I use set viminfo+=’1000.
<rudi_s>Â Â Â After I switched bag to += it was truncated to 100 entries again.
<rudi_s>Â Â Â *back
<jamessan>   rudi_s: huh, yeah, looks like it’s using the first value instead of the last. so you’d have to use “set viminfo^=’1000″
<jamessan>Â Â Â seems like a bug to me
<rudi_s>Â Â Â jamessan: Thank you. ^= works fine.
<Zitter>Â Â Â hi, can I ask an off topic question to an engish mothertongue?
<rane_>Â Â Â huh?
<Zitter>Â Â Â how is called in english person that is not driving the car, but he’s carried on?
<Zitter>Â Â Â the driver and the … ?
<rane_>Â Â Â passenger
<Zitter>Â Â Â yes… too simple also for me! thanks rane_Â ![]()
*Â Â Â Zitter was thinking “Carried”
*Â Â Â Ecco guesses Zitter speaks a latin language ![]()
<Zitter>Â Â Â Ecco, ![]()
*Â Â Â FernandoBasso speaks a useless language… ![]()
<Jerub>Â Â Â FernandoBasso: lojban?
<FernandoBasso>Â Â Â useless_language = pt_BR
<tos9>Â Â Â Heh.
<banttu>Â Â Â Hi,I have tried putting set autoindent and set smartindent in my .vimrc and each time I fire up vim those 2 options don’t take
<FernandoBasso>Â Â Â I don’t have any of these in my 500-lines long ~/.vimrc. :/
<FernandoBasso>Â Â Â http://img6.imageshack.us/img6/1664/vimrc.png
<FernandoBasso>Â Â Â Lunch time…
<gkatsev>Â Â Â vimgor: smartindent
<vimgor>Â Â Â Don’t you mean stupidindent? In all seriousness, ‘smartindent’ is an obsolete option for C-like syntax. It has been replaced with ‘cindent’, and setting ‘cindent’ also overrides ‘smartindent’. Vim has indentation support for many languages out-of-the-box, and setting ‘smartindent’ (or ‘cindent’, for that matter) in your .vimrc might interfere with this. Use ‘filetype indent on’ and be happy.
<gkatsev>Â Â Â vimgor: autoindent
<vimgor>Â Â Â Dunno!
<jaggz–>Â Â Â how do I do simple floating-point math, like 50/638
<jaggz–>Â Â Â actually I end up needing it as an integer.. int(100*50/638)
<Dynetrekk>Â Â Â jaggz–: the answer is 0, so hard-code it ![]()
<coot>Â Â Â jaggz–: :echo 50.0/638
<jaggz–>Â Â Â coot, thank you :0Â and how do I insert it as text?
<jaggz–>Â Â Â s/:0/:)/
<jaggz–>Â Â Â come to think of it, I don’t know how to insert from the commandline.. except a file… or I guess :i is insert
<jaggz–>Â Â Â Dynetrekk: it’s going to be used in a macro to do a bunch of calculations
<jaggz–>Â Â Â tired of sending it to bc
<jaggz–>Â Â Â how do I insert “hello” at the current cursor position from the commandline?
<jaggz–>Â Â Â :someinsertcommand {expr}
<rippa>Â Â Â :norm ihello<Esc>
<jaggz–>Â Â Â thanks ![]()
<jaggz–>Â Â Â except I really do need the {expr} result.. my hello example was insufficient ![]()
<jaggz–>Â Â Â ah.. maybe :let @register_letter={expr}Â then I can :norm “rp
<jaggz–>Â Â Â assuming r is the register
<maqr>Â Â Â how might i delete everything on a line that isn’t in quotes?
<jbrokc>Â Â Â hey where’s the help on :<linenumber>
<coot>Â Â Â jaggz–: sorry, I was off for a moment, you can redirect output to a register with :redir @a | echo 50.0/3 | redir END, or you can use :call append(line(“.”), string(50.0/3))
<coot>Â Â Â jaggz–: :let @a=string(50.0/3) also will work
<jbrokc>Â Â Â maqr: if the line’s where the cursor is then :s/^.\{-}\(“.\{-}”\).*$/\1/g
<jbrokc>Â Â Â oops – s/^.\{-}\(“.\{-}”\)\+.*$/\1/g
<maqr>Â Â Â jbrokc: there can be more than one thing in quotes on a line… but if i need a regex like that to do it, maybe i should just do it by hand ![]()
<maqr>Â Â Â (also, you might be a wizard)
<jbrokc>Â Â Â maqr: i dunno i’m just throwing shit at the wall
<maqr>Â Â Â well it was damn close for something untested that looks like that ![]()
<jbrokc>Â Â Â it works for one word in quote but i’m trying to figure out how to use \& to make a lookbehind work multiple times
<jbrokc>Â Â Â i’ve never used it before though
<jbrokc>Â Â Â maqr: so s/\&.\{-}\(“.\{-}”\)/\1/g works but it doesn’t clear after the quotes…
<jbrokc>Â Â Â and yeah that’s wizardry
<jaggz–>Â Â Â by hand or with macros you can use visual mode’s select tools
<jaggz–>Â Â Â vi’
<Raimondi>Â Â Â jaggz–: Ctrl-R =
<jaggz–>Â Â Â or vi” I mean
<Raimondi>Â Â Â jaggz–: That’s to insert the result of an expression on insert mode
<jaggz–>Â Â Â raimond, reading i_^r … that’s so interesting!
<jbrokc>Â Â Â Raimondi: you got anything on removing everything not between quotes? i must be crazy because i’m way off
<jaggz–>Â Â Â I can’t get any floating point stuff though.. the 40.0/500 is not working .. 100*40/500 works for the task at hand.. but is there any way of doing floating-point manipulation?
<jaggz–>Â Â Â oh.. everything NOT between quotes
<Raimondi>Â Â Â jbrokc: That’d work if there only one quoted string
<jbrokc>Â Â Â Raimondi: the \& attempt works for more except it doesn’t clear after the last one
<Raimondi>Â Â Â jaggz–: 40.0/500 works here
<Phillemann>Â Â Â I’m currently fixing my identation behavior. I’m using cindent. When I write the following http://codepad.org/cBvikpvh I get the problem described. Does anyone know which setting is responsible for that?
<jaggz–>Â Â Â :echo 40.0/500 gives me 400
<jaggz–>   why can’t I let it go? I got the task I needed to done
<Raimondi>Â Â Â Phillemann: See :h cinoptions-values
<Phillemann>Â Â Â Raimondi: I read the whole section and I can’t figure it out.
<Raimondi>Â Â Â jaggz–: That’s because Vim thinks the dot is concatenating
<Raimondi>Â Â Â jaggz–: Which version are you using?
<Raimondi>Â Â Â Phillemann: I’m not a C user, let me see if I can find the option…
<Phillemann>Â Â Â Raimondi: I currently have “se cino=g0,N-s,(s,p0,t0,)100,h0,u0″
<Phillemann>Â Â Â So there’s little options using the shift width left.
<Raimondi>Â Â Â Phillemann: No idea. If you don’t get any answers here try with the vim_use mailing list.
<Phillemann>Â Â Â Raimondi: Ok, thanks anyway ![]()
<Raimondi>Â Â Â np
*Â Â Â abstrakt_ is now known as abstrakt
<jonasb>Â Â Â hi all, below the file ends each line is displayed as a ~. what is that feature called? I’d prefer to have it all black, i.e. remove ~, is that possible?
<tos9>Â Â Â You wouldn’t be able to tell the difference between empty lines and the file end
<tos9>Â Â Â But looks like highlight NonText guifg=bg does it
<tappi>Â Â Â think there’s a non highlight related way to do that as well
<tappi>Â Â Â ie. a way to just disable it
<jamessan>Â Â Â not that I know of, tappi
<jamessan>   jbrokc: it’s documented just under :help gg no topic of its own
<jbrokc>Â Â Â jamessan: thanks
<jbrokc>Â Â Â maqr: i got it if you’re still interested – s/.\{-}\(“.\{-}”\).\{-}\|.\{-}$/\1/g
<jonasb>Â Â Â tos9: that’s fine by me.. I’m trying vimroom (http://projects.mikewest.org/vimroom/)
<jonasb>Â Â Â so would only apply this in a very specific context
<jonasb>Â Â Â “highlight NonText guifg=bg” works to some extent but I have some other background color at the end of the file…
<tos9>Â Â Â jonasb: Very cool. I’ve never considered looking for a vim plugin that does writeroom, but now that you’ve linked it I may try it myself.
<tos9>Â Â Â jonasb: Yeah, you need to work out colorscheme stuff to get it the correct color, I’m not so great at that. Um..
<jonasb>Â Â Â the way it does it is to create four windows to the
<jonasb>Â Â Â s/to the/for the padding
<jonasb>Â Â Â I’m using terminal mode, probably the reason
<tos9>Â Â Â I’m a bit surprised that the plugin doesn’t help you with this
<jonasb>Â Â Â me too
<jonasb>   highlight NonText ctermfg=bg  did the trick for me
<tos9>Â Â Â Cool.
<jonasb>Â Â Â it might be that it just isn’t tweaked for terminal… gui mode works quite well
<jonasb>Â Â Â vimroom sets highlight NonText ctermfg=black, which turns into ctermfg=0, which is a gray color for me (256 colors). ctermfg=bg turns into ctermfg=16 which is black
*Â Â Â sh1m is now known as sh1mmer
<Knodi>   Any know how I can move cursor after closing bracket or quote, in insert mode?
<Knodi>Â Â Â so if i’m typing (test) move from at the last t to out side of the bracket?
<Knodi>Â Â Â without getting out of insert mode?
<Raimondi>   Knodi: Ctrl-O l see :h i_Ctrl-O
<Knodi>Â Â Â this Raimondi
<Knodi>Â Â Â One more question % goes to opening brace first then it jumps to closing brace is there a key press for jumping cursor to ending brace first?
<jonasb>Â Â Â tos9: https://github.com/mikewest/vimroom/pull/11
<coot>Â Â Â Knodi: the normal behaviour of % is to jump first to the closing bracket, you can test it with :normal! %
*Â Â Â yofel_ is now known as yofel
*Â Â Â sh1m is now known as sh1mmer
<tos9>Â Â Â jonasb: Nice
<asarch>Â Â Â I start a multi-line comment block in C with /*, how can I set vim to automatically auto-indent and ADD another * to the new line?
<FernandoBasso>Â Â Â I just hit <Enter> and it does that for me.
<FernandoBasso>Â Â Â Â /*something…<Return> It works that way for me.
<FernandoBasso>Â Â Â I don’t remember having any special setting for that.
<FernandoBasso>Â Â Â asarch: Have you tried that?
<tappi>Â Â Â asarch if you have at least filetype plugin on, and you’re editing a file where that makes sense, then vim should do that automatically
<tappi>Â Â Â err, actually filetype plugin indent on
<Knodi>Â Â Â Is there a command like % to jump right to the ending brace without having to press % twice?
<tappi>Â Â Â f%
<tappi>Â Â Â err
<tappi>Â Â Â f) or f] or f} depending on what brace you have
<FernandoBasso>Â Â Â It will work only if the the closing brace is on the same line, I think.
<Knodi>Â Â Â because I want to do ctrl-o then command for jumping to ending brace
<tappi>Â Â Â Knodi make a bind for pressing %% twice
<asarch>Â Â Â FernandoBasso: Yes, I have
<Knodi>Â Â Â kk thx tappi
<tappi>Â Â Â or just press it twice
<tappi>Â Â Â w/e ![]()
*Â Â Â asarch tries with a blank new C source code file
<tappi>Â Â Â asarch did you set that filetype plugin indent on in the .vimrc?
<acx0>Â Â Â tappi, you can put it in there if you want to save it
<Knodi>Â Â Â I would hate to do ctrl-o % twice
<Knodi>Â Â Â seems alit to press so your right, i’m going to map it to a key
<tappi>Â Â Â acx0 yes i know
<tappi>Â Â Â that’s why i said it
<acx0>Â Â Â tappi, oh my bad, i thought you were the one asking how to set it up
<asarch>Â Â Â tappi: No, I didn’t. This my ~/.vimrc: http://paste.scsys.co.uk/148664
<tappi>Â Â Â if you want that functionality then you need to add it
<tappi>Â Â Â it’s that simple ![]()
<asarch>Â Â Â How do you do that?
<asarch>Â Â Â What is the name of that option?
<tappi>Â Â Â :h filetype
<bassliner>Â Â Â hmm. when i use vim in an xterm and i have “syn on” in my vimrc (i don’t have any other settings there at all) then SOME colours in vim will change after the first keypress in a session. with xfce4-terminal, this does not happen. any hint why?
<FernandoBasso>Â Â Â asarch: If you are new to vim, the help might seem baffling.
<FernandoBasso>Â Â Â I mean, the vim’s help.
<FernandoBasso>Â Â Â asarch: I’d advise you to place that line “filetype plugin indent on” somewhere at the beginning of ~/.vimrc.
*Â Â Â FernandoBasso is new to vim himself.
<iocor>Â Â Â how do I alias :NERDTree to :nt
<rane_>Â Â Â alias it to <leader>nt rather
<iocor>Â Â Â new to vim
<asarch>Â Â Â Thank you FernandoBasso
<asarch>Â Â Â Thank you very much ![]()
<FernandoBasso>Â Â Â iocor: :nmap <Leader>nt :NERDTree<Return>
<iocor>Â Â Â FernandoBasso: does that go in my vimrc?
<FernandoBasso>Â Â Â iocor: Just that in vimrc you don’t need the :
<iocor>Â Â Â the leading ![]()
<FernandoBasso>Â Â Â iocor: Yes.
<FernandoBasso>Â Â Â That is only needed in vim’s command line itself, or better, on switch to vim’s command line mode.
<bassliner>Â Â Â interesting, even happens with a fresh user, on different systems…
<iocor>Â Â Â that’s not working
<FernandoBasso>Â Â Â iocor: What is not working?
<FernandoBasso>Â Â Â Ah, to ‘run’ the ‘alias’, you have to restart vim, and type \nt in normal mode.
<iocor>Â Â Â I typed :nt(enter) and it said “:nmap <Leader>nt :NERDTree<Return>”not an editor command nt”
<FernandoBasso>Â Â Â Â nmap <Leader>nt<Return> in ~/.vimrc. Reestart vim and hit \nt
<iocor>Â Â Â still saying command not found
<iocor>Â Â Â nmap <Leader>nt<Return> :NERDTree<Return> that’s the line I’ve got
<FernandoBasso>Â Â Â Does :NERDTree work by itself?
<iocor>Â Â Â yup
<iocor>Â Â Â it’s still saying “not an editor command”
<rane_>Â Â Â remove space before :
<iocor>Â Â Â http://sprunge.us/ZWAK
<iocor>Â Â Â that’s my vimrc
<tos9>Â Â Â iocor: You’re typing it in :
<iocor>Â Â Â ok
<FernandoBasso>Â Â Â iocor: Are you typing :nt or \nt ?
<iocor>Â Â Â I’m typing :nt\n
<iocor>Â Â Â that’s what I want to type to get nerdtree
<FernandoBasso>Â Â Â No, just \nt
<iocor>Â Â Â uh
<iocor>Â Â Â by \n
<iocor>Â Â Â I mean enter key
<iocor>Â Â Â but I want to type :nt and get nerdtree
<FernandoBasso>Â Â Â Â nmap nt :NERDTree<Return> then.
<iocor>Â Â Â it’s still saying “not an editor command”
<bairui>Â Â Â iocor: you can’t (easily) create : commands that start with lower-case letters.
<bairui>Â Â Â so, FernandoBasso and tos9 are showing you an alternative using a Normal Mode command instead
<macrobat>   try a cabbr. like      :cabbr nt NERDTree
<bairui>Â Â Â yes, that is the path to lower-case : commands
<bairui>Â Â Â but it is fraught with danger
<iocor>Â Â Â hat one works
<macrobat>Â Â Â stay safe
<FernandoBasso>Â Â Â Just for testing, :nmap :nt :help<Return> worked here.
<bairui>Â Â Â it will, FernandoBasso – but that’s a normal map – and now you’ve clouded your : entry into Ex Mode
<FernandoBasso>Â Â Â bairui: I agree. That is why I was advising to use <Leader>nt instead.
<bairui>Â Â Â right, FernandoBasso, but iocor wanted to access this through Ex mode
<bairui>Â Â Â at least – that’s how he *though* he had to, or wanted to
<bairui>Â Â Â s/though/thought/
<Knodi>Â Â Â How can I man vsplit windows scroll, lets say I set wmm=80 but my gvim window size is 100. So when I switch focus it v-scrolls to show full 80 colums on the next vsplit window?
<macrobat>Â Â Â :cabbr NT NERDTree is more safe. I don’t have an idea on how to nerf it further
<Knodi>Â Â Â how can i scroll*
<Knodi>Â Â Â so v scrolling
<naryl>Â Â Â Greetings! What data structure does vim use internally to store text?
<Raimondi>Â Â Â Knodi: :h scrolling
<bairui>Â Â Â good morning, Raimondi ![]()
<Raimondi>Â Â Â Good morning, bairui ![]()
<macrobat>Â Â Â what is wmm? ![]()
<Knodi>Â Â Â i mean wmw=80
<Knodi>Â Â Â damn typos
<jbrokc>Â Â Â so i HTML in VIM does one thing that annoys me terribly and that’s any anchor tag (<a>) that continues on a new line has it’s underline continued across all the whitespace instead of on the word itself
<Jerub>Â Â Â jbrokc: that’s annoyed me too in the past.
<jbrokc>   taking a peek at syntax/html.vim it looks something like start=”<a\>\_[^>]*\<href\>” end=”</a>”me=e-4 but dude… that’s way beyond me.
<jbrokc>Â Â Â i’m offering unconditional love and affection to the person who solves this problem
<walt>Â Â Â jbrokc: vim syntax files are hell
<walt>Â Â Â ![]()
<jbrokc>Â Â Â walt: i know – i’m thinking of doing some weird skip= pattern but I don’t know what the hell me=e-4 at the end of that thing means. or \_
<walt>Â Â Â I once tried writing one from scratch
<walt>Â Â Â I gave up
<kadoban>Â Â Â i don’t think that’s what skip is for actually, i was just looking at that…it says it’s something about where not to look for the end
<jbrokc>Â Â Â walt: i hack on vim-taskpaper’s syntax file all the time to learn more about regex’s and tricky shit like \z
<bairui>   jbrokc: :help /\_ – it’s for including newlines in searches   and iirc, me = match-end – and this is saying, consider the match end to be 4 from the end… but I’ll have to hit the :help to confirm that.
<bairui>Â Â Â yep – :help :syn-pattern-offset
<bairui>   hmm… which shouldn’t have a : designator in the help files, jamessan -  :help :syn-pattern-offset  – yeah?
<jbrokc>   Jerub: if you comment out lines 248 and 254 of :e $VIMRUNTIME/syntax/html.vim then it’s just gone.. dunno
<jbrokc>Â Â Â an underline would be nice but the continuing onto new lines pisses me off too much
<kadoban>Â Â Â maybe you could change it to another highlighting style, like bold, that wouldn’t look like ass on long whitespace like that? not ideal, but…
<bairui>Â Â Â jbrokc: an alternative approach:
<bairui>Â Â Â highlight link htmlLink NONE
<bairui>   highlight link htmlLink                   HtmlItalic
<bairui>Â Â Â ah, kadoban, same idea
<jbrokc>Â Â Â yeah – <h> tags have bold already
<jbrokc>Â Â Â huh gui=italic doesn’t work
<jbrokc>Â Â Â ah nevermind – can’t do it in a link
<jbrokc>Â Â Â so you guys – sublime text 2 is like a really hot editor right now. I just don’t get why. is there some features that new editors come out with that is really awesome and not quite available in vim nowadays?
<AvianFlu>Â Â Â jbrokc, I’d say the mouse ![]()
<AvianFlu>Â Â Â in the modern-gui sense, I mean
<walt>Â Â Â isn’t sublime aimed only at python
<walt>Â Â Â ?
<AvianFlu>Â Â Â click n’ drag, no learning command line or key combinations
<AvianFlu>Â Â Â no, it’s general use
<AvianFlu>Â Â Â it has the usual collection of “most common languages”
<AvianFlu>Â Â Â people are scared of the CLI, bottom line
<AvianFlu>Â Â Â a lot of the time, anyway
<walt>Â Â Â I tried Sublime a year ago
<walt>Â Â Â didn’t like it at all
<FernandoBasso>Â Â Â There is no life after vim.
<FernandoBasso>Â Â Â The command like was what first hocked me to linux, and irssi, and vim. I felt like a hacker the first time I learned some commands back in ubuntu 6.06. ![]()
<FernandoBasso>Â Â Â s/command like/command line/
<FernandoBasso>   Damn typos². s/hocked/hooked/
<sjl>   I’m confused. :help statusline says that it’s global and local to windows, but when I :setlocal statusline=foo in a window and then edit a different file in that window, it uses the global value
<sjl>Â Â Â It seems like it’s behaving as local to a buffer, not a window
<Araxia>Â Â Â sure looks like a documentation bug to me.
*Â Â Â sorin is now known as Guest18706
*Â Â Â newbie is now known as Guest55643
<tsolox>Â Â Â how do i search for something like, ‘myvar =’Â Â because I want to find the places wherein myvar gets assigned to. There could be varying whitespaces…
<strull>Â Â Â try /myvar *=
*Â Â Â okayzed is now known as okay
<bairui>   or  /myvar.*=  if you have situations like  myvar += 1  etc
<strull>Â Â Â then you better go for /myvar\>.*=
<bairui>   or even /\<myvar\>.*=
<strull>Â Â Â but he’s away anyway
*Â Â Â strull is fighting with qemu right now
<bairui>Â Â Â queer emus?
<bairui>Â Â Â oh – the virtualisation stuff
<strull>Â Â Â right. Nice and terrible at the same time
<bairui>Â Â Â i’ve only ever dabbled. nothing serious. i think it was to proof a Puppy build.
<strull>Â Â Â dabbled ?
<bairui>Â Â Â dabbled = played with (a little)
<strull>Â Â Â aah, ok. learned smth new ![]()
<jbrokc>Â Â Â easier way to expand the <cword> in a nnoremap than :Cmd <C-R>=expand(“<cword”)<CR><CR>Â ?
<jbrokc>Â Â Â doesn’t look like it ![]()
<strull>Â Â Â try <c-r><c-w>
<bairui>   you might be able to use  <c-r><c-w>  in some places
<jbrokc>Â Â Â thanks
<bairui>Â Â Â np
<strull>Â Â Â have fun!
*Â Â Â invariable is now known as variable
<jamessan>Â Â Â bairui: I think :syn-pattern-offset should have the : since it’s documenting :syn’s pattern offset stuf
<bairui>Â Â Â ah. ok… it was a tad confusing (before coffee) because it wasn’t a full command in itself. But I accept your reasoning now (well after coffee
)
*Â Â Â Guest55643 is now known as Daditos
<tshauck>Â Â Â hey, I’m trying to use vim to edit tex files, but it seems to take a while to detect that it’s a .tex file (I don’t get tab completion or syntax highlighting I normally do) How can I make it detect .tex files faster
<medgno>Â Â Â tshauck: you could do something like au BufRead,BufNewFile *.tex setfiletype tex
<medgno>Â Â Â in your vimrc
<tshauck>Â Â Â cool thanks, I’ll give that a try
<jamessan>   that’s not going to help. there’s already filetype detection for .tex files. they just default to the plaintex filetype unless there’s something to indicate it should be tex. putting “let g:tex_flavor=’latex’” is probably going to be better
<jbrokc>Â Â Â if you want to bundle an autocommand for a filetype-plugin, where would it go? syntax/ after/plugin or ftplugin/ and would you just write it as an autocommand not in an augroup or augroup still applies?
<jbrokc>Â Â Â say i’m setting the omnifunc for a certain filetype
<jamessan>Â Â Â jbrokc: ‘omnifunc’ is typically set in the ftplugin
<jbrokc>Â Â Â jamessan: thanks – does it have to be setlocal?
<jamessan>Â Â Â always recommended to use setlocal for buffer-local settings ![]()
<jamessan>Â Â Â s/buffer-local/non-global/
<jbrokc>Â Â Â jamessan: thanks. hey i learned about the :s modifier this weekend. that’s some crazy shit
<bigfeng12>Â Â Â test
<f3xius>Â Â Â is there something similar to csupport in vim for assembly?
<f3xius>Â Â Â specifically x86
*Â Â Â okay is now known as okayzed
<sig->Â Â Â is it a vim feature that I’m left with bunch of files~ after closing vim
<sig->Â Â Â or is it a MacVim feature?
<sig->Â Â Â I’d like to get the ~ files deleted after clean exit
<bairui>Â Â Â sig-: :help ‘backup
<sig->   thanks! That’s what you get for copying other peoples’ vimrc (:
<bairui>Â Â Â heh… copying other people’s vimrc files is an abomination unto the vimiverse – almost as unholy as navigating in insert mode:
<bairui>Â Â Â vimgor kittens
<vimgor>Â Â Â It has been said that kittens is http://bairuidahu.deviantart.com/art/Vim-and-Vigor-2-Insert-Nav-260446820, bairui
<gkatsev>Â Â Â lol, haven’t seen that one before.
<tos9>Â Â Â argh I am getting tired of iTerm2′s poor URL support
<f3xius>Â Â Â how could I use a use a syntax file from my home directory?
<f3xius>Â Â Â ie I don’t have root
<gkatsev>Â Â Â something like ~/.vim/ftplugin/python.vim
<gkatsev>Â Â Â check the help
<f3xius>Â Â Â hmm actually I guess I should have just tried it I created a ./vim/syntax put the syntax file in there and did a set syntax=
<f3xius>Â Â Â and that appeared to work
<Raimondi>Â Â Â f3xius: Do you have a ~/.vim folder and a ~/.vimrc file?
<f3xius>Â Â Â err I meant .vim/syntax
<f3xius>Â Â Â no I do
<f3xius>Â Â Â I just thought that load wouldn’t see my local syntax files
<Raimondi>Â Â Â ok
<f3xius>Â Â Â since I thought it only looked in the installation directory
<gkatsev>Â Â Â nope, it looks in your home folder
<gkatsev>Â Â Â also, if your syntax file isn’t working, put it in ~/.vim/after
*Â Â Â okayzed is now known as okay
*Â Â Â okay is now known as okayzed
<jagguli>Â Â Â hi whats the best way to search in multiple buffers, :bufdo /term/ dont seem to be workin
<Raimondi>Â Â Â jagguli: What are you trying to do?
*Â Â Â miguet is now known as robotek`
*Â Â Â robotek` is now known as group
*Â Â Â group is now known as miguet
<woldrich>Â Â Â search in multiple buffers!
<patcito>Â Â Â hi
<patcito>Â Â Â is there a way to save a file in a directory that doesn’t exist and have vim create the directory automatically?
<bairui>Â Â Â there are solutions to this on the wiki page – wikia.vim
<woldrich>Â Â Â speaking of which. wikia is horrible. what’s the reasoning of using it instead of… something friendlier like ikiwiki?
<jorrit>Â Â Â Hi
<bairui>Â Â Â wolly: no idea… I almost never use the wikia site – I merely redirect people there. Think of me as the Friendly Hairy Vim Fairy: http://bairuidahu.deviantart.com/art/The-Hairy-Vim-Fairy-262662025
<Raimondi>Â Â Â hahahahaha
<Raimondi>Â Â Â I’m still laughing, you’re going to kill me one of these days, bairui ![]()
<bairui>Â Â Â ![]()
*Â Â Â Axioplase is now known as Axioplase_
<coot>Â Â Â Helo, how to make a map which uses a register, like y, where you first specify the register or not (I want to have my y command in some cases)
<Raimondi>Â Â Â coot: :h v:register
<coot>Â Â Â Raimondi: that’s what I forgot about
Thanks!
<Raimondi>Â Â Â np
<dorkmafia>   I know i asked this recently but I totally forgot again… how do you go back to the position you started searching
*Â Â Â bairui_ is now known as bairui
<bairui>Â Â Â “
<dorkmafia>Â Â Â what’s ` do exactly? there was another one someone told me
<bairui>Â Â Â :help `
<bairui>   and then  :help “
<dorkmafia>Â Â Â that seems to cycle through my searches
<dorkmafia>Â Â Â i want to go back to where my cursor was b4 i excecuted /foo
<bairui>Â Â Â “ will jump back and forth between your two last jumps
<bairui>Â Â Â well, if you have inc-search enabled and you’re still in the search, just press <esc>
<bairui>Â Â Â if you have executed the search, press “
<dorkmafia>Â Â Â hmm
<dorkmafia>Â Â Â it was something else
<dorkmafia>Â Â Â ^o
<dorkmafia>Â Â Â that’s what it was!
<dorkmafia>Â Â Â ![]()
<dorkmafia>   thanks though being able to cycle is important too
<bairui>Â Â Â there you go – you *could* remember after all ![]()
<dorkmafia>Â Â Â heh
<bairui>Â Â Â well, ^o/^i are much more about cycling than “
<dorkmafia>Â Â Â one of the brain cells came back from the dead
<Raimondi>Â Â Â zombie neurons?
*Â Â Â avsej_ is now known as avsej
<bairui>Â Â Â you must be reaching zombie mass by now, Raimondi
Late there now, boyo.
<Raimondi>Â Â Â Yep, I was just typing my good night ![]()
<bairui>Â Â Â glad you got to see the Hairy Vim Fairy before you slept – wonder what dreams (nightmares?!) that’ll bring? ![]()
<Raimondi>Â Â Â lol I hope it doesn’t visit me yet :p
<bairui>Â Â Â I created him ‘cos I was thinking of changing my Hikaru No Vim idea into more of a dream-state visit from the Vim Fairy – a la the Number Devil
<dorkmafia>Â Â Â haha
<Raimondi>Â Â Â Got to be carefull about wishing now
<bairui>Â Â Â haha
<bairui>Â Â Â all sorts of wrong might happen at the end of *that* wand… oO
<Raimondi>Â Â Â hahhahaha
<dorkmafia>Â Â Â brrrrrrrrrrrrrrrrrrraaaaaaaaaaains
<Raimondi>Â Â Â Good night!
<bairui>Â Â Â g’night, mate!
<dorkmafia>Â Â Â ![]()
<dorkmafia>Â Â Â bairui what cpu lang do you mostly use?
<bairui>Â Â Â what is a cpu lang?
<dorkmafia>Â Â Â computer language
<woldrich>Â Â Â bairui, yeah, try editing something in the wiki. furthermore, wikia is proprietary stuff
<dorkmafia>Â Â Â do you mostly write in c?
<bairui>Â Â Â oh, dorkmafia. master of none; dabbler of many.
<bairui>Â Â Â I gave up C about 10 years ago (thankfully)
<bairui>Â Â Â I mostly play with VimL, Ruby and newLisp these days
<bairui>Â Â Â but I’ll give anything a bit of a tickle – I’m a total whore that way
<dorkmafia>Â Â Â haha
<bairui>Â Â Â wolly: i don’t think I’ve ever edited the wikia
<dorkmafia>Â Â Â tickle the pickle
<Raimondi>Â Â Â before I forget, asciidoc plugins I should know about?
<woldrich>Â Â Â bairui, I have, mpd.wikia.com
<woldrich>Â Â Â it still gives me nightmares
<bairui>Â Â Â asciidoc is pretty sturdy as she is… Have a look at some of the available themes, though. I like the Flask theme…
<Raimondi>Â Â Â k
<bairui>Â Â Â np
<Raimondi>Â Â Â night!
<bairui>Â Â Â oh – and we’re using pygments
<dorkmafia>Â Â Â are there macros in vim?
<bairui>Â Â Â g’night
<bairui>Â Â Â yes
<dorkmafia>Â Â Â k lemme see the help
<bairui>Â Â Â dorkmafia: :help q
<woldrich>Â Â Â I’m afraid I can’t let you do that
<bairui>Â Â Â having a 2001 episode, wolly?
<woldrich>Â Â Â ![]()
<bairui>Â Â Â walkies time!
<bairui>Â Â Â and you thought I was gonna talk about food again, didn’t ya, wolly! :p
<woldrich>Â Â Â hmm… I think *I* need some food for a change
<Crusnik01>Â Â Â Hi! I have a number of lines that I want to delete in a file. I can easily find them using :%s, but I can’t seem to find a way to delete an entire line. Any tips?
<woldrich>Â Â Â Crusnik01, % is the whole buffer
<Crusnik01>Â Â Â woldrich: Yes; I know. I want to search the entire file for the lines I want to delete.
<woldrich>Â Â Â are you missing the /g flag?
<Crusnik01>Â Â Â woldrich: Let me correct that: The lines contain certain words, but the rest is different. “Subnet Mask . . <then some number>”
<Crusnik01>Â Â Â I want to delete all lines that contain “Subnet Mask”
<woldrich>Â Â Â ah
<woldrich>Â Â Â :g/Subnet Mask/d
<Crusnik01>Â Â Â woldrich: Sweeeet, thanks! ![]()
<woldrich>Â Â Â :g is a bit scary at first, but she’ll grow on you and you’ll eventually learn to love her
<ouah>Â Â Â hi
<ouah>Â Â Â in vimdiff what is the opposite command of zR (zc only close fold under the cursos, not all) ?
<ouah>Â Â Â cursor
<ouah>Â Â Â it is zM, I might have searched a little bit more…
<platzhirsch>Â Â Â How can I turn on, that the buffered files are deleted after closing vim?
<platzhirsch>Â Â Â found it, nevermind
<depaulis>Â Â Â Hi, I am wondering if vimdiff can be used as merge tool in ClearCase. 4 windows (foundation version, rebase version, my version, and the final version)?
<spiiph>Â Â Â depaulis, Vim does three way diff at most, iirc.
<stianhj>Â Â Â you can do vimdiff file1 file2 file3 file4
<dhruvasagar>Â Â Â Hi, can someone explain about ‘switchbuf’ ?
<dhruvasagar>Â Â Â stianhj: you can!?
<depaulis>Â Â Â spiiph: the final version shall not actually be included in the diff itself, that one is the final result window. But I guess it is more than just diff the files, the need for automerge all non-conflicts needs to be done.
<stianhj>Â Â Â don’t know how it works though.. but :he vimdiff
<depaulis>Â Â Â stianhj: Mmm.. I will take a look if the ccase plugin have any support for this. Thanks
<spiiph>Â Â Â depaulis, most VCS tools have a setting to use an external diff tool. If ClearCase has such a setting, it should be possible
<spiiph>Â Â Â depaulis, http://stackoverflow.com/questions/375398/any-way-to-use-a-custom-diff-tool-with-cleartool-clearcase
<depaulis>Â Â Â spiiph: thanks I take a look
*Â Â Â nowox_ is now known as nowox
<depaulis>   I did not find anything that I wanted just another post in a forum that wanted the same feature “Show 3 files at the top, and show the result at the bottom – and some quick way to choose (in the result) which version should be inserted (yours,base,theirs).” the ccase plugin does not seem to support this.
<Number5>Â Â Â Hello guys, I started to use SnipMate for my C codings. It looks great, except that it goes wrong when an item is selected (after typing ‘for’) and I press ‘p’ to write printf for example. It seems ‘p’ is used as paste I assume. Anyone recognize the problem?
<spiiph>Â Â Â Sounds like you’re still in Normal mode when starting to type text?
<Number5>Â Â Â So to work around this issue, I type ‘i’ to switch to insert mode
<Number5>Â Â Â Well, that’s what SnipMate is doing, cause when typing ‘for’ I do that in insert mode. After hitting tab, SnipMate comes into action.
<spiiph>Â Â Â Yes
<spiiph>Â Â Â It sounds odd thCreate an SVN tagat SnipMate should cause you to escape insert mode
<Number5>Â Â Â spiiph, do you use SnipMate too and do you recognise this issue?
<spiiph>Â Â Â I use SnipMate occasionally, and no.
<Number5>Â Â Â ooh ok
<spiiph>Â Â Â Sorry about the odd paste in the previous statement, btw.
<Number5>Â Â Â spiiph, np at all ![]()
<jamessan>Â Â Â a little subliminal messaging never hurt anyone ![]()
<spiiph>Â Â Â haha
<spiiph>Â Â Â Very true
*Â Â Â bairui_ is now known as bairui
<xvilka>Â Â Â hi! i’m working on vim-like console hex-editor. Can you help me with designing some commands syntax?
<xvilka>Â Â Â like :block selection, :and,
or etc
<xvilka>Â Â Â e.g. right now i’m using :block <num> <start> <end> or :block <num> <start> +<size>
<xvilka>Â Â Â and for :and <num> <mask>
<xvilka>Â Â Â where <num> block number – <mask> – just byte, it AND-ing each byte from block with <mask>
<xvilka>Â Â Â how-to design syntax for blocks logic operations?
<og01>Â Â Â hey there, I get a message from one of my plugins saying, “Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded.” can i supress this warning?
<og01>Â Â Â my .vim* is copied between hosts, some might have ctags some wont, I dont want the warning on the machines that dont
<og01>Â Â Â nm i edited the plugin
<spiiph>Â Â Â og01, surely the plugin has a setting g:taglist_loaded or some such, to prevent it from loading at all
*Â Â Â X-Scale is now known as Guest42831
<og01>Â Â Â there is a loaded_taglist variable, doesnt look like it actually supresse the loading of the plugin
<MarcWeber>Â Â Â og01: Ask the author to use autoload – then loading will be faster.
<MarcWeber>Â Â Â og01: Or use vim-addon-manager and activete it “as-needed” using :ActivateAddon taglist
<og01>Â Â Â the source does mention autoload
<MarcWeber>Â Â Â og01: How many lines do the plugin/*.vim files have?
<og01>Â Â Â this plugin has 4546
<MarcWeber>Â Â Â og01: THat’s why its slowe on each start.
<og01>Â Â Â didnt say anything about it being slow…
<og01>Â Â Â just wanted to supress a warning
*Â Â Â bairui_ is now known as bairui
<MarcWeber>Â Â Â og01: Which one?
<MarcWeber>Â Â Â Loading 4000 lines usually is slow on startup.
<og01>Â Â Â waring is for taglist plugin when ctags isnt present
<MarcWeber>Â Â Â og01: which operating system are you using?
<MarcWeber>Â Â Â Without ctags you can’t use the plugin anyway, can you?
<og01>Â Â Â linux based distros varying
<og01>Â Â Â MarcWeber: this is correct
<og01>Â Â Â MarcWeber: I use source control on my home config files so they get maintained across boxes
<MarcWeber>Â Â Â So do you agree that the fix is either uninstalling the plugin, fixing the warning (eg by introducing a “don’t tell me again” glbal var) or by installing ctags?
<MarcWeber>Â Â Â Or put the plugin/*.vim file somewhere else and source it in your .vimrc manually if ctags can be found in PATH only
<MarcWeber>Â Â Â And exactly that last thing is easiest using VAM.
<og01>Â Â Â pretty much, i dont know much about vim plugin design, my current solution is i edited the plugin and removed the warning
<og01>Â Â Â what is VAM?
<xlinkz0>Â Â Â vim comes with python omni completion by default , right?
<spiiph>Â Â Â xlinkz0, yes
<xlinkz0>Â Â Â do i have to enable it or smth?
<xlinkz0>Â Â Â how exactly do i make it pop-up?
<og01>Â Â Â MarcWeber: I was either looking for a method of conditionally loading a plugin, or otherwise some other sort of warning supression
<spiiph>Â Â Â xlinkz0, :filetype plugin indent on
<spiiph>Â Â Â <C-x><C-o>
<MarcWeber>Â Â Â og01: I’m going to show you both if you want.
<og01>Â Â Â MarcWeber: the Conditional loading of plugins seems like the most likely best solution
<spiiph>Â Â Â og01, I don’t have the tag list source here, but if it has a loaded-variable, setting that in your .vimrc should prevent the plugin from loading.
<MarcWeber>Â Â Â spiiph, og01 loaded_taglist
<MarcWeber>Â Â Â if !executable(‘ctags’) | let g:loaded_taglist=1 | endif
<spiiph>Â Â Â like that
<xlinkz0>Â Â Â spiiph, thank you
*Â Â Â X-Scale` is now known as X-Scale
<xvilka>Â Â Â so, any ideas on my question?
<spiiph>Â Â Â xvilka, not off the top of my head
<gurifisu>Â Â Â how do you do page down page up without leaving the homerow?
<gurifisu>Â Â Â just pressing down j takes too long
<bairui>Â Â Â ctrl-f / ctrl-b
<Phillemann>Â Â Â I’ve apparently got an error in my vim configuration. When I open a buffer, a message pops up for, say, 2 seconds, then disappears. I can’t read it that fast. Is there any buffer/file this output is saved to?
<og01>Â Â Â Phillemann: try hitting C-q when the message pops up
<sqz>Â Â Â Everybody! We just released our first beta vimplugin: mappingmanager.vim !
<sqz>Â Â Â demo:Â http://playterm.org/r/vim-mappingmanager-plugin-1318246417
<sqz>Â Â Â tryit: http://www.vim.org/scripts/script.php?script_id=3768
<Phillemann>Â Â Â Ah, good idea…
<og01>Â Â Â Phillemann: bah thats C-s, C-q to resume
*Â Â Â sqz and gloomy made mappingmanager.vim to turn our vim into a console cruiseship ![]()
<Phillemann>Â Â Â og01: Hehe, I got it nevertheless ![]()
<gloomy_>Â Â Â sqz: ![]()
<dc5ala>Â Â Â I’m following a vim latex tutorial and at one point it says: “In normal mode, press \rf. This will fold up the entire file” Any idea what that \r means?
<sqz>Â Â Â I wonder if there are other places where we can promote our plugin
<sqz>Â Â Â dc5ala: try :map
<Phillemann>Â Â Â Crap: “Error detected while processing BufLeave Auto commands for “<buffer=2>”:” – that’s not very helpful.
<og01>Â Â Â sqz: it controls only F keys?
<dc5ala>Â Â Â sqz, thanks, i found a ,rf there and no \rf ![]()
<sqz>Â Â Â og01: well thats the default behaviour yes..but in every preset you can basically define anything you want
<sqz>Â Â Â dc5ala: no probs..glad I could help
<og01>Â Â Â sqz: maybe it could help me get over my aversion to using the F keys
<sqz>Â Â Â og01: the idea is that you can switch between mapping presets easily
<sqz>Â Â Â og01: haha lol
<og01>Â Â Â sqz: The F keys just seem so far away I generally speaking i hav no idea what they do
<og01>Â Â Â I’ll give it a try
<og01>Â Â Â today seems like a day of new plugins for me
<ccxCZ>Â Â Â I have F5 for ipython and F[678] for pylint. I have others bound, but can’t remember them :]
<gloomy_>Â Â Â ccxCZ: if you ever have too less F keys, use mappingmanager ![]()
<spiiph>Â Â Â Phillemann, instead of relying on your ability to stop terminal flow at the right moment, you could try :messages
<alansaul>Â Â Â hey vimmers
<Rockdtben>Â Â Â hi
<swimmer>Â Â Â sqz: any chance to see your .vimrc? ![]()
<swimmer>Â Â Â sqz: and of course nice plugin! ![]()
<xlinkz0>Â Â Â is it possible to go to the X char in the document? like xgg goes to line x
<xlinkz0>Â Â Â i’d like to go to char x
<ccxCZ>Â Â Â x|
<ccxCZ>Â Â Â oh, that’s column, dunno about char
<xlinkz0>Â Â Â ![]()
<shirt>Â Â Â after i yank a block, how can i paste it so it inserts lines?
<dindinx>Â Â Â xlinkz0: go
<xlinkz0>Â Â Â dindinx, life saver :p
<ashleyw>Â Â Â Hey, if I was wanting to do CTRL-W =, would that be CTRL+W+=, or CTRL+W, lift, then press =?
<Zathrus>Â Â Â yes
*Â Â Â Zathrus wonders why simple experimentation didn’t show this
<ashleyw>Â Â Â And is CTRL+W the same as CTRL+w?
<Zathrus>Â Â Â yes, and again — please try.
<ashleyw>Â Â Â Awesome, no idea what I was doing before, it seemed to work randomly
<Number5>Â Â Â sqz, that’s really cool ![]()
<sqz>Â Â Â Number5: thnx ![]()
<sqz>Â Â Â swimmer: well my vimrc has nothing to with the plugin, but the mapping-file from the video is included in the tarball as an example
<sqz>Â Â Â so basically you put mappingmanager.vim in /plugins, and then you can place mappings.vim in /etc/vim/. or ~/.vim/. or some/dir/. (you can use multiple)
<sqz>Â Â Â the only ‘other’ plugin you in the vid is NERDTree (its a file-explorer like you also see in eclipse and such)
<swimmer>Â Â Â sqz: I was more interested in your popup- and completion-config tbh ![]()
<sqz>Â Â Â swimmer: ah! what you want is..
<sqz>Â Â Â acp.vim
<sqz>Â Â Â it is..in my experience..the (fastest) autocompletion tool which fits my needs
<swimmer>Â Â Â I see – I’ll look it up … thanks!
<sqz>Â Â Â but you’ll need vim7.2 or greater
<sqz>Â Â Â at your service
<swimmer>Â Â Â jejeje – dank je wel ![]()
<gloomy_>Â Â Â swimmer: the popup thing is nerdtree
<sqz>Â Â Â swimmer: wtf! you speak dutch?
<swimmer>Â Â Â sqz: yep ![]()
<ksk>Â Â Â hello vimppl ![]()
<sqz>Â Â Â hi ksk
<ksk>Â Â Â im using vimdiff, got the problem it does not display the whole documents. just some “+– 92 lines:” information – how to expand it? first time I get into this…
<sqz>Â Â Â swimmer: geen dank, graag gedaan! (btw. when were you in holland?)
<sqz>Â Â Â ksk: it means there are not changes if you see +—–
<ksk>Â Â Â ah okay
fine then
<swimmer>Â Â Â sqz: I’m living there! ![]()
<ksk>Â Â Â thanks sqz
<sqz>Â Â Â ksk: vimdiff highlights ‘differences’ as a pink selection of text..the other surrounding parts are usually folded (because they are not important)..HOWEVER..
<pickels>Â Â Â I have the following: map <leader>c :!coffee -p %<cr> coffee -p will compile coffeescript to javascript and print it to stout. I was wondering if I could open that output in vim again?
<sqz>Â Â Â you can expand them by using the arrow (left or right) keys
<sqz>Â Â Â pickels: yes
<sqz>Â Â Â pickels: use .!coffee -p etc..
<sqz>Â Â Â pickels: or type :h .! for help
<pickels>Â Â Â sqz, thanks going to read up on that
<pickels>Â Â Â is . the name of the command? Says it cant find help for .!
<sqz>Â Â Â swimmer: nice, normally I live in Utrecht (originally in the North near Groningen), but nowadays I live in Budapest/Hungary
<sqz>Â Â Â pickels: oh..then maybe try :h !
<pickels>Â Â Â ah okay I’ll check that
<sqz>Â Â Â in any case.. adding a ‘.’ before the ! will make vim put the output into the current buffer
<pickels>Â Â Â ah
<sqz>Â Â Â so you could try something like :sp output | .!coffeescript (..etc..)
<sqz>Â Â Â it will open a new window and after that (|) it will do the trick you want
<sqz>Â Â Â pickels: these last 3 sentences were for you btw
<pickels>Â Â Â ah that’s excellent, dank u wel!
<cafaro>Â Â Â Is is possible to let surround omit spaces when adding a surround delimiter? In: <foo>b^ar</foo> (^ denotes caret position), I do ysit(, and it becomes: <foo>( bar )</foo>, but I’d like <foo>(bar)</foo>
*Â Â Â helly1 is now known as helly
*Â Â Â satyavvd_ is now known as satyavvd
<fgro>Â Â Â hi. trying to read an RTF document, however I see a lot of “formatting” instructions like “{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540…” I read RTF was supported by “standard” vim. Maybe I missed a special flag while compiling on gentoo?
<fgro>Â Â Â and yes set filtype=rft …
<fgro>Â Â Â *filetype
*Â Â Â X-Scale is now known as Guest76393
<rudi_s>Â Â Â fgro: Vim is a text editor, RTF is not plain text but contains formatting instructions which is exactly what you see.
<fgro>Â Â Â rudi_s: ok. well how can i transform this to a more “human” friendly output?
<ccxCZ>Â Â Â you can convert it to plain text using some word processor, eg. abiword or libreoffice
<ccxCZ>Â Â Â abiword -t txt -o output.txt input.rtf migth do what you want
<fgro>Â Â Â ccxCZ: cheers
<Number5>Â Â Â I have a question related to NERD_commenter. Is it possible to add a comment as a document way, like documenting a function or adding info about author/license of the source?
<rudi_s>Â Â Â fgro: But you’ll lose some information in the process.
<Number5>Â Â Â This documentation should be generated from a template if possible.
<rudi_s>Â Â Â If you want to retain most formats you might want to convert it to latex for example.
<rudi_s>Â Â Â (Open/LibreOffice can do that.)
*Â Â Â Guest76393 is now known as X-Scale
<fgro>Â Â Â rudi_s: i will try with abiword for now
<fgro>Â Â Â rudi_s: don’t want to install libreoffice-bin right now. too large. slow i-net connection.
<rudi_s>Â Â Â Sure. If you want to try it some time, you also need the writer2latex plugin.
<fgro>Â Â Â ccxCZ: abiword solution was sufficient. cheers
<iamjarvo>Â Â Â hi guys. so if you take a look at this screenshot http://cl.ly/0C2T3Y3z1q3e0v3y1L2F . I have my cursor at the beginning of line 4. i was wondering whats the easiest way of making a new line and going to it
<paradigm>Â Â Â iamjarvo: o
<paradigm>Â Â Â or maybe O
<paradigm>Â Â Â I’m not completely sure what you want
<iamjarvo>Â Â Â o workd
<paradigm>Â Â Â excellent
<iamjarvo>Â Â Â thanks alot
<paradigm>Â Â Â happy to help
*Â Â Â X-Scale is now known as Guest55289
*Â Â Â Guest55289 is now known as X-Scale
*Â Â Â davve is now known as davv3
<og01>Â Â Â which :he do i want to look at for a description of the difference between let g:something, let a:something let s:something etc.
<strull>Â Â Â og01: :he internal-variables
<og01>Â Â Â strull: thanks perfect
*Â Â Â pumaman is now known as hashbaz
<jaggz1>   how do you do a :s/// with a multiline pattern? (e.g: to delete “foo\n bar” with: s/^foo\_s*bar$//)
<jaggz1>   nevermind, it works. I just had a bad character in mine.
<kai>Â Â Â hi folks
<paradigm>Â Â Â howdy kai
<kai>Â Â Â I’m looking for a search/replace regex that’ll add a space after all commas between two non-space characters.. but only if they’re not inside a string
<kai>Â Â Â I’ve got the first part worked out (
<kai>Â Â Â s/\(\S\),\(\S\)/\1, \2/
<kai>Â Â Â no idea how to do the second part
<kai>Â Â Â any hints?
<paradigm>Â Â Â kai: I’m not so hot with regex, but if no one else can help in here you can always ask in #regex
<sqz>Â Â Â kai: best place is join #regex OR follow the rules of #regex
<sqz>Â Â Â 1) post your input string
<sqz>Â Â Â 2) post desired output
<sqz>Â Â Â 3) post your attempt
<kai>Â Â Â ok, hang on ![]()
<sqz>Â Â Â sorry if it sounds rude, but these rules make sense if you’re dealing with regexes
<kai>Â Â Â nah, that’s fine
<abstrakt>Â Â Â kai, regex isn’t always good for everything
<sqz>Â Â Â wil je het horen?…
<sqz>Â Â Â oops wrong window ![]()
<abstrakt>Â Â Â kai, IMO you’d probably be better off doing it with a procedural language
<kai>Â Â Â abstrakt: I’m trying to edit a python file that is a horrid mess
<abstrakt>Â Â Â kai, either that or, you probably need to learn some of the more advanced regex features like lookarounds
<abstrakt>Â Â Â kai, ahh, why not just use polystyle
<abstrakt>Â Â Â or something similar, gnu indent maybe
<kai>Â Â Â unfortunately it’s a parser, so I can’t just run my regex, that breaks the parser part
<abstrakt>Â Â Â ?
<abstrakt>Â Â Â kai, wait, um… what is a parser?
<abstrakt>Â Â Â if your regex(es) are proper they should not break anything
<abstrakt>Â Â Â well i know what a “parser is”
<abstrakt>Â Â Â kai, i mean, how does your parser break, i don’t get it
<kai>Â Â Â http://paste.pocoo.org/show/490505/
<kai>Â Â Â so that’s my example
<kai>Â Â Â the regex I’ve got changes the “,” string to “, ” as well, which I don’t want to happen
<abstrakt>Â Â Â yes i see
<abstrakt>Â Â Â kai, I would suggest some kind of macro/regex combination
<abstrakt>Â Â Â kai, I’m sure you can probably get it figured out with macros+g///+s/// respectively
<abstrakt>Â Â Â kai, i’m 90% sure that you either can’t do what you want with regex, or it will be rediculously long and complex to do what you want with regex
<abstrakt>Â Â Â s/with regex/with regex only/g
<abstrakt>Â Â Â kai, how long is your parser? how many lines do you have?
<abstrakt>Â Â Â kai, you’d probably be better off just doing it by hand, or partially by hand – might get it done faster
<abstrakt>Â Â Â just find a good regex for each single line only and then just :<C-p> on each line till you select the regex you need, run it, go to the next line
<abstrakt>Â Â Â kai, and you can probably use / to get to the proper next line, and for that matter, you can probably automate the entire process of “next line, run regex, next line, run regex” with a macro
<abstrakt>Â Â Â kai, or maybe you could select lines with g/ instead of /
<kai>Â Â Â abstrakt: it’s about 8k lines of code total
<abstrakt>Â Â Â kai, or maybe you could write a macro instead of a regex, and use g/ or / to find next line and then run the macro
<abstrakt>Â Â Â and then write a macro to “find next, run macro, find next, run macro”
<kai>Â Â Â so far I’ve just run with s/…/…/gc and manually made sure the correct replacements happen
<tshauck>Â Â Â hey guys, is there a way to insert a blank line between each line?
<kai>Â Â Â but I’m through 452 substitutions on 189 lines and around line 1400
<kai>Â Â Â which is why I wonder if there’s a better way to do this ![]()
<abstrakt>Â Â Â kai, um… there is
<abstrakt>Â Â Â kai, i’ve just given you like 3 different combinations of options that you should go try
<abstrakt>Â Â Â kai, did you not hear me? are you ignoring me? do you just not believe me?
<consumerism>Â Â Â say i have function(one, ‘two’) – what’s the quickest way to switch the two parameters so i end up with function(‘two’, one) ?
<abstrakt>Â Â Â consumerism, backreferences
<consumerism>Â Â Â abstrakt: can you be a little more verbose? i’m only familiar with backreferences in a search and replace context
<Raimondi>Â Â Â consumerism: :h \1
<abstrakt>Â Â Â consumerism, not really, that’s the context that i mean
<abstrakt>Â Â Â consumerism, that’s the only context i know of where the word “backreference” has meaning
<consumerism>Â Â Â how would i apply search/replace to this context?
<consumerism>Â Â Â i was thinking of some yank/put sequence
<consumerism>Â Â Â just couldn’t nail down the most efficient way
<abstrakt>Â Â Â consumerism, how familiar are you with regex?
<abstrakt>Â Â Â s/function(one, ‘two’)/function(‘two’, one)/
<consumerism>Â Â Â like if my cursor is on the first (… dt,lplyt)F,P
<abstrakt>Â Â Â would actually be the “simplest” way
<bencahill>Â Â Â hey guys, I want to indent html in php files with the banner style (i.e. closing tag is indented), is there a way to do this?
<dindinx>Â Â Â consumerism: :s!(\(.*\), \(.*\))/(\2, \1)
<abstrakt>Â Â Â consumerism, nah, that’s way rediculous, just use regex
<abstrakt>Â Â Â bencahill, you’ll need to either “do it yourself” aka, just hit the tab key or whatever… or you will need to modify the PHP syntax/indent file(s)
<abstrakt>Â Â Â bencahill, though I wouldn’t doubt that if you are savvy enough with vimscript that you could accomplish this tweak via an “after” or “ftplugin” script
<bencahill>Â Â Â abstrakt: I really don’t know the first thing about vimscript ![]()
<abstrakt>Â Â Â bencahill, then for your practical purposes the answer is “no”
<bencahill>Â Â Â abstrakt: this script (http://vim.wikia.com/wiki/Better_indent_support_for_php_with_html) does exactly what I want, except it doesn’t indent the closing tag…I was wondering if there was a way to modify it so it does
<abstrakt>Â Â Â bencahill, though obviously you’re still allowed to manually add as much whitespace as you wish, it just won’t be automatic
<abstrakt>Â Â Â bencahill, it’s open source isn’t it?
<bencahill>Â Â Â abstrakt: true, and that is an option, because I don’t do very much html
<bencahill>Â Â Â abstrakt: the script?
<abstrakt>Â Â Â my point is, vimscripts are open source… so now it’s either “deal with it” or “learn vimscript” or “beg for someone in here to do it for you”
<abstrakt>Â Â Â the latter being not so likely to get positive responses
<abstrakt>Â Â Â the secondary probably being your best bet
<abstrakt>Â Â Â given that you are already dealing with the former
<bencahill>Â Â Â abstrakt: you’re right, just thought I’d ask to see if someone had an off-hand solution with the particular problem ![]()
*Â Â Â bencahill learns vimscript
<abstrakt>Â Â Â ![]()
<abstrakt>Â Â Â bencahill, if you can program PHP you can program vimscript, it’s not hard, just Yet Another Syntax to learn
<bencahill>Â Â Â abstrakt: cool, PHP has always been easy to me
<abstrakt>Â Â Â bencahill, this channel is usually pretty good for vimscript related questions too
<kai>Â Â Â abstrakt: I’m trying, thanks
<abstrakt>Â Â Â kai, I would write a macro like this qa2f”f,a q
<abstrakt>Â Â Â kai, then something like 3@a or 4@a should knock off a full line where you want to add spaces
<abstrakt>Â Â Â kai, then all you need to do is navigate from line to line that requires re spacing by using /
<bencahill>Â Â Â abstrakt: do you have any tips as to where to start? there doesn’t seem to be much online… :-/
<abstrakt>Â Â Â kai, and given the nature of vim, what with vimscript and all, i’m sure you can probably automate that process as well
<abstrakt>Â Â Â bencahill, yeh one sec
<kai>Â Â Â abstrakt: right, I’ll try that. I just need to fix some other thing I broke to get a clean “just add space to commas” patch later
<abstrakt>Â Â Â bencahill, help 41.txt
<abstrakt>Â Â Â bencahill, chapter 41 of the built in vim manual is the vimscript guide
<bencahill>Â Â Â abstrakt: awesome, thks
<abstrakt>Â Â Â bencahill, some of the vim docs leave a bit to be desired, but they’re pretty good, and this channel serves as a decent supplement when the manual/guide is unclear
<tshauck>   hi, is there a way to only delete duplicate blank lines? Like if I have 2 lines, I only want to delete line, but if I have 1 blank I’d like to leave it there
<strull>Â Â Â tshauck: try :%!cat -s
<tshauck>Â Â Â strull: worked great, thanks
<dindinx>Â Â Â tshauck: :%s/\n\n\n/\r\r
<strull>Â Â Â dindinx: aren’t you missing a \+ there?
<dindinx>Â Â Â why? I just replaced 3 consecutive newlines by 2.
<paradigm>Â Â Â dindinx: but what if there are four consecutive newlines?
<paradigm>Â Â Â You would have to run your ex command a number of times in a row
<paradigm>Â Â Â a \+ would fix that
<graywh>Â Â Â :%s/\n\{3,}/\r\r/
<paradigm>Â Â Â Could someone explain why a \n is used when searching and a \r is used when replacing?
<dindinx>Â Â Â he only told about two consecutive blank lines.
<strull>Â Â Â he said “like if I have 2…”
<strull>Â Â Â paradigm: historical reasons
<paradigm>Â Â Â What’s the difference?
<paradigm>Â Â Â I thought vim treats them both as newline, no?
<paradigm>Â Â Â I realize there’s a difference between carrage return and newline, but I though vim abstracts that away
<graywh>Â Â Â it does
<graywh>Â Â Â but it uses \n internally to represent NUL
<paradigm>Â Â Â hmm
*Â Â Â okayzed is now known as okay
<breadtk>Â Â Â What is the shortcut for autocompleting a python function?
<breadtk>Â Â Â I thought it was like ^N or something.. but that doesn’t seem to be working
<breadtk>   Or I guess I should say that it is working but nto as good as I hope…
<paradigm>Â Â Â breadtk: there’s a lot to vim completion, trying skimming :help ins-completion
<breadtk>Â Â Â paradigm: Thank you. I’ll take a look at that.
<paradigm>Â Â Â yep
<Adren>Â Â Â Does any one have neverland-ansi.vim? I would like to try it out.
<cek>Â Â Â how do I replace a block in visual mode?
<cek>Â Â Â that is, i want to replace the selection on each line with new text
<abstrakt>Â Â Â cek, c
<cek>Â Â Â crap
<cek>Â Â Â taht did it. i knew about d and I
<abstrakt>Â Â Â cek, c is the same as d basically
<abstrakt>Â Â Â cek, only difference is that c leaves you in — INSERT — mode when it’s done, d does not
<cek>Â Â Â d doesnt allow to change the content, it just deletes it
<cek>Â Â Â thanks!
<daniel___>Â Â Â can anyone hazard a guess as to why i cant copy to clipboard anymore
<daniel___>Â Â Â i reinstalled my OS (my .vimrc is at https://github.com/danielstockton/dotfiles) and now the only way i can copy outside of vim is select all > copy which takes with it all the line numbers
<daniel___>Â Â Â “+y is what im doing
<Raimondi>Â Â Â daniel___: PRobably you need to install gvim
<daniel___>Â Â Â in fact this is the same in both my systems (dual boot ubuntu/arch), perhaps its the keyboard layout?
<daniel___>Â Â Â any other bindings i can try?
<daniel___>Â Â Â aaaah Raimondi, that could well be it
<daniel___>Â Â Â thanks!
<Raimondi>Â Â Â np
<daniel___>Â Â Â Raimondi: it was indeed ![]()
<Raimondi>Â Â Â Good ![]()
<Azrathud>Â Â Â Has anyone else had problems with vim not redrawing when resizing vim the terminal its currently in?
<Azrathud>Â Â Â At least, does anyone know any fixes to the redrawing problems?
<strull>Â Â Â Azrathud: ctrl-l
<Azrathud>Â Â Â strull, I know of that command, but I’d like it to auto redraw like it did about a month ago.
<cafaro>Â Â Â What’s the best/easiest way to share .vimrc/.vim etc. between users? I’d like to have vim behave identically when either using my own account, or when using root.
<nag>Â Â Â cafaro: I use a symlink.
<cafaro>Â Â Â Azrathud: yes I think I have to same “problem”, using urxvt with arch
<Azrathud>Â Â Â cafaro, I’m using Arch and urxvt too O.o, but I the problem persists on xterm.
<cafaro>Â Â Â nag: yeah that’s a good, idea, do you symlink just your .vimrc or all the files under ~/.vim as well?
<Azrathud>Â Â Â It could’ve been due to some updates.
<cafaro>Â Â Â Most likely yes
<paradigm>Â Â Â cafaro: you can just symlink the folder ~/.vim, you don’t have to link every individual file within it
<cafaro>Â Â Â Can’t recall having the same issue before
<cafaro>Â Â Â ok great
<nag>Â Â Â cafaro: I symlink .vimrc and .vim… a directory is a file, too
<cafaro>Â Â Â yes, you’re right ![]()
<Azrathud>Â Â Â cafaro, http://vim.1045645.n5.nabble.com/vim-in-terminal-fails-to-redraw-after-window-resizing-td4877176.html
<Azrathud>Â Â Â It looks like it’s bug.
<Azrathud>Â Â Â I think perhaps the repo hasn’t been updated with the patch for the bug yet.
<jbrokc>Â Â Â goddamit – this doesn’t work and I have absolutely no idea why. please don’t tell me it’s a bad idea. I think it’s a fantastic idea (netrw never creating [scratch] buffers on <Enter>) https://gist.github.com/4b3f99cb8745bf2a701b – this is not removing the trailing / for some reason
<cafaro>Â Â Â Azrathud: ok thanks, guess we’ll just have to wait for it ![]()
<joe9>Â Â Â Azrathud: Ctrl-W =, redraws the screen, doesn’t it.
<joe9>Â Â Â i have the problems, where vim randomly does not show the full screen or windows.
<joe9>Â Â Â i think Ctrl-W = takes care of it, or, there is some other command that I do not remember, but the muscle memory does. let me see what it is.
<joe9>Â Â Â ^R or ^L
<joe9>Â Â Â :redraw!
<jbrokc>Â Â Â does anyone know why the following pattern doesn’t work substitute(“foo/”, “\/$\|\*$”, “”, “”) – i’m trying to make both “foo/” and “foo*” be “foo”
<Azrathud>Â Â Â joe9, Actually inputting any command into vim makes it redraw for me. The manual redraw is just a pain when I want to resize a window and still be able to read the text inside.
<jbrokc>Â Â Â aw man nobody knows?
<Raimondi>Â Â Â jbrokc: Because you’re using double quotes as if they were single
<Raimondi>Â Â Â ones
<jbrokc>Â Â Â Raimondi: once I changed them I realized that (about 5 seconds ago)
<jbrokc>Â Â Â its’ still not doing what I’d like which kind of sucks
<jimmy_birer>Â Â Â man
<jimmy_birer>Â Â Â vim is awesome
<jimmy_birer>Â Â Â i can edit stuff
<jimmy_birer>Â Â Â that i do in 10 mins
<Raimondi>Â Â Â It works as you described, what do you want it to do?
<nordin>Â Â Â hello guys, I program in several langauges, from C to PHP. I’ve installed some plugins to help code more efficiently. But how can I change settings (like textwidth, indentation, etc) automatically based on filetype?
<jimmy_birer>Â Â Â in 3 seconds
<nordin>Â Â Â can someone provide me a good link?
<jbrokc>Â Â Â Raimondi: so as soon as I remove the \*$ it starts working like it should. I want to make the word under the cursor (which will either be a directory or filename in the netrw explorer) to just remove the trailing ‘/’ or ‘*’ that netrw puts there
<goldenwest>Â Â Â nordin: au FileType php set …
<nordin>Â Â Â goldenwest: aah, ok thnx man
<jbrokc>   Raimondi: but it doesn’t work for files… (with the * at the end)
<Raimondi>Â Â Â jbrokc: pastebin some samples
<jbrokc>Â Â Â Raimondi: sure
<jbrokc>Â Â Â Raimondi: i don’t know how descriptive this is – let me kow if i can help further https://gist.github.com/2b85cd994c21be93f67a
<thebope>Â Â Â hi, does anyone here use vim with their mac?
<thebope>Â Â Â Because I’m wondering how I find out which version of ViM I have as well as how to install plugins
<jbrokc>Â Â Â Raimondi: this, grossly, works
<jbrokc>Â Â Â Raimondi: https://gist.github.com/f982d559bb4547a65cbe
<thebope>Â Â Â it doesn’t appear to come with the same folders
<goldenwest>Â Â Â thebope: you can just create you ~/.vim folder
<thebope>Â Â Â okay and put a plugins and autload folder in those?
<goldenwest>Â Â Â thebope: for version you can just go to MacVim -> About MacVim
<jbrokc>Â Â Â goldenwest: or `vim –version`
<jbrokc>Â Â Â err – cc thebope ^^
<goldenwest>Â Â Â thebope: generally you just need to put them in the “plugin” folder
<goldenwest>Â Â Â so “mkdir ~/.vim” “mkdir ~/.vim/plugin” “mv mycoolplugin.vim ~/.vim/plugin”
<Raimondi>Â Â Â jbrokc: substitute(expand(“<cWORD>”), ‘[/*]$’, ”, ”)
*Â Â Â yofel_ is now known as yofel
<kwtm>   How do I convert float to string?  E.g.  :let @+=7/2.5    I don’t see a float2str() even though there’s a str2float()
<goldenwest>Â Â Â kwtm: :h string()
<kwtm>Â Â Â goldenwest-Â Thx! will try
<Raimondi>Â Â Â jbrokc: Did you get the regex?
<jbrokc>Â Â Â Raimondi: sjl helped me out – ‘\(\/$\|\*$\)’ but i used the \%(\) variant
<Raimondi>Â Â Â Good
<jbrokc>Â Â Â Raimondi: thought i tried that but I guess I skipped it and went for the GROUP ALL THE THINGS route \%(\/$\)\|\%(\*$\)
<Raimondi>Â Â Â jbrokc: but in that case yu ocan use ‘[/*]$’ instead
<jbrokc>Â Â Â omg…
<jbrokc>Â Â Â yeah that would’ve been easier…
<jbrokc>Â Â Â Raimondi: so substitute(expand(“<cword”), ‘[/*]$’, ”, ”) – i don’t need to escape them?
<Raimondi>Â Â Â Nope
<jbrokc>Â Â Â ah that’s not quite working…
<jbrokc>Â Â Â oh nevermind
*Â Â Â mikl1 is now known as mikl
<Adren>Â Â Â :q
<Adren>Â Â Â ops ![]()
<paradigm>Â Â Â haha
<bencahill>Â Â Â abstrakt: yay! I still don’t know much vimscript, but I was able to solve my problem…in html.vim: http://paste.pocoo.org/show/490659/
<abstrakt>Â Â Â bencahill, nice, well done
<bencahill>Â Â Â abstrakt: wasn’t expecting a compliment… thanks!! ![]()
<jbrokc>Â Â Â bencahill: that’s enough vimscript to get you by a lot man
<bencahill>Â Â Â jbrokc: mainly learned just from going through the html.vim script line-by-line, and looking up things
<bencahill>Â Â Â I take it from these comments that vimscript really isn’t very hard at all ![]()
<jbrokc>   bencahill: next step – :h vim-script it’s super basic if you go through it line-by-line
<abstrakt>Â Â Â bencahill, i’ve been loath to dive in to the actual indent stuff… i’ve written a few vimscripts, but i’ve got a similar PHP indentation pet peve and your snippet shall be useful to me
<abstrakt>Â Â Â bencahill, so, that’s pretty cool, thanks ![]()
<bencahill>Â Â Â abstrakt: awesome ![]()
<jbrokc>Â Â Â abstrakt: i recommend hacking on vim-coffee-script
<jbrokc>Â Â Â abstrakt: it has an indent/ file that’s pretty well commented
<abstrakt>Â Â Â bencahill, it’s like any other “scripting” language, just with different syntax for the most part
<bencahill>Â Â Â abstrakt: just so you know, this is following the ‘banner’ style of indenting: http://en.wikipedia.org/wiki/Indent_style#Banner_style
<abstrakt>Â Â Â bencahill, all languages have loops and variables and functions for the most part, it’s just a matter of learning the libraries and you can pick and choose those as you go once you know the basics
<bencahill>Â Â Â abstrakt: well, for me, it seems that PHP is much easier, than, say, JS or C/C++/C#/whatever, because it’s not ‘live’, if you know what I mean
<bencahill>Â Â Â abstrakt: i.e. input comes in (POST and GET), you do stuff with it and files/functions/vars, and then you spit out the results (headers, then html)
<abstrakt>Â Â Â bencahill, event driven is the proper term, but yes i understand
<nag>Â Â Â I find PHP to be more ‘live’ than those things because you change and re-execute and it’s very quickly changing, same for Python, Perl, etc
<bencahill>Â Â Â abstrakt: languages like those others seem to be harder because it’s realtime…although I really haven’t done anything with them (haven’t needed to
<bencahill>Â Â Â abstrakt: ah, good to know, thks
<bencahill>Â Â Â nag: you mean as far as compiling?
<abstrakt>Â Â Â dealing with events isn’t what makes a programming language “difficult”
<bencahill>Â Â Â or not having to compile, for that matter…
<abstrakt>Â Â Â it’s more to do with the type flexibility
<bencahill>Â Â Â abstrakt: I’m sure you’re right, I just haven’t dealt with it, so it seems foreign
<nag>Â Â Â yep; it’s fluid and your changes are realized immediately
<abstrakt>Â Â Â bencahill, what OS do you run
<bencahill>Â Â Â abstrakt: arch linux x86_64
<bencahill>Â Â Â abstrakt: what do you run?
<abstrakt>Â Â Â bencahill, well, given the nature of arch, you’ve almost necessarily got gcc and make available… if you enjoy programming and intend to make a career out of it, it’s certainly worth your time to at least dabble in C, just so you can know how backwards it is ![]()
<abstrakt>Â Â Â bencahill, windows XD
<bencahill>Â Â Â abstrakt: ew
<nag>Â Â Â C is not backwards… Make on the other hand…
<bencahill>Â Â Â abstrakt: yes, doing anything in C would be very easy for me, given I have all the tools at my disposal ![]()
<Zathrus>Â Â Â C is not backwards.
<abstrakt>Â Â Â bencahill, that’s all I’m sayin ![]()
<abstrakt>Â Â Â hahaha, epic, and I’ll leave you in the hands of these well qualified gentlment to explain the nuances of C to you
<Zathrus>Â Â Â however the vim codebase is not a good example of “sane C”
<bencahill>Â Â Â abstrakt: I don’t hate on people who use win, I’ve simply found that for me, I can do what I need most efficiently in linux, hehe
<abstrakt>Â Â Â bencahill, yeah that’s why I run *nix in virtualbox for all my development work ![]()
<bencahill>Â Â Â abstrakt: yep ![]()
<abstrakt>Â Â Â bencahill, netflix and games are what still keep me on windows
<goldenwest>Â Â Â netflix?
<goldenwest>Â Â Â i don’t get it
<bencahill>Â Â Â abstrakt: right, that’s usually the thing for *nix users, something like games or photo/video editing apps
<bencahill>Â Â Â …the thing that keeps them on windows, that is
<Zathrus>Â Â Â goldenwest: you cannot do netflix streaming on Linux. Period.
<nag>Â Â Â Zathrus: not yet.
<goldenwest>Â Â Â oic – I’m on OSX
<Zathrus>Â Â Â nag: yeah. Don’t hold your breath.
<abstrakt>Â Â Â goldenwest, that’s BSD and it’s partially closed source as well
<goldenwest>Â Â Â indeed – i haven’t been reading the convo
<goldenwest>Â Â Â just saw “netflix is keeping me on windows”
<abstrakt>Â Â Â goldenwest, so MS can feel safe installing silverlight
<abstrakt>Â Â Â “netflix and games”
<goldenwest>Â Â Â right that
<abstrakt>Â Â Â if it was just netflix, i’d probably be on OSX ![]()
<nag>Â Â Â abstrakt: Darwin, perhaps, but most other modern BSD variants are completely open and free.
<bencahill>Â Â Â abstrakt: never used OSX, but it must be better than windows as far as having a nice shell, and a *nix filesystem hierarchy…
<nag>Â Â Â Zathrus: my understanding is that Netflix will be using some HTML5 thingy, with a proprietary browser extension for the DRM
<abstrakt>Â Â Â althought, one thing is true though, you can’t portmap the virtualbox nat below port 1000 on *nix, so that includes ubuntu/arch/osx/etc, so you can’t directly forward port 80, which is wicked annoying
<goldenwest>Â Â Â abstrakt: yeah, that’s my reasoning and I don’t play games
<Zathrus>Â Â Â nag: that extension will still be binary code though.
Oct 102011