Loading ...
Sorry, an error occurred while loading the content.
Advanced Search
Author
Subject
Message
Special notice only

9 results from messages in vim

Advanced Search
  • On 2009-05-01, Matt Wozniski wrote: > > On Fri, May 1, 2009 at 2:16 AM, Y. Hida wrote: >> >> On 2009-05-01, StarWing wrote: >>> On 5月1日, 上午4时36分, "Y. Hida" wrote: >>>> Hi, >>>> >>>> I have a question regarding auto-indenting. Suppose I have a line >>>> whose indent is a mix of tabs and spaces, like following: >>>> >>>> ____....blah blah >>>> >>>> where ____ is a tab...
    Y. Hida May 1, 2009
  • On 2009-05-01, StarWing wrote: > On 5月1日, 上午4时36分, "Y. Hida" wrote: >> Hi, >> >> I have a question regarding auto-indenting. Suppose I have a line >> whose indent is a mix of tabs and spaces, like following: >> >> ____....blah blah >> >> where ____ is a tab and . is a space. When I insert a new line after >> this vim either inserts only tabs, so I get...
    Y. Hida May 1, 2009
  • Hi, I have a question regarding auto-indenting. Suppose I have a line whose indent is a mix of tabs and spaces, like following: ____....blah blah where ____ is a tab and . is a space. When I insert a new line after this vim either inserts only tabs, so I get ____....blah blah ________ Is there a way to just copy the indentation so that I get something like: ____....blah blah...
    Y. Hida Apr 30, 2009
  • Fetching Sponsored Content...
  • On 2009-04-16, Tony Mechelynck wrote: >> >> Y. Hida wrote: >>> Is there a way figure out how wide a string containing double-width >>> characters are when displayed? I'm trying to right-justify some strings >>> in foldtext. > > > Here's another proposal, which can meet every possibility, and doesn't > loop over all characters (faster for long strings), but at the cost of > opening...
    Y. Hida Apr 22, 2009
  • On 2009-04-22, Tim Chase wrote: > > Y. Hida wrote: >> Is there a way to name a scratch buffer other than "[Scratch]" and still >> be able to have multiple buffers with same name? Right now I have a >> bunch of scratch buffers: >> > 2) you didn't include the error number, but if you're getting an > "E95: buffer with this name already exists", choose another name > for the 2nd...
    Y. Hida Apr 22, 2009
  • Is there a way to name a scratch buffer other than "[Scratch]" and still be able to have multiple buffers with same name? Right now I have a bunch of scratch buffers: :ls 1 #a "[No Name]" line 1 2 h- "[Scratch]" line 1 3 a- "[Scratch]" line 0 4 %a- "[Scratch]" line 1 and I'd like to rename some subset as "[My scratch]" or some such. If I try :f [My scratch] to more than one...
    Y. Hida Apr 22, 2009
  • On 2009-04-16, Tony Mechelynck wrote: > > Here's another proposal, which can meet every possibility, and doesn't > loop over all characters (faster for long strings), but at the cost of > opening a temporary window (IOW, it requires has('windows)) > > function VirtLen(string) > new > 0put =a:string > let rv = virtcol('$') - 1 > q! > return rv > endfunction > Very...
    Y. Hida Apr 16, 2009
  • On 2009-04-15, Yukihiro Nakadaira wrote: > > /\%v pattern is useful for it. > > function! StrWidth(str, ...) > let vcol = get(a:000, 0, 0) > let w = 0 > for c in split(a:str, '\zs') > let w += CharWidth(c, w + vcol) > endfor > return w > endfunction > > function! CharWidth(c, ...) > let vcol = get(a:000, 0, 0) > if a:c == "" > return 0 > elseif a:c == "\t" > return TabWidth(vcol...
    Y. Hida Apr 15, 2009
  • Hi, Is there a way figure out how wide a string containing double-width characters are when displayed? I'm trying to right-justify some strings in foldtext. -Yozo --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php...
    Y. Hida Apr 14, 2009