-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
95 lines (69 loc) · 1.91 KB
/
vimrc
File metadata and controls
95 lines (69 loc) · 1.91 KB
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
set nocompatible " be iMproved, required
filetype off " required
" 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'
" theme
" Plugin 'altercation/vim-colors-solarized'
Plugin 'morhetz/gruvbox'
" for markdown
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
" powerline
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" fugitive
" Plugin 'tpope/vim-fugitive'
" souffle.vim
" Plugin 'souffle-lang/souffle.vim'
" vim-gitgutter
Plugin 'airblade/vim-gitgutter'
" fzf
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
" disable markdown folding
let g:vim_markdown_folding_disabled = 1
" indentation and syntax
filetype plugin indent on
syntax enable
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
autocmd Filetype java setlocal tabstop=2
set textwidth=120
" sometimes, i wish to write long lines
" set textwidth=0
" set wrapmargin=0
" appearances and behavior
" set number
set ruler
set hlsearch
" Solarized stuff
"let g:solarized_termtrans = 1
"set background=dark
"colorscheme solarized
" Solarized vim-airline
"let g:airline_theme='solarized'
"let g:airline_solarized_bg='dark'
" gruvbox
colorscheme gruvbox
set bg=dark
" escape shortcut
imap jj <Esc>
" disable mouse reporting
set mouse=
" enable powerline fonts for airline
let g:airline_powerline_fonts = 1
" for faster gitgutter
set updatetime=1000
let g:gitgutter_enabled = 0
" Find file in directory
silent! nmap <C-P> :Files<CR>
" Find file registered in repository (Git)
silent! nmap <C-G> :GFiles<CR>
" Find file contaning string/regex
silent! nmap <C-f> :Rg!