-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.vimrc
88 lines (75 loc) · 1.61 KB
/
.vimrc
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
set ruler
set nonu
set ff=unix
set modeline
"from sontek
"loads plugins
filetype off
call pathogen#incubate()
"call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
syntax on
filetype on
filetype plugin indent on
"
"code folding
set foldmethod=indent
set foldlevel=1
set foldnestmax=10
set nofoldenable
"Window SPlits
"Vertical Split : Ctrl+w + v
"Horizontal Split: Ctrl+w + s
"Close current windows: Ctrl+w + q
" PyFlake
let g:pyflakes_use_quickfix = 0
" maps moving window directly avoid ctrl+w+key
map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-l> <c-w>l
map <c-h> <c-w>h
" TODOS
map <leader>td <Plug>Tasklist
" PEP8
let g:pep8_map='<leader>8'
" Revision History
map <leader>g :GundoToggle<CR>
"tab completion
au FileType python set omnifunc=pythoncomplete#Complete
let g:SuperTabDefaultCompletionType = "context"
"pydoc menu
set completeopt=menuone,longest,preview
"rope stuff
map <leader>j :RopeGotoDefinition<CR>
map <leader>r :RopeRename<CR>
"Ack stuff
nmap <leader>a <Esc>:Ack!
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
map T :TaskList<CR>
map PP :TlistToggle<CR>
set expandtab
set textwidth=79
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
autocmd BufEnter * silent! lcd %:p:h
set clipboard=unnamed
set hidden
set viminfo='25,\"50,n~/.viminfo
set formatoptions-=tc
set backupskip=/tmp/*,/private/tmp/*
set smartcase
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END