set nocompatible filetype off set viminfo+=/1000000,:1000000 if has('python3') source $HOME/.py3.vimrc endif filetype plugin indent on set number set noswapfile set wrap set textwidth=100 set colorcolumn=100 set backspace=indent,eol,start set mouse=a au FileType netrw nmap au FocusLost * silent! wa set term=xterm-256color syntax on set hls colorscheme morning hi MatchParen guifg=white guibg=black gui=NONE ctermfg=1 ctermbg=0 function! MakeSession() let b:sessiondir = '.vim/' if (filewritable(b:sessiondir) != 2) exe 'silent !mkdir -p ' b:sessiondir redraw! endif let b:filename = b:sessiondir . '/session.vim' exe "mksession! " . b:filename endfunction function! LoadSession() let b:sessiondir = '.vim/' let b:sessionfile = b:sessiondir . "/session.vim" if (filereadable(b:sessionfile)) exe 'source ' b:sessionfile else echo "No session loaded." endif endfunction map w map wo :py3 print('fuck') map z :wqa map m :py3 f1() map r :redraw! map s :call MakeSession() map l :call LoadSession() 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 map i5 :set sw=2 sts=2 ts=2 noet ai ci set foldmethod=indent set nofoldenable map e :e #