From 1c4489ef796a756b7d487385c5633ef9348319ae Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Fri, 23 Sep 2022 15:31:15 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.vimrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index c133078..16966a7 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -3,6 +3,17 @@ filetype off set viminfo+=/1000000,:1000000 + +py3 << EOF +def f1(): + t1 = vim.current.window + t2 = t1.width + vim.command('vnew') + t3 = t2 // 3 + vim.command('vertical resize %d' % t3) + vim.current.window = t1 +EOF + filetype plugin indent on set number @@ -17,5 +28,9 @@ syntax on set hls map w +map r :source ~/.vimrc:echo 'reloaded' +map m :py3 f1() +map cq :cq 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