forked from orion/orion.vim.config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.vim
More file actions
53 lines (42 loc) · 1.81 KB
/
config.vim
File metadata and controls
53 lines (42 loc) · 1.81 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
52
53
filetype off
source ~/.vim/packages.vim " Package management courtesy of Vundler
filetype plugin indent on
" Core configuration
set hidden
let mapleader = ","
syntax enable
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js,*.tmpl,*.html,*.css,*.json,*.rb set tabstop=8
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js,*.tmpl,*.html,*.css,*.json set shiftwidth=4
" (The Ruby kids like 2-space indent)
au BufRead,BufNewFile *.rb set shiftwidth=2
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js,*.tmpl,*.html,*.css,*.json,*.rb set expandtab
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js,*.tmpl,*.html,*.css,*.json,*.rb set smarttab
au BufRead,BufNewFile *.tmpl,*.html set filetype=django
highlight BadWhitespace ctermbg=red guibg=red
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js,*.tmpl,*.html,*.css,*.json,*.rb,*.rst match BadWhitespace /^\t\+/
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js,*.tmpl,*.html,*.css,*.json,*.rb,*.rst match BadWhitespace /\s\+$/
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js,*.css,*.rb,*.rst set textwidth=79
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js,*.css,*.rb,*.rst set wrap
" Tab completion more like bash
set wildmode=longest:full
set wildmenu
set wildignore+=*.pyc
" NERDTree configuration
let NERDTreeIgnore=['\.pyc$', '\.rbc$', '\~$', '\.swp$']
map <Leader>n :NERDTreeToggle<CR>
" Supertab configuration
au FileType python set omnifunc=pythoncomplete#Complete
let g:SuperTabDefaultCompletionType = "context"
" UltiSnips configuration
set runtimepath+=~/.vim/bundle/UltiSnips
let g:UltiSnipsExpandTrigger='<tab>'
let g:UltiSnipsJumpForwardTrigger='<tab>'
let g:UltiSnipsJumpBackwardTrigger='<s-tab>'
" Ctrlp configuration
let g:ctrlp_map = '<Leader>ff'
map <Leader>fb :CtrlPBuffer<CR>
map <Leader>fm :CtrlPMRU<CR>
" Ctags/cscope config
set tags=./tags;
cscope add ~/.vim/cscope.out
source ~/.vim/commands.vim