syntax on set ignorecase set incsearch set tabstop set autoindent set

 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
syntax on
set ignorecase
set incsearch
set tabstop=4
set autoindent
set number
set nowrap
set nocompatible
set ruler
"Run in the Python interpreter
function! Python_Eval_VSplit() range
let src = tempname()
let dst = tempname()
execute ": " . a:firstline . "," . a:lastline . "w " . src
execute ":!python " . src . " > " . dst
execute ":pedit! " . dst
endfunction
au FileType python vmap <F7> :call Python_Eval_VSplit()<cr>
au FileType python map <F5> :!python %<cr>
filetype plugin indent on
autocmd FileType xhtml,html setlocal tabstop=2 shiftwidth=2 expandtab
autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab omnifunc=pythoncomplete#Complete
"autocmd FileType python set complete+=k/home/xa4a/.vim/pydiction-0.5/pydiction isk+=.,(
autocmd FileType python source ~/.vim/after/ftplugin/python/ipy.vim
set complete=""
set complete+=.
set complete+=k
set complete+=b
set complete+=t
set completeopt-=preview
set completeopt+=longest
setlocal keywordprg=pydoc
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
au FileType python source /home/xa4a/.vim/scripts/pycheck.vim
au FileType python source /home/xa4a/.vim/scripts/python_import.vim
source /home/xa4a/.vim/scripts/svn.vim
nmap <C-n> :cn<CR>
imap <C-n> <Esc>:cn<CR>
nmap <F9> <Plug>ToggleProject
source /home/xa4a/.vim/plugin/project.vim
au FileType python source /home/xa4a/.vim/scripts/python.vim
"au FileType python source /home/xa4a/.vim/scripts/tabcompl.vim
set t_Co=256
colorscheme 256_adaryn
hi Normal ctermbg=17
set cursorline
"22 for nice green line
hi CursorLine ctermbg=235 cterm=none
hi Pmenu ctermbg=239
nmap <F2> :w<cr>
map <C-s> <Esc>:w<cr
map <F8> <Es>:TlistToggle<cr>
iabbrev utf # -*- coding: utf-8 -*-
" Make the tab key useful {{{
function TabWrapper()
if strpart(getline('.'), 0, col('.')-1) =~ '^\s*$'
return "\<Tab>"
elseif exists('&omnifunc') && &omnifunc != ''
"return "\<C-X>\<C-N>"
return "\<C-X>\<C-o>\<C-p>"
else
return "\<C-N>"
endif
endfunction
imap <Tab> <C-R>=TabWrapper()<CR>
imap <S-Tab> <C-X><C-P>
imap <C-Tab> <C-X><C-O>
let ScreenShot = {'Icon':0, 'Credits':0, 'Title':0}
python << EOF
import os
import sys
import vim
for p in sys.path:
if os.path.isdir(p):
vim.command(r"set path+=%s" % (p.replace(" ", r"\ ")))
EOF
set tags+=$HOME/.vim/tags/python.ctags