Git Product home page Git Product logo

vimroom's Introduction

Vimroom

Readme goes here.

vimroom's People

Contributors

ab avatar georgexsh avatar jonasb avatar mikewest avatar rjshade avatar sotte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vimroom's Issues

setting textwidth to vimroom_width

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.)

Unable to switch tabs with vimroom enabled

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:

  1. :VimroomToggle
  2. :tabnext
  3. :VimroomToggle
  4. :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.

Usability tweaks

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.

help file / doc

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!

Ruler settings interact badly

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]

:q does not quit while in vimroom

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.

list option needs to be turned off for word wrapping

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.

Faux Powerline statusbar at top of view

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

Apply it on a per-buffer basis

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?

Solarized "dark" resets to "light" when toggle OFF

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!

Colour setting conflicts

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

Different GUI font for Vimroom

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.

Use "setlocal" instead of "set"

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...

Errors with navigation key mappings

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)

Creates 5 buffers!

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?

Toggling vimroom Kills Splits

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:

  1. I have a couple split windows open.
  2. I use :VimroomToggle to enable vimroom.
  3. vimroom works great!
  4. I'm done with vimroom, so I run :VimroomToggle again.
  5. All my splits are gone.

Would be nice if you could store the state of vim as it was beforehand, so the splits get restored. Thanks!

Check if vimroom is currently enabled?

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.