-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
97 lines (79 loc) · 2.24 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
" ScarZy's vim config
" github.com/Skarzee
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'rodjek/vim-puppet'
Plug 'godlygeek/tabular'
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'vim-airline/vim-airline'
Plug 'Glench/Vim-Jinja2-Syntax'
Plug 'SirVer/ultisnips'
Plug 'tpope/vim-surround'
Plug 'w0rp/ale'
Plug 'tpope/vim-unimpaired'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'tomtom/tcomment_vim'
Plug 'hashivim/vim-terraform'
Plug 'elzr/vim-json'
Plug 'arcticicestudio/nord-vim'
call plug#end()
" Set Colourscheme
colorscheme nord
" Theme specific
set termguicolors
" Behaviour
set number
set modelines=5
set hidden
set tabstop=2
set smarttab
set bs=1
set ignorecase
set softtabstop=2
set shiftwidth=2
set wildmenu
set viminfo='125,<1000,s100,h
set expandtab
set autoindent
" Configure identLine
let g:indentLine_leadingSpaceEnabled = 1
" Configuration for BufTabLine
let g:buftabline_indicators=1
let g:buftabline_numbers=1
" Installation of Powerline fonts for Pragmata
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
" NerdTree Params
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowBookmarks=1
let NERDTreeShowHidden=1
let NERDTreeBookmarksSort = 1
" ALE Specific
let g:ale_sign_column_always = 1
let g:ale_yaml_yamllint_options = 'line-length: {max: 120}'
" Terraform
let g:terraform_align=1
" Change Position of FZF
let g:fzf_layout = { 'window': 'enew' }
if executable('FZF')
" FZF {{{
" <C-p> or <C-t> to search files
nnoremap <silent> <C-f> :FZF -m<cr>
" <M-p> for open buffers
nnoremap <silent> <M-p> :Buffers<cr>
" <M-S-p> for MRU
nnoremap <silent> <M-S-p> :History<cr>
" Use fuzzy completion relative filepaths across directory
imap <expr> <c-x><c-f> fzf#vim#complete#path('git ls-files $(git rev-parse --show-toplevel)')
" Better command history with q:
command! CmdHist call fzf#vim#command_history({'right': '40'})
nnoremap q: :CmdHist<CR>
" Better search history
command! QHist call fzf#vim#search_history({'right': '40'})
nnoremap q/ :QHist<CR>
command! -bang -nargs=* Ack call fzf#vim#ag(<q-args>, {'down': '40%', 'options': --no-color'})
" }}}
:endif