Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Created August 17, 2013 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save supermomonga/6258284 to your computer and use it in GitHub Desktop.
Save supermomonga/6258284 to your computer and use it in GitHub Desktop.
nnoremap <silent> <Plug>(quit) :<C-u>q<CR>
function! s:my_temporary_window_init(config, context)
nmap <buffer> <C-[> <Plug>(quit)
" echo a:config
" echo a:context
endfunction
let g:automatic_enable_autocmd_Futures = {
\ 'BufWinEnterFuture' : 1
\ }
let g:automatic_default_match_config = {
\ 'is_open_other_window' : 1,
\ }
let g:automatic_default_set_config = {
\ 'height' : '60%',
\ 'move' : 'bottom',
\ 'apply' : function('s:my_temporary_window_init')
\ }
" \ { 'match' : { 'filetype' : 'unite', 'autocmds' : [ 'BufWinEnterFuture' ] } },
" \ { 'match' : { 'bufname' : '^.unite' } },
let g:automatic_config = [
\ { 'match' : { 'buftype' : 'help' } },
\ { 'match' : { 'bufname' : '^.vimshell' } },
\ { 'match' : { 'filetype' : 'unite', 'autocmds' : [ 'BufWinEnterFuture' ] } },
\ {
\ 'match' : {
\ 'filetype' : '\v^ref-.+',
\ 'autocmds' : [ 'FileType' ]
\ }
\ },
\ {
\ 'match' : {
\ 'bufname' : '\[quickrun output\]',
\ },
\ 'set' : {
\ 'height' : 8,
\ }
\ },
\ {
\ 'match' : {
\ 'autocmds' : [ 'CmdwinEnter' ]
\ },
\ 'set' : {
\ 'is_close_focus_out' : 1,
\ 'unsettings' : [ 'move', 'resize' ]
\ },
\ }
\ ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment