diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index 16966a7..6141b04 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -12,6 +12,21 @@ def f1(): t3 = t2 // 3 vim.command('vertical resize %d' % t3) vim.current.window = t1 + +def f2(): + context = { + k : vim.options['splitright'] + for k in ['splitright'] + } + try: + current_window = vim.current.window + vim.options['splitright'] = True + vim.command('vnew') + vim.command('r! tmux show-buffer') + vim.current.window = current_window + finally: + for k, v in context.items(): + vim.options[k] = v EOF filetype plugin indent on @@ -31,6 +46,10 @@ map w map r :source ~/.vimrc:echo 'reloaded' map m :py3 f1() map cq :cq +map f2 :py3 f2() +map qy :q! +map cq :cq1 +map dq :cq2 map i1 :set sw=4 sts=4 ts=4 et ai ci:retab map i2 :set sw=2 sts=2 ts=2 et ai ci:retab set foldmethod=indent