-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
74 lines (61 loc) · 1.41 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
set runtimepath+=~/.vim
call pathogen#infect()
call pathogen#helptags()
syntax on
filetype on
filetype indent plugin on
set number
set modeline
set background=dark
set wildmode=longest,list,full
set wildmenu
set splitbelow
set splitright
"pythonic spacing"
set tabstop=8
set expandtab
set shiftwidth=4
set softtabstop=4
set autoindent
"folding"
set foldmethod=indent
set foldnestmax=2
nnoremap f za
nnoremap F zO
:hi Folded ctermfg=3
"supertab python completion"
au FileType python set omnifunc=pythoncomplete#Complete
let g:SuperTabDefaultCompletionType = "context"
"key mappings"
inoremap jk <ESC>
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-h> <C-w>h
map <C-l> <C-w>l
map <C-b> <C-w>s
map <C-a> <C-w>v
nmap <space> zz
nmap n nzz
nmap N Nzz
"resize buffer hotkeys"
nnoremap <C-right> :vertical resize -5<CR>
nnoremap <C-left> :vertical resize +5<CR>
nnoremap <C-up> :resize +5<CR>
nnoremap <C-down> :resize -5<CR>
"plugin mappings"
nnoremap <F5> :GundoToggle<CR>
map <C-t> :NERDTreeToggle<CR>
map <F6> :ConqueTerm bash<CR>
"python syntax enable"
let python_version_2 = 1
"enable python syntax for .ipy files"
au BufRead,BufNewFile *.ipy set filetype=python
"conque term settings"
let g:ConqueTerm_PyVersion = 2
"auto change directory for each local buffer"
autocmd BufEnter * silent! lcd %:p:h
"cygwin cursor settings (must remove if not using cygwin)"
let &t_ti.="\e[1 q"
let &t_SI.="\e[5 q"
let &t_EI.="\e[1 q"
let &t_te.="\e[0 q"