![]() Fixed nasty bug in insert mode for the navigation mappings that were.Turning off display of cursorline in the various padding windows. K/ aren’t already mapped to something else.Įxplicitly setting textwidth when toggling Vimroom. These mappings are only implemented if j/ and Wrapped the mappings in a try/catch block, just in case.Ĭhanged navigation mappings in Vimroom mode to move over wrapped linesĪs they’re displayed on the screen (“display lines” in Vim vernacular)Īs opposed to the default navigation over hard line-breaks (“logical To enable users to determine whether navigational keys ought to be mappedĪs navigating over “display” lines instead of “logical” lines. Fixed Issue #2 by adding a new g:vimroom_navigational_keys option.You can bind the VimroomToggle function to any key combination you like via the usual mechanisms. g:vimroom_width is the width of your workspace.g:vimroom_sidebar_height sets the height of the upper and lower “sidebars.” If you don’t want vertical padding, set this to 0.This defaults to 999, which centers the cursor on the screen. g:vimroom_scrolloff specifies how many lines of text ought appear before and after the cursor.This defaults to 1 (on), if you’d prefer the mapping not take place, set it to 0 (off). g:vimroom_navigational_keys determines whether Vimroom will map keys like, , j, and k to navigate over “display” lines, rather than “logical” lines.This will automatically expand to take up all the free space left after setting the main workspace window to g:vimroom_width columns. g:vimroom_min_sidebar_width is the minimum sidebar width.Set this to your terminal’s background color (“white”, “black”, etc.) g:vimroom_background is the background color to be used for hiding elements.As of v0.4, VimRoom also sets up a :VimroomToggle command that has the same effect.Ĭhanging any of these assumptions is a simple matter of setting variables in your. It assumes a black background when hiding visual distractions. That’s it! Configurationīy default, VimRoom binds V to VimroomToggle, and sets up an 80 column workspace with at least 5 columns of space on either side (it doesn’t help at all to have single-column sidebars, you see), and 3 lines of space above and below. plugins/vimroom.vim from the repository into your plugins directory. Without Pathogen, installation is almost as trivial: simply copy. Using that plugin, you can simply clone the VimRoom repository into your bundles directory, and you’re done. I think the best way to install Vim plugins is via Tim Pope’s Pathogen. Some of this is possible with MacVim, but I’d rather do as much as I’d also like a little of the visualĬlutter to fade away. ![]() Vim means that text ends up flat up against the left side of my monitor, but I want a writing environment to do, but I miss some of the “ distractionįree” features of the quite exceptional WriteRoom. ![]() I do most of my writing in Vim, because I’m a big nerd. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |