All Projects → szw → Vim Maximizer

szw / Vim Maximizer

Maximizes and restores the current window in Vim.

Labels

Projects that are alternatives of or similar to Vim Maximizer

Vim Sneak
The missing motion for Vim 👟
Stars: ✭ 2,467 (+1021.36%)
Mutual labels:  viml
8cc.vim
C Compiler written in Vim script
Stars: ✭ 205 (-6.82%)
Mutual labels:  viml
Csapprox
Make gvim-only colorschemes work transparently in terminal vim
Stars: ✭ 215 (-2.27%)
Mutual labels:  viml
Vimwiki
Personal Wiki for Vim
Stars: ✭ 193 (-12.27%)
Mutual labels:  viml
Vimfiles
My Vim configuration
Stars: ✭ 201 (-8.64%)
Mutual labels:  viml
Cocoa.vim
Vim plugin for Cocoa/Objective-C development. No longer actively developed.
Stars: ✭ 205 (-6.82%)
Mutual labels:  viml
Textobj Word Column.vim
Adds text-objects for word-based columns in Vim.
Stars: ✭ 189 (-14.09%)
Mutual labels:  viml
Autocomplpop
Automatically opens popup menu for completions
Stars: ✭ 219 (-0.45%)
Mutual labels:  viml
Vim Go
Go development plugin for Vim
Stars: ✭ 14,085 (+6302.27%)
Mutual labels:  viml
Goldenview.vim
Always have a nice view for vim split windows!
Stars: ✭ 214 (-2.73%)
Mutual labels:  viml
Clojurewest2012 Slides
Slides from Clojure/West 2012
Stars: ✭ 196 (-10.91%)
Mutual labels:  viml
Vifm.vim
Vim plugin that allows use of vifm as a file picker
Stars: ✭ 197 (-10.45%)
Mutual labels:  viml
Vim Kalisi
The colorscheme with neovim in mind
Stars: ✭ 207 (-5.91%)
Mutual labels:  viml
Dotfiles
config files for zsh, bash, completions, gem, git, irb, rails
Stars: ✭ 2,206 (+902.73%)
Mutual labels:  viml
Fuzzyfinder textmate
A vim script that extends the fuzzyfinder plugin to support TextMate style file searches (e.g. cmd-T) (Unmaintained now, see http://weblog.jamisbuck.org/2009/1/28/the-future-of-fuzzyfinder-textmate)
Stars: ✭ 216 (-1.82%)
Mutual labels:  viml
Dot Vimrc
Maple's vim config files
Stars: ✭ 2,192 (+896.36%)
Mutual labels:  viml
Vim Distinguished
A dark vim color scheme for 256-color terminals.
Stars: ✭ 205 (-6.82%)
Mutual labels:  viml
Sachet
Handcraft your development environment
Stars: ✭ 221 (+0.45%)
Mutual labels:  viml
Phpcomplete Extended
A fast, extensible, context aware autocomplete plugin for PHP composer projects with code inspection features.
Stars: ✭ 218 (-0.91%)
Mutual labels:  viml
Vim Auto Save
Automatically save changes to disk
Stars: ✭ 213 (-3.18%)
Mutual labels:  viml

vim-maximizer

Maximizes and restores the current window in Vim.

Installation

Place in ~/.vim/plugin/maximizer.vim or in case of Pathogen:

cd ~/.vim/bundle
git clone https://github.com/szw/vim-maximizer.git

Please, don't forget to star the repository if you like (and use) the plugin. This will let me know how many users it has and then how to proceed with further development :).

About

Maximizer lets you maximize split windows and restore them automatically. It is very useful if you like to have many split windows per tab. And also, if the text you are working with does not ...subscribe to the ridiculous Church of 80-character Lines.... It means, while working with Ruby on Rails code. ;) Or just with lengthy HTML files.

Usage

Maximizer has only one command:

:MaximizerToggle

Also the plugin can define some default mappings if the user wants to. By default it maps to <F3> in normal, insert, and visual modes. See Configuration to get some examples.

When the current window is not in maximized state, Vim-Maximizer saves dimensions and positions of all windows in the current tab, and then it performs maximization of the active window. The second time the command is invoked, Maximizer restores all windows to the previously saved positions.

The toggle command can be invoked with a bang (!):

:MaximizerToggle!

The bang version forces the restoration of previously saved state (if any). It can be used in case you did some changes in the maximized state layout and the current window is not maximized anymore. Despite that, the bang version force restoration anyway. Notice, the bang version can be set as the default one in your mappings.

Configuration -------------

Maximizer is extremely handy with command mappings. By default it uses <F3> like here:

nnoremap <silent><F3> :MaximizerToggle<CR>
vnoremap <silent><F3> :MaximizerToggle<CR>gv
inoremap <silent><F3> <C-o>:MaximizerToggle<CR>

With these mappings you can hit <F3> any time, not only in normal mode. Other handy situations may include typing some text while you don't fit the current split window or selecting some long lines in the visual mode. Just try it yourself.

Maximizer respects minimal allowed window size, both vertically and horizontally. By default the minimal window height and width are set to 1. You can change those values by tweaking 'winminheight' ('wmh') and 'winminwidth' ('wmw') settings in your .vimrc.

Here are some plugin options:

  • maximizer_set_default_mapping

    Whether Maximizer should set default mappings or not:

      let g:maximizer_set_default_mapping = 1
    
  • maximizer_set_mapping_with_bang

    Whether Maximizer should set default mappings with banged version or not:

      let g:maximizer_set_mapping_with_bang = 0
    
  • maximizer_default_mapping_key

    The default mappings key:

      let g:maximizer_default_mapping_key = '<F3>'
    

Author and License

Maximizer was written by Szymon Wrozynski and Contributors. It is licensed under the same terms as Vim itself.

Copyright © 2012-2013 Szymon Wrozynski. See :help license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].