-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
96 lines (75 loc) · 2.06 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
set nocompatible
filetype off
" stuff was yanked from
" https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'christoomey/vim-tmux-navigator'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'jnurmine/Zenburn'
Plugin 'altercation/vim-colors-solarized'
Plugin 'vim-scripts/vim-auto-save'
Plugin 'tpope/vim-surround'
Plugin 'jiangmiao/auto-pairs', {'rtp': 'plugin/auto-pairs.vim'}
Plugin 'dart-lang/dart-vim-plugin'
Plugin 'airblade/vim-gitgutter'
Plugin 'Workiva/frugal', {'rtp': 'contrib/frugal.vim'}
Plugin 'aklt/plantuml-syntax'
Plugin 'akhaku/vim-java-unused-imports'
call vundle#end()
filetype plugin indent on
syntax on
set background=dark
colorscheme solarized
" split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" backspace stops working because it's colliding with <C-H> here
set backspace=indent,eol,start
" get access to system clipboard
set clipboard=unnamed
" NERDTree settings
let NERDTreeIgnore=['\.pyc$', '\~$']
map <C-n> :NERDTreeToggle<CR>
" Set wildignore to skip things I never care about, specifically for CtrlP
set wildignore+=*/tmp/*,*.so,*.swp,*/target/*,*.pyc
" Highlight search results by default
set hlsearch
" Relative Line Numbering
set rnu
" Visible whitespace
hi SpecialKey ctermbg=None
set listchars=space:·,tab:»·
set list
" Scroll Offset
set scrolloff=6
" Pane options
set splitbelow
set splitright
" Highlight current line
set cursorline
" Tabs
set expandtab
set tabstop=4
set shiftwidth=4
" Smart Indent
filetype indent on
" Soft wrap
set breakindent
set wrap
set linebreak
let &showbreak=' »» '
let &breakindentopt='sbr'
" Vim-Tmux-Navigator
" autosave when leaving a vim split
let g:tmux_navigator_save_on_switch = 1
" NERDTree
let NERDTreeShowHidden=1
" Vim Autosave
let g:auto_save = 1 " enable AutoSave on Vim startup
let g:auto_save_in_insert_mode = 0 " do not save while in insert mod