Live data from Hacker News

Vimroom

projects.mikewest.org

31–39 of 39 posts

Re: Vimroom

#31
post #6

If you just want full-screen, it's ":set fullscreen" on MacVim, or ":set fu" for short.

awesome. :set nofu to get back My pet peeve with vim is the :set paste, :set nopaste things why not have :set paste false....

You can also do

    :set fu!
    :set paste!
Instead of nofu or nopaste.

Re: Vimroom

#32
post #31

Earlier quoted context omitted.

awesome. :set nofu to get back My pet peeve with vim is the :set paste, :set nopaste things why not have :set paste false....

You can also do :set fu! :set paste! Instead of nofu or nopaste.

Learn something new everyday. Thanks, shazow!

Re: Vimroom

#33
Nice! I recently started using Vim for prose and was mentally writing (in preparation for actually writing) a plugin that would do just this. I couldn't think of any better way to do it either, other than what you've done, setting up splits to the left and right. You've added some stuff that I hadn't thought of that makes it even nicer.

This is something else I use:

  function TextEdit()
    set spell
    set formatoptions=1
    set linebreak
    set wrap
    set nolist
    nnoremap j gj
    nnoremap k gk
    vnoremap j gj
    vnoremap k gk
    set guifont=Monaco:h16
  endfunction
  
  if has('autocmd')
    au BufRead,BufNewFile *.txt call TextEdit()
    au BufRead,BufNewFile *.markdown call TextEdit()
  endif
It gets paragraphs wrapping at words and and lets you move up and down by visual lines rather than actual lines. The last bit applies the settings automatically when opening a .txt or .markdown file. It looks like your plugin already does this, but maybe it would be useful for someone who wants a partial solution.

Re: Vimroom

#35

I wrote an xmonad layout manager that will make any application work like this: https://github.com/jrockway/dotfiles/blob/master/xmonad/lib/... It looks something like: http://jrock.us/almostfull.png

Awesome! I'll be using this. Have you submitted it for contrib?

Re: Vimroom

#36
post #6

If you just want full-screen, it's ":set fullscreen" on MacVim, or ":set fu" for short.

cmd + return is the shortcut for fullscreen on MVim too.

Re: Vimroom

#39
Instead of using splits you could set a large foldcolumn combined with word wrapping. Unless you are actually using folding it will result in a large area of blank space on the left of the window.
Post reply on HN