set fileformat unix set encoding utf-8 set nu set et let python_highli

 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
set fileformat=unix
set encoding=utf-8
set nu
set et
let python_highlight_all=1
syntax on
filetype indent on
"------slav0nic------
set textwidth=100
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set autoindent
set nowrap
colors slate
" Make the tab key useful {{{
function TabWrapp()
if strpart(getline('.'), 0, col('.')-1) =~ '^\s*$'
return "\<Tab>"
elseif exists('&omnifunc') && &omnifunc != ''
return "\<C-X>\<C-N>"
else
return "\<C-N>"
endif
endfunction
imap <Tab> <C-R>=TabWrapp()<CR>
imap <C-cr> <C-x><C-o><C-p>
nmap <f5> :w\|!python %<cr>
set nobackup
set nowritebackup
set noswapfile