5 ms·
Vimroom
- proppy 15y agoFound the same thing on emacs: https://bitbucket.org/phromo/darkroom-mode/ https://bitbucket.org/phromo/darkroom-mode/
- nyellin 15y agoSee also: http://www.emacswiki.org/emacs/WriteRoom http://www.emacswiki.org/emacs/WriteRoom
- pestaa 15y agoI didn't know I wanted something like this so much.
- beagledude 15y agolove this. I've been crafting my blog articles in vim lately as well and this will definitely make that a more pleasant experience.
- ineedtosleep 15y agoHow does this stand up when there are split windows? Is this mostly for single window/terminal use?
- dgl 15y agoIt appears to be implemented using split windows, so the results if you try and use split windows normally are somewhat surprising. (It also doesn't work well with my settings as it shows a statusbar on some of these split windows acting as padding, so the effect is ruined slightly.)
- mikewest 15y agoIt is implemented using splits, so you're right: if you're already using split windows then your results will be a bit off. :) Regarding your settings, would you mind filing a bug report with some detail? I'm happy to try to fix things if there's a bug: https://github.com/mikewest/vimroom/issues https://github.com/mikewest/vimroom/issues
- bdr 15y agoIf you just want full-screen, it's ":set fullscreen" on MacVim, or ":set fu" for short.
- sunkencity 15y agoawesome. :set nofu to get back My pet peeve with vim is the :set paste, :set nopaste things why not have :set paste false....
- hesitz 15y agoI also don't like this, although it's no big deal, and it happens with a few other settings (e.g., 'number'). One way around it is to forget about using the 'set' command entirely and to assign all settings using the setting variable directly. Every setting has a corresponding variable that can be accessed by prefixing with &, so to set paste off you can just do ':let &paste=0'.
- shazow 15y agoYou can also do :set fu! :set paste! Instead of nofu or nopaste.
- nicholasjbs 15y agoLearn something new everyday. Thanks, shazow!
- te_chris 15y agocmd + return is the shortcut for fullscreen on MVim too.
- skeptical 15y agovertical split with three windows, adjust their size to control the margins, and set the border to the same color as the background. Put these commands on your .vimrc. Should work too.
- Hates_ 15y agoThe article mentions the same is possible in MacVim, but not how to do it. Any pointers?
- pssdbt 15y agoAlso curious about this. Entering fullscreen used to do it correctly, but in the latest MacVim the document spans 100%, even if you have "Prefer native fullscreen support" unchecked.
- bouncingsoul 15y agoSnapshot 61 added maxhorz and maxvert to fullscreen options by default. You have to set fuoptions yourself if you want something different. See my other comment for what I do.
- drKarl 15y agohttp://mutelight.org/articles/vim-is-writeroom-level-2.html http://mutelight.org/articles/vim-is-writeroom-level-2.html
- bouncingsoul 15y agoIn vimrc: if has('gui_macvim') set fuoptions=background:Normal endif Screenshot: http://i.imgur.com/HeWkK.png http://i.imgur.com/HeWkK.png
- xerxes2001 15y agoDoesn't really work for me, but there is already an issue on GitHub for this. However, I don't really see the added value if you are using MacVim in the first place.
- mikewest 15y agoThe big advantage over MacVim is that Vimroom works from the terminal, anywhere. I can use the plugin no matter which machine I'm logged into, which is pretty valuable to me. I fixed the only issue that was on the project before today (errors when mapping keys that were already mapped), and pushed a v0.7. I hope that fixes the issue you experienced.
- sea6ear 15y agoI wrote a color scheme/plugin to do something similar a while back (I think it's darkroom.vim on vim.org). Never really developed it fully. Ratings indicate people were underwhelmed :) Looks like this guy may have given the idea a much better treatment.
- jrockway 15y agoI wrote an xmonad layout manager that will make any application work like this: https://github.com/jrockway/dotfiles/blob/master/xmonad/lib/AlmostFull.hs https://github.com/jrockway/dotfiles/blob/master/xmonad/lib/... It looks something like: http://jrock.us/almostfull.png http://jrock.us/almostfull.png
- Adaptive 15y agoAwesome! I'll be using this. Have you submitted it for contrib?
- cdelahousse 15y agoCould you please upload it to vim.org for posterity? http://www.vim.org/scripts/index.php http://www.vim.org/scripts/index.php This'll get mirrored to the vimscripts github account and then let us install it via the Vundle vim package manager. Thanks for the cool plugin!
- drKarl 15y agoI'm not the author, just found it interesting and wanted to share with the community :)
- cdelahousse 15y agoWoops. Pardon me.
- mikewest 15y agoI'll take a look at getting it up to vim.org. Thanks for your interest!
- mikewest 15y agoAnd now it's there: http://www.vim.org/scripts/script.php?script_id=3766 http://www.vim.org/scripts/script.php?script_id=3766
- delluminatus 15y agoyou can install it with vundle anyway: Bundle "mikewest/vimroom"
- yesimahuman 15y agoWhat kind of visual distractions does Vimroom hide with the background color setting? I must admit, having text centered like that is intriguing. I'm going to give this a try.
- Amnon 15y agoWhat I do is split the window vertically (C-w v), and resize the left window so that the text in the right window is centered on the screen.
- 1336 15y agoFunny, I wrote a plugin earlier this year and came up with the exact same name. I never had time to polish and release it, but if you're interested, here's the source on GitHub: https://github.com/mbadran/vimroom https://github.com/mbadran/vimroom The feature sets are different, from what I can tell.
- zzzmarcus 15y agoNice! 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.
- swah 15y agoI can never focus on something long enough that this would become important.
- grimen 15y agoSumblime Text 2 has exactly this, very neat.
- jamesbritt 15y agoHow does this compare to just having a desktop devoted to a single instance of vim?
- funcused 15y agoInstead 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.