Hacker News new | past | comments | ask | show | jobs | submit login

I have too many. I have many ideas for plugins as I'm getting into vimscripting (and have since released one) and I use vimrc as a staging area for those ideas to grow on me.

Just last week I put this to have modified buffers in my statusline:

  set statusline+=%{GetModifiedBuffers()}
  function! GetModifiedBuffers()
    redir @b
    silent! buffers
    redir END
    return system('echo "'.@b.'"' . " | awk '$3 ~ /\+/ {printf ".'"  " $4 "*"'."}'")
  endfunction
I also have something I'm calling Streamline, which allows you to navigate relative lines while seeing absolute lines.

Also just yesterday I hacked something which allows me to block hjkl for more than one consecutive press, while binding their double presses to some other action. So pressing j once gets me down one line, pressing a second consecutive time activates Streamline which then, without a count, takes me to lines multiple of ten, so it's my way of scrolling when I don't know the outlook of the file (given a count of 4 while on line 37, Streamline would take you to line 44). This is still not on my online vimrc, but the rest is at github.com/goldfeld/dotfiles.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: