Repository navigation
Expand file tree
/
Copy pathpython.vim
More file actions
52 lines (42 loc) · 1.92 KB
/
Copy pathpython.vim
File metadata and controls
52 lines (42 loc) · 1.92 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
" ******************************************************************************
" vim configuratie voor python
" ******************************************************************************
set number " regelnummering aan
syntax on " set syntax on
set ic " case insensitive search
set hls " highlight search
set ruler " toon regelnummer
set scrolloff=10 " toon altijd boven, onder regels
set cursorline " toon regelcursor
set textwidth=119 " lines longer than 79 columns will be broken
set colorcolumn=110,129 " kleur deze kolommen
" veel tabinstellingen, ze lijken niet allemaal nodig, werkt nu goed in python scripts
" set tabstop=4 " a hard TAB displays as 4 columns
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
set expandtab " insert spaces when hitting TABs
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE
set shiftround " round indent to multiple of 'shiftwidth'
set autoindent " align the new line indent with the previous line
filetype plugin indent on " enable loading indent file for
set showmatch " show the matching part of the pair for [] {} and ()
" python keys
nnoremap <silent> <F5> :!clear;python %<CR>
nnoremap <silent> <F9> :!clear;idle %<CR>
" nnoremap <silent> <F9> :!clear;python -m pdb %<CR>
" 'za' to open and close a fold
set foldmethod=indent
set foldlevel=1
"set foldignore=#
"function MarkdownFoldsEigen()
" let thisline = getline(v:lnum)
" if match(thisline, '^\s*###') >= 0
" return ">2"
" elseif match(thisline, '^\s*##') >= 0
" return ">1"
" else
" return "="
" endif
"endfunction
"set foldmethod=expr
"set foldexpr=MarkdownFoldsEigen()
" eof