-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.local
30 lines (26 loc) · 905 Bytes
/
.vimrc.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
" A working setup to develop minicomp.
set number
set hlsearch
syntax on
filetype on
filetype plugin indent on
" Python
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4
autocmd Filetype python setlocal listchars=tab:▸\.,trail:€
autocmd Filetype python setlocal list autoindent smartindent
au BufEnter,BufRead *.py setlocal smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with
function Set_up_env()
" sets terminal to be 63 symbols wide and as high as the
" current window:
set termwinsize=0x63
" opens terminal with the size above in a vertical split:
" splits to bo[ttomright]
vert bo ter
:exe "normal \<C-w>h"
:cd minicomp
:e main.py
" TODO: filetype does not autodetect for some reason, fix this:
:set filetype=python
endfunction
" An autocommand to run when entering Vim. This one just calls env setup.
autocmd VimEnter * call Set_up_env()