-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
99 lines (81 loc) · 2.56 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
set nocompatible " be iMproved, required
set nu
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
set nu rnu
filetype off
filetype plugin indent on
filetype plugin on
syntax on
syntax enable
let mapleader = "<"
" Automatic executions while saving, opening, quiting file
autocmd BufWritePre * %s/\s\+$//e
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Installed plugins
if v:version > 704
Plugin 'Valloric/YouCompleteMe'
endif
Plugin 'jnwhiteh/vim-golang'
Plugin 'fatih/vim-go'
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
Plugin 'davidhalter/jedi-vim'
Plugin 'scrooloose/nerdtree'
Plugin 'puppetlabs/puppet-syntax-vim'
Plugin 'tpope/vim-fugitive'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'wesleyche/srcexpl'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'wkentaro-archive/conque.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'dracula/vim'
Plugin 'flazz/vim-colorschemes'
" Plugin 'christoomey/vim-tmux-navigator'
" All of your Plugins must be added before the following line
call vundle#end() " required
colorscheme gruvbox
if has('gui_running')
set background=light
else
set background=dark
endif
let g:airline#extensions#tabline#enabled = 1
let g:airline_detect_modified = 1
let g:airline_theme = 'solarized'
nmap <silent> <Tab> :bnext<CR>
nmap <silent> <S-Tab> :bprevious<CR>
nmap <silent> <C-X> :bdelete<CR>
" ==== CONQUETERM
let g:ConqueTerm_PyVersion = 3
let g:ConqueTerm_FastMode = 1
let g:ConqueTerm_CWInsert = 1
" let pyshell = conque_term#open('ipython', ['split', 'resize 20'], 0)
command IPython ConqueTermSplit ipython
command Bash ConqueTermSplit bash
command Python ConqueTermSplit python
" Mapped keys to send code lines to Conque-Shell
imap <silent> <leader>j <Esc>Vy<C-w>jp
nmap <silent> <leader>j Vy<C-w>jp
vmap <silent> <leader>j y<C-w>jp
" ==== NERDTREE
let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store']
let NERDTreeShowHidden=1
let g:NERDTreeWinPos="left"
let g:NERDTreeDirArrows=0
let g:NERDTreeQuitOnOpen = 1
let g:NERDTreeWinSize = 20
" autocmd VimEnter * NERDTree
map <C-t> :NERDTreeToggle<CR>
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
" MISC
au BufNewFile,BufRead *.pp set ft=puppet