tag:blogger.com,1999:blog-3303182477271175463.post4923818908640709015..comments2023-07-13T07:41:00.144+12:00Comments on Got Ravings?: Vim pr0n: Making statuslines that ownDr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-3303182477271175463.post-91255898605712748902016-11-17T09:12:34.726+13:002016-11-17T09:12:34.726+13:00And here is mine:
set statusline=
set statusline+=...And here is mine:<br />set statusline=<br />set statusline+=%f%= " filename<br />set statusline+=%< " folding left<br />set statusline+=[%{GetBG()}\:%{GetCN()}]\ " background and colorscheme<br />set statusline+=[%1*%M%*%n%R%W\,%{strlen(&ft)?&ft:'none'}]\ " Anonymoushttps://www.blogger.com/profile/17611206768917199977noreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-63683624599199758872016-05-11T12:18:31.967+12:002016-05-11T12:18:31.967+12:00where are the pretty screenshots?!where are the pretty screenshots?!Felipehttps://www.blogger.com/profile/14787358518273936179noreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-75372865296607814922016-04-05T03:18:39.456+12:002016-04-05T03:18:39.456+12:00This is an old post, but to help out anyone wonder...This is an old post, but to help out anyone wondering the same thing, %{colorscheme} should do the tricksamadihttps://www.blogger.com/profile/18404773266125633119noreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-1116275157461072682013-10-13T04:30:10.753+13:002013-10-13T04:30:10.753+13:00This comment has been removed by the author.abhinavhttps://www.blogger.com/profile/17836532413279872775noreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-7808401231959680362011-12-21T03:26:48.399+13:002011-12-21T03:26:48.399+13:00There is a convention that colorschemes set the g:...There is a convention that colorschemes set the g:colors_name variable. So you could just have a function that returns that if it exists or an empty string (or maybe "default") otherwise, and call it from your statusline.Dr Foobariohttps://www.blogger.com/profile/17261969811711468642noreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-76366155006484637812011-12-15T20:37:12.112+13:002011-12-15T20:37:12.112+13:00Thanks. Is there any way I can put the colorschem...Thanks. Is there any way I can put the colorscheme name in the statusline?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-8952818722227750542011-05-01T05:58:54.434+12:002011-05-01T05:58:54.434+12:00Thanks :). Nice post.Thanks :). Nice post.ashishjain87https://www.blogger.com/profile/06542784368135747048noreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-36119457719848664482010-11-04T07:56:15.615+13:002010-11-04T07:56:15.615+13:00Thanks for the detailed overview! It was extremely...Thanks for the detailed overview! It was extremely helpful. :)Annsnoreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-80139144346579449872010-08-20T07:43:23.734+12:002010-08-20T07:43:23.734+12:00Woah, definitely some sexy options in there I didn...Woah, definitely some sexy options in there I didn't know about, thanks for the vim pr0n! Picked up your idea on splitting it into seperate lines for each option and totally didn't think of the strlen trick :P<br /><br />And wow jamessan if you need triple digit buffer numbers o.0<br /><br />Here's mine: (Pastebinned 'cause site is a little thin xD)<br />http://vim.pastey.net/TidusBladenoreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-71024510340864600312010-05-10T05:46:00.156+12:002010-05-10T05:46:00.156+12:00Awesome - Thankyou! Keep up the great work!Awesome - Thankyou! Keep up the great work!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-58180337013480056372009-04-05T21:12:00.000+12:002009-04-05T21:12:00.000+12:00Thanks--sweet post man, I had just turned off my s...Thanks--sweet post man, I had just turned off my statusline before but this has changed my mine. Very helpful.travisjefferyhttp://travisjeffery.comnoreply@blogger.com