Readme goes here.
mikewest / vimroom Goto Github PK
View Code? Open in Web Editor NEWSimulating a vaguely WriteRoom-like environment in Vim.
Home Page: https://mikewest.github.io/vimroom/
License: BSD 3-Clause "New" or "Revised" License
Simulating a vaguely WriteRoom-like environment in Vim.
Home Page: https://mikewest.github.io/vimroom/
License: BSD 3-Clause "New" or "Revised" License
I noticed that you're setting textwidth to the width of the vim room pane, but this causes Vim to start hard-wrapping text:
if s:save_textwidth != ""
exec( "set textwidth=".g:vimroom_width )
endif
Is it possible to turn this into a configurable option? Or am I missing something? I don't like hard-wrapping my text. (That's part of the reason I found vimroom in the first place.)
If :VimroomToggle
is only called in one tab, switching between tabs is still possible. When :VimroomToggle
is called on more than one tab, Vim no longer displays the documents correctly and tab switching is not possible.
To recreate the issue find two files editable by Vim. Run vim -p file1.txt file2.txt
in a terminal shell followed by:
:VimroomToggle
:tabnext
:VimroomToggle
:tabnext
Steps 1 and 2 execute successfully, however, step 3 fails. Vimroom is unable to format the tab successfully (the second file is reduced to 50% of its vertical size). At this point, I am unable to execute step 4 to switch between tabs.
Any ideas?
Note: this issue was experienced in Vim 7.3 on OS X.
It would be great to have the option to automatically keep the current colorscheme's background color -- is that possible?
Also an option to keep the status bar visible for those of us who want it.
A luxury feature would be if the sidebar width and positioning was automatically recalculated if the user resizes the gvim window.
it would be great if the plugin contained a doc/vimroom.txt
with all the available options + how the plugin works (basically what is available on the site), just so we could do :help vimroom
instead of opening the browser to check the settings, etc..
just found out about the plugin and really enjoining it so far. thx a lot!
On your website (http://projects.mikewest.org/vimroom/), you mention the setting g:vimroom_background. This does not exist, but g:vimroom_guibackground and g:vimroom_ctermbackground do.
This may not be an issue.
If I VimroomToggle and then switch to fullscreen, the nonfullscreen buffer remains the same size.
In case I'm not using the right terminology (I'm new, sorry), here are some screencaps:
Before: http://cl.ly/image/2W3D0L1y3Y1I
After: http://cl.ly/image/1m0h0F3n1b0p
I have something like:
set t_mr=^[[0;1;37;44m
set ruler
in my .vimrc to show a coloured ruler, this doesn't make much sense with this. If I manually :set noruler t_mr= and do a ^L after entering this it works.
[I'm http://news.ycombinator.com/item?id=3088408]
I'm running vim in Mac OS Lion terminal, here how it looks:
It only closes the open file, and (if that file was the last one open,) leaves the user on a completely black screen.
It would be nice if :q could quit if the current file is the last one open.
Could you please upload it to vim.org for posterity? 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!
The URL in the title of the project points to a 404. I believe the correct URL is now https://mikewest.github.io/vimroom/
I see you're setting wrap
and linebreak
when loading VimRoom. But since I have list
option turned on, the word wrap breaks in the middle of the words for me.
The vim documentation for 'linebreak'
says that it is not used when list is set. So, please set nolist
when loading VimRoom. Thanks.
PS: You'll also want to save the state of the list
option before loading VimRoom, as not all have it turned on. I'll see if I can create a pull request in the coming couple of days. Thanks again.
With Powerline enabled, I had to write a function which cleared the statusline after the VimroomToggle with "set statusline=". Toggling back was no problem, the Powerline status bar was restored automatically by Vimroom.
Strangely though, at the top of the view, a faux Powerline status bar shows with uninitialzed information (no filename, shows instead "new, 100%" etc). The file scrolls beneath that line in row 4.
From what I can tell, it looks like the Powerline status bar appears as a result of the way the screen is windowed to create the centered view -- probably not solvable by the way Powerline overrides Vim's native statusbar.
Any ideas? Other than that, really like Vimroom.
Steven
If I use relativenumber, I can't use set nonumber
directly to disable line numbers.
I must set line number to normal number and then disable it:
set number
set nonumber
When using this plugin: https://github.com/Lokaltog/vim-powerline
you get weird escaping going on when you invoke VimRoom.
before vimroom:
http://cl.ly/2W2H1C1t372J1G0c3C1L
after vimroom:
http://cl.ly/3V2n1J0D1j2K3V3B352C
I wish I was more of a vim pro to give a solution rather than just presenting a problem… it would appear that it has to do with some escaping of characters. I'd be content if the statusbar just hid during vim room mode. I dunno.
I found out about this vim plugin when looking for a way to soft-wrap a vim buffer to a specific width. So in reality I do not need all of its functionality, but even with all the extra stuff, it fits my need. Except for one thing: I'd like to be able to apply this to a specific buffer, but not to all of my open buffers. Is there a way to use it like this?
vimroomWorks as expected when toggling ON but when I toggle OFF (back to "normal" mode) the background gets set to non-dark theme. I can resolve by re-sourcing my vimrc (:so ~/.vimrc) or restarting vim but it would be nice to not have to. Thanks for this great plugin!
I'm running vimroom on gvim. My normal theme is solarized. When I turn on vimroom, the current line remains highlighted with Solarize's default colours. My theme's colours also remain in the command bar.
I'm running gvim on Ubuntu in Gnome.
Thanks
I normally have a dark theme but prefer a light theme for writing. It would be cool it vimroom offered a option to load a different theme on startup:
let g:vimroom_theme
something to do with vimroom using multiple windows to achieve it's effect. When vimroom is enabled you have to quit out of it four or five times to get out of vim itself.
Since writing text is a really different beast than writing code, it would be very useful to change the guifont (for those using gvim etc) in Vimroom mode. I'd love to be able to increase font size for vimroom.
I tried to split a new window and edited it after I closed VimRoom, I just got a warning told me the window wasn't modifiable.
Use setlocal noma
instead of set noma
could solve this problem.
p.s. I did too many changes in my fork, so I think I cannot pull request directly...
The navigation-keys option is misspelled at the website. It should be:
g:vimroom_navigation_keys
instead of:
g:vimroom_navigational_keys
If you have these mappings already defined in ~/.vimrc
:
nnoremap j gj
nnoremap k gk
When executing VimroomToggle
Vim complains about already defined mappings.
Error detected while processing function <SNR>73_VimroomToggle:
line 66:
E227: mapping already exists for <80>ku
line 67:
E227: mapping already exists for <80>kd
line 68:
E227: mapping already exists for k
line 69:
E227: mapping already exists for j
and then everything works ok. I tried to comment out lines defining mappings in plugin code and then errors disappeared.
Linux
Vim 7.3
Vimroom latest cloned from github (last commit date: January 02, 2011)
I really like the idea of this plugin. However, when I toggle Vimroom, it creates 5 different buffers. I'm guessing that you are doing this in order to get the spacing correct, but it really is a pain to close 5 different buffers when I actually want to quit vim.
Might this be a problem with something in my vimrc? Or are you experiencing this too? Is it by design?
Hi there,
First of all--vimroom is awesome. Been using it all day, and couldn't be more pleased!
The issue I've noticed is that:
Would be nice if you could store the state of vim as it was beforehand, so the splits get restored. Thanks!
Is it possible to check if Vimroom is currently enabled?
I'm looking to add a line to my .vimrc that hides the tab bar when I enable Vimroom.
If this is not possible to do without modifying the plugin itself I understand :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.