set nocompatible 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 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 set number set noswapfile set wrap set textwidth=100 set colorcolumn=100 set backspace=indent,eol,start colorscheme morning syntax on set hls set term=xterm-256color map w map wo :py3 print('fuck') map z :wqa map m :py3 f1() map r :redraw! map cq :cq map f2 :py3 f2() map f3 :source ~/.vimrc:echo 'reloaded' map f4 :set termguicolors 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 map i3 :set t_Co=0 so=999 map i4 :set t_Co=256 so=0 set foldmethod=indent set nofoldenable map e :e # set mouse=a au FileType netrw nmap