forked from michaeljsmalley/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.local
83 lines (65 loc) · 2 KB
/
vimrc.local
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
" no backups "
set wrap
set nobackup
set nowritebackup
set mouse-=a
set background=dark
set t_Co=256
" colorscheme osx_like
colorscheme Tomorrow-Night-Bright
" Autoindent with two spaces, always expand tabs
set tabstop=2
set shiftwidth=2
set expandtab
set softtabstop=2
set nospell
" set colorcolumn=80
" specifically for java 4 tab spaces (for Grisha)
filetype on
autocmd BufNewFile,BufRead *.java set filetype=java
autocmd BufNewFile,BufRead *.php set filetype=php
autocmd FileType java setlocal shiftwidth=4 tabstop=4 softtabstop=4
" autocmd FileType php setlocal shiftwidth=4 tabstop=4 softtabstop=4
let g:neocomplcache_disable_auto_complete=1
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : <SID>check_back_space() ? "\<TAB>" : "\<C-x>\<C-u>"
function! s:check_back_space()"{{{
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction"}}}"
" don't display indent guides on startup ( enable with ,ig )
let g:indent_guides_enable_on_vim_startup = 0"
" Ignore case in searches
set ignorecase
" Remove trailing spaces
" function TrimWhiteSpace()
" %s/\*$//
" ''
" :endfunction
" set list listchars=tab:»·,trail:·
" map <leader>= :call TrimWhiteSpace()<CR>
" map! <leader>= :call TrimWhiteSpace()<CR>
" autocmd BufWritePre * :%s/\s\+$//e
" turn off folding
set nofoldenable
let g:DisableAutoPHPFolding=1
let g:spf13_keep_trailing_whitespace=1
let g:tmux_navigator_save_on_switch = 1
set guifont=Inconsolata\ for\ Powerline\ Medium\ 16
" USS dev sync
" autocmd BufWritePost * execute "!/Users/bs/Documents/Telus/tc-in-box/data/source/uss-local-environment/plugins/vim-plugin/uss-sync.py %:p /Users/bs/Documents/Telus/tc-in-box/data/source/uss-local-environment/ > /dev/null 2>&1"
inoremap <Esc>Oq 1
inoremap <Esc>Or 2
inoremap <Esc>Os 3
inoremap <Esc>Ot 4
inoremap <Esc>Ou 5
inoremap <Esc>Ov 6
inoremap <Esc>Ow 7
inoremap <Esc>Ox 8
inoremap <Esc>Oy 9
inoremap <Esc>Op 0
inoremap <Esc>On .
inoremap <Esc>OQ /
inoremap <Esc>OR *
inoremap <Esc>Ol +
inoremap <Esc>OS -
inoremap <Esc>OM <Enter>