-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
71 lines (60 loc) · 1.98 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
" -- Interface --
syntax enable
set noshowmode
set modeline
"set background=dark
colorscheme solarized
"colorscheme default
set mouse=a
set re=0
" -- vim-plug --
call plug#begin()
Plug 'andrewstuart/vim-kubernetes'
Plug 'bling/vim-airline'
let g:airline_powerline_fonts = 1
Plug 'bronson/vim-trailing-whitespace'
Plug 'godlygeek/tabular'
Plug 'luochen1990/rainbow'
Plug 'rodjek/vim-puppet'
Plug 'tpope/vim-fugitive'
"Plug 'tommcdo/vim-fubitive'
"Plug 'martinda/Jenkinsfile-vim-syntax'
Plug 'arcticicestudio/nord-vim'
Plug 'altercation/vim-colors-solarized'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" Initialize plugin system
call plug#end()
" -- enable Jenkins syntax highlighting --
au BufNewFile,BufRead Jenkinsfile setf groovy
" -- Tabs --
set nocompatible " be iMproved
"filetype off " required!
set number
set relativenumber
set cursorcolumn
"set autoindent
"set smartindent
"set laststatus=2
"set encoding=utf-8
"set t_Co=256
" -- Auto-reload .vimrc --
autocmd bufwritepost .vimrc source $MYVIMRC
" -- Tabs --
set expandtab " Do insert spaces for tabs
set tabstop=2 " How many spaces should be displayed as one tab
set shiftwidth=0 " How many spaces should be inserted as one tab; If set to '0', it uses tabstop value
"filetype plugin indent on " Different behaviour based on filetype
" -- Search --
set ignorecase " Ignore case on matching
set smartcase " But only when search is all lower case
set incsearch " Incremental searching
set hlsearch " Highlight matches
nnoremap n nzz " Focus highlight in the middle of the screen
nnoremap N Nzz " Focus highlight in the middle of the screen
nnoremap <CR> :noh<CR><CR> " Clear search with Enter
" Show meta chars
set list
set listchars=eol:¬,tab:··,trail:~,extends:>,precedes:<,nbsp:☂
" -- Rainbow Parentheses --
"let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle