-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
112 lines (88 loc) · 2.67 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
set nocp
syntax on
set tabstop=4 shiftwidth=4 softtabstop=4 expandtab
autocmd FileType php cnoreabbrev <buffer> w w<bar>!php -l % \|\| sleep 2<CR>
source ~/.vim/php-doc.vim
inoremap <C-P> <ESC>:call PhpDocSingle()<CR>i
nnoremap <C-P> :call PhpDocSingle()<CR>
vnoremap <C-P> :call PhpDocRange()<CR>
" map ctrl+w to ctrl+e so that disabled ctrl+w (jupyter terminal vs chrome)
" isn't totally infuriating
nnoremap <C-e> <C-w>
" Tab mappings
map Oc :tabnext<CR>
map Od :tabprevious<CR>
map ^[O5C :tabnext<CR>
map ^[O5D :tabprevious<CR>
" To work on OSX terminal
map [5D :tabprevious<CR>
map [5C :tabnext<CR>
map [1;5C :tabnext<CR>
map [1;5D :tabprevious<CR>
"map ^[[C :tabnext<CR>
"map ^[[D :tabprevious<CR>
map ^[[1;5C :tabnext<CR>
map ^[[1;5D :tabprevious<CR>
map ^[[D :tabprevious<CR>
map ^[[C :tabnext<CR>
source ~/.vim/NERD_tree.vim
source ~/.vim/taglist.vim
source ~/.vim/mru.vim
source ~/.vim/tabmerge.vim
source ~/.vim/plugin/supertab.vim
source ~/.vim/plugin/ctags.vim
let g:ctags_statusline=1
let g:ctags_title=1
let generate_tags=1
set popt=portrait:n
au BufNewFile,BufRead *.js set tabstop=2 shiftwidth=2 softtabstop=2 expandtab
au BufNewFile,BufRead *.ts set tabstop=2 shiftwidth=2 softtabstop=2 expandtab
au BufNewFile,BufRead *.rst set wrap
au BufNewFile,BufRead *.rst set linebreak
au BufNewFile,BufRead *.rst set nolist
au BufNewFile,BufRead *.rst set textwidth=0
au BufNewFile,BufRead *.rst set wrapmargin=0
au BufNewFile,BufRead *.ejs set filetype=html
au BufNewFile,BufRead *.phtml set filetype=php
au BufNewFile,BufRead *.md set filetype=markdown
au BufNewFile,BufRead *Todo.txt set filetype=todo
let PHP_autoformatcomment = 0
let g:netrw_keepdir=0
let g:netrw_browse_split=2
filetype plugin indent on
set smartindent
set backspace=indent,eol,start
set foldmethod=marker
set ruler
set history=200
" Stop no-indent on python comment lines!
inoremap # X#
let Tlist_Ctags_Cmd = '/usr/bin/ctags'
let g:ctags_path='/usr/bin/ctags'
filetype indent on
filetype on
let Tlist_WinWidth = 45
cnoreabbrev vimshell ConqueTerm bash
highlight SpellBad term=reverse ctermbg=7
set tabpagemax=500
cnoremap <C-k> <C-\>estrpart(getcmdline(), 0, getcmdpos()-1)<CR>
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
execute pathogen#infect()
" Home/End for Mac
imap <C-a> <Home>
imap <C-e> <End>
syntax enable
filetype plugin on
" set number
let g:go_disable_autoinstall = 0
" colorscheme molokai
" autocmd BufWritePre *.go :GoBuild
" Build/Test on save.
augroup auto_go
autocmd!
autocmd BufWritePost *.go :GoBuild
augroup end
au FileType go nmap <Leader>ds <Plug>(go-def-split)
au FileType go nmap <Leader>dv <Plug>(go-def-vertical)
au FileType go nmap <Leader>dt <Plug>(go-def-tab)