All Projects → wesQ3 → Vim Windowswap

wesQ3 / Vim Windowswap

Swap your windows without ruining your layout

Projects that are alternatives of or similar to Vim Windowswap

Vim Godebug
Go debugging for Vim
Stars: ✭ 437 (+7.9%)
Mutual labels:  editor-plugin, vim-plugin
Barbar.nvim
A neovim tabline plugin.
Stars: ✭ 359 (-11.36%)
Mutual labels:  vim-plugin
Vimtex
VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.
Stars: ✭ 3,609 (+791.11%)
Mutual labels:  vim-plugin
Pear Tree
A Vim auto-pair plugin that supports multi-character pairs, intelligent matching, and more
Stars: ✭ 327 (-19.26%)
Mutual labels:  vim-plugin
Vim Buffet
IDE-like Vim tabline
Stars: ✭ 304 (-24.94%)
Mutual labels:  vim-plugin
Indentline
A vim plugin to display the indention levels with thin vertical lines
Stars: ✭ 3,681 (+808.89%)
Mutual labels:  vim-plugin
Phasereditor
A friendly IDE to develop HTML5 games based on the Phaser framework.
Stars: ✭ 297 (-26.67%)
Mutual labels:  editor-plugin
Lens.vim
A Vim Automatic Window Resizing Plugin
Stars: ✭ 381 (-5.93%)
Mutual labels:  vim-plugin
Spacevim
Spacemacs for vim
Stars: ✭ 366 (-9.63%)
Mutual labels:  vim-plugin
Vim Crystal
Vim filetype and tools support for Crystal language.
Stars: ✭ 326 (-19.51%)
Mutual labels:  vim-plugin
Rigel
🌌 Colorscheme for vim, terminal, vscode and slack - based on the star Rigel ✨.
Stars: ✭ 324 (-20%)
Mutual labels:  vim-plugin
Vim Interestingwords
☀️ A vim plugin for highlighting and navigating through different words in a buffer.
Stars: ✭ 305 (-24.69%)
Mutual labels:  vim-plugin
Vim Iced
Clojure Interactive Development Environment for Vim8/Neovim
Stars: ✭ 343 (-15.31%)
Mutual labels:  vim-plugin
Dashboard Nvim
vim dashboard
Stars: ✭ 294 (-27.41%)
Mutual labels:  vim-plugin
Sideways.vim
A Vim plugin to move function arguments (and other delimited-by-something items) left and right.
Stars: ✭ 370 (-8.64%)
Mutual labels:  vim-plugin
Spaceduck
🚀 🦆 An intergalactic space theme for Vim, Terminal, and more!
Stars: ✭ 177 (-56.3%)
Mutual labels:  vim-plugin
Zeavim.vim
Zeal for Vim
Stars: ✭ 320 (-20.99%)
Mutual labels:  vim-plugin
Vim Template
Simple templates plugin for Vim
Stars: ✭ 328 (-19.01%)
Mutual labels:  vim-plugin
Vim Cursorword
Underlines the word under the cursor
Stars: ✭ 401 (-0.99%)
Mutual labels:  vim-plugin
Vim Plugins
Vim plug-ins which offer support for various programming languages.
Stars: ✭ 381 (-5.93%)
Mutual labels:  vim-plugin

WindowSwap.vim

Swap windows without ruining your layout!

img

Vim's window movement commands work fine when you only have a few splits open or want to push a window over to an edge. But what happens when you have a complicated layout and you just want to swap a couple arbitrary windows?

When I was just getting started with Vim, I asked about this problem on StackOverflow and I've received a handful of responses over the years. Almost a year after after I asked, sgriffin came through with a solution. Now that I'm a little less of a newbie, I've put his idea in a handy plugin.

HowTo

  1. Navigate to the window you'd like to move
  2. Press <leader>ww
  3. Navigate to the window you'd like to swap with
  4. Press <leader>ww again

Key Bindings

Defaults:

  • Yank and paste a window with <leader>ww (for me that's ,ww)

Deprecated defaults:

  • [y]ank a [w]indow with <leader>yw
  • [p]aste that [w]indow with <leader>pw.

These mappings are deprecated. See below for instructions on how to keep them working once they are removed from the default list.

Customize the commands to your liking by dropping this in your .vimrc and changing the mappings:

let g:windowswap_map_keys = 0 "prevent default bindings
nnoremap <silent> <leader>yw :call WindowSwap#MarkWindowSwap()<CR>
nnoremap <silent> <leader>pw :call WindowSwap#DoWindowSwap()<CR>
nnoremap <silent> <leader>ww :call WindowSwap#EasyWindowSwap()<CR>

Installation

This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:

  • Vundle - Plugin 'wesQ3/vim-windowswap'
  • Pathogen - git clone https://github.com/wesQ3/vim-windowswap ~/.vim/bundle/vim-windowswap
  • NeoBundle - NeoBundle 'wesQ3/vim-windowswap'
  • VAM - call vam#ActivateAddons([ 'wesQ3/vim-windowswap' ])
  • manual - copy all of the files into your ~/.vim directory
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].