About: Toggle gvim window size   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

F11: maximize/restore height Shift-F11: maximize/restore width Ctrl-F11: maximize/restore height and width function ToggleWindowSize(act) if a:act < 0 || a:act > 2 | return | endif let posX = getwinposx() let posY = getwinposy() let actTab = "XXX__X_XR__XX_X__RRRR__R" let idx = ((exists("g:twsWM") + exists("g:twsHM") * 2) * 3 + a:act) * 2 let actW = strpart(actTab, idx, 1) let actH = strpart(actTab, idx + 1, 1) " note. g:tws + [Width,Height,X,Y] + [Maximized,Saved] if actW == "X" let g:twsWS = &columns | let g:twsXS = posX set columns=999 let posX = getwinposx() let g:twsWM = &columns | let g:twsXM = posX elseif actW == "R" if g:twsWM == &columns let &columns = g:twsWS if g:twsXM == posX | let posX = g:twsXS | endif endif unlet g:twsWM g:twsWS g:twsXM g:twsXS endif if actH == "X" let g:

AttributesValues
rdfs:label
  • Toggle gvim window size
rdfs:comment
  • F11: maximize/restore height Shift-F11: maximize/restore width Ctrl-F11: maximize/restore height and width function ToggleWindowSize(act) if a:act < 0 || a:act > 2 | return | endif let posX = getwinposx() let posY = getwinposy() let actTab = "XXX__X_XR__XX_X__RRRR__R" let idx = ((exists("g:twsWM") + exists("g:twsHM") * 2) * 3 + a:act) * 2 let actW = strpart(actTab, idx, 1) let actH = strpart(actTab, idx + 1, 1) " note. g:tws + [Width,Height,X,Y] + [Maximized,Saved] if actW == "X" let g:twsWS = &columns | let g:twsXS = posX set columns=999 let posX = getwinposx() let g:twsWM = &columns | let g:twsXM = posX elseif actW == "R" if g:twsWM == &columns let &columns = g:twsWS if g:twsXM == posX | let posX = g:twsXS | endif endif unlet g:twsWM g:twsWS g:twsXM g:twsXS endif if actH == "X" let g:
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1109(xsd:integer)
Author
  • Jang Junyeong
Complexity
  • basic
Created
  • 2006-01-17(xsd:date)
ID
  • 1110(xsd:integer)
NEXT
  • 1111(xsd:integer)
Rating
  • 10(xsd:integer)
abstract
  • F11: maximize/restore height Shift-F11: maximize/restore width Ctrl-F11: maximize/restore height and width function ToggleWindowSize(act) if a:act < 0 || a:act > 2 | return | endif let posX = getwinposx() let posY = getwinposy() let actTab = "XXX__X_XR__XX_X__RRRR__R" let idx = ((exists("g:twsWM") + exists("g:twsHM") * 2) * 3 + a:act) * 2 let actW = strpart(actTab, idx, 1) let actH = strpart(actTab, idx + 1, 1) " note. g:tws + [Width,Height,X,Y] + [Maximized,Saved] if actW == "X" let g:twsWS = &columns | let g:twsXS = posX set columns=999 let posX = getwinposx() let g:twsWM = &columns | let g:twsXM = posX elseif actW == "R" if g:twsWM == &columns let &columns = g:twsWS if g:twsXM == posX | let posX = g:twsXS | endif endif unlet g:twsWM g:twsWS g:twsXM g:twsXS endif if actH == "X" let g:twsHS = &lines | let g:twsYS = posY set lines=999 let posY = getwinposy() let g:twsHM = &lines | let g:twsYM = posY elseif actH == "R" if g:twsHM == &lines let &lines = g:twsHS if g:twsYM == posY | let posY = g:twsYS | endif endif unlet g:twsHM g:twsHS g:twsYM g:twsYS endif execute "winpos " . posX . " " . posY endfunction nnoremap :call ToggleWindowSize(2) nnoremap :call ToggleWindowSize(1) nnoremap :call ToggleWindowSize(0) imap imap imap
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software