-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·84 lines (83 loc) · 2.16 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
set number
set relativenumber
set nocompatible
syntax on
set encoding=utf-8
set hlsearch
set incsearch
set et
set smartindent
set statusline=2
" Changing the default location of swap file creation in VIM
set directory=$HOME/.vim/swapfiles//
"set foldmethod=
"set guicursor
set colorcolumn=120
filetype plugin on
filetype indent on
" Tab navigation like Firefox.
nnoremap <C-t> :tabnext<CR>
nnoremap <A-F1> 1gt
nnoremap <A-F2> 2gt
nnoremap <A-F3> 3gt
nnoremap <A-F4> 4gt
nnoremap <A-F5> 5gt
nnoremap <A-F6> 6gt
nnoremap <A-F7> 7gt
nnoremap <A-F8> 8gt
nnoremap <A-F9> 9gt
nnoremap <A-F0> 10gt
nmap <F8> :NERDTreeToggle<CR>
nmap <F2> :GoRun<CR>
au BufRead,BufNewFile Jenkinsfile set filetype=groovy
au BufRead,BufNewFile *.hbs set filetype=html
au BufRead,BufRead *.md set spell
call plug#begin('~/.vim/plugged')
Plug 'vim-syntastic/syntastic'
Plug 'Valloric/MatchTagAlways'
Plug 'scrooloose/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'fatih/vim-go'
Plug 'andrewstuart/vim-kubernetes'
"Plug 'sebdah/vim-delve'
"Plug 'majutsushi/tagbar' # for a list of variables, requires some external
"dependencies
"Plug 'mileszs/ack.vim' for grep-ing things in vim
Plug 'kien/ctrlp.vim'
Plug 'vim-airline/vim-airline'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'chriskempson/base16-vim'
Plug 'valloric/youcompleteme'
Plug 'jdsimcoe/abstract.vim'
call plug#end()
set background=dark
colorscheme dracula
let g:one_allow_italics = 1
let g:airline#extensions#tabline#enabled = 1
" Python specific
au BufNewFile,BufRead "*.py"
\ set tabstop=4
\ set softtabstop=4
\ set shiftwidth=4
\ set textwidth=79
\ set expandtab
\ set autoindent
\ set fileformat=unix
" Web specific
au BufNewFile,BufRead "*.js", "*.html", "*.css"
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
au BufNewFile,BufRead "*.yml", "*.yaml"
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
"python with virtualenv support
"python <<EOF
"import os
"import sys
"if 'VIRTUAL_ENV' in os.environ:
" project_base_dir = os.environ['VIRTUAL_ENV']
" activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
" execfile(activate_this, dict(__file__=activate_this))
"EOF