-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
136 lines (121 loc) Β· 4.84 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
"πβββββββββββββββββββββββββββββββββπ"
"π β’β’β’β’β’β’ Config Explanation β’β’β’β’β’ π"
"πβββββββββββββββββββββββββββββββββπ"
"
"πβββββββββββββββββββββββββββββββββπ"
"π β’β’β’β’β’β’β’β’ Basic Config β’β’β’β’β’β’β’β’β’ π"
"πβββββββββββββββββββββββββββββββββπ"
"πβββββββββββββββββββββββββββββββββπ"
"π β’β’ No legacy vi compatibility π"
"π β’β’ Display line numbers π"
"π β’β’ Display invisibles π"
"π β’β’ Enable syntax highlighting π"
"π β’β’ Display incomplete commands π"
"π β’β’ Use unnamed clipboard π"
"π β’β’ Load filetype plugins π"
"π β’β’ Always show ruler π"
"π β’β’ Display completion matches π"
"π β’β’ Text width is 79 chars π"
"πβββββββββββββββββββββββββββββββββπ"
"π β’β’β’β’β’β’ Whitespace Config β’β’β’β’β’β’ π"
"πβββββββββββββββββββββββββββββββββπ"
"πβββββββββββββββββββββββββββββββββπ"
"π β’β’ Do not wrap lines π"
"π β’β’ Use spaces instead tabs π"
"π β’β’ Display tabs as 2 spaces π"
"π β’β’ Backspace everything in :i π"
"πβββββββββββββββββββββββββββββββββββπ"
"π β’β’β’β’β’β’β’ Unused Config β’β’β’β’β’β’β’β’β’β’β’ π"
"πβββββββββββββββββββββββββββββββββββπ"
" filetype off
" set syntax=ON
" set nowrap
"
set syntax=on
set wildmenu
set ruler
set nocompatible
set number
set list
set encoding=utf-8
set showcmd
set clipboard=unnamed
set expandtab
set tabstop=2 shiftwidth=2
set backspace=indent,eol,start
set textwidth=79
set cursorline " highlight current line
set cursorcolumn " highlight current column
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
filetype plugin on
filetype plugin indent on
if has('mouse')
set mouse=a
endif
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
\ | wincmd p | diffthis
set guifont=DejaVuSansMono:h20
set laststatus=2
set background=dark
"
"map Ctrl+n to toggle NERDTree
map <C-n> :NERDTreeToggle<CR>
map <C-Tab> :tabn<CR>
map <C-S-Tab> :tabp<CR>
" 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 'https://github.com/bronson/vim-crosshairs'
Plugin 'altercation/solarized'
Plugin 'hashivim/vim-terraform'
Plugin 'gmarik/Vundle.vim'
Plugin 'mileszs/ack.vim'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-repeat'
Plugin 'plasticboy/vim-markdown'
Plugin 'altercation/vim-colors-solarized'
Plugin 'vim-airline/vim-airline'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'jisaacks/GitGutter'
Plugin 'tpope/vim-fugitive'
Plugin 'Raimondi/delimitMate'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'elzr/vim-json'
Plugin 'rizzatti/dash.vim'
Plugin 'JamshedVesuna/vim-markdown-preview'
" Plugin 'Valloric/YouCompleteMe'
" YouCompleteMe requires more work for osx
" See https://github.com/Valloric/YouCompleteMe#installation
"Plugins must be added before the following line
call vundle#end()
" To ignore plugin indent changes, use 'filetype plugin on'
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just
" :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
let g:ackprg='ag --vimgrep' "use Ag with [ack.vim][]
let g:vim_markdown_preview_github=1
let g:vim_markdown_folding_disabled=1
let g:vim_json_syntax_conceal=0
let g:solarized_termcolors=256
let g:solarized_termtrans=1
let g:solarized_contrast='normal'
let g:solarized_visibility='high'
let g:foldmethod='marker'
let NERDTreeShowHidden=1
colorscheme solarized
syntax enable