2020-12-06 14:40:57 +01:00
|
|
|
|
call plug#begin('$XDG_CACHE_HOME/vim-plugins')
|
2021-01-18 16:44:33 +01:00
|
|
|
|
Plug 'NLKNguyen/papercolor-theme'
|
2020-03-03 12:46:21 +01:00
|
|
|
|
Plug 'junegunn/fzf'
|
|
|
|
|
Plug 'junegunn/fzf.vim'
|
2020-10-01 14:49:09 +02:00
|
|
|
|
Plug 'mhinz/vim-signify'
|
2020-03-03 12:46:21 +01:00
|
|
|
|
Plug 'rodjek/vim-puppet'
|
|
|
|
|
Plug 'junegunn/goyo.vim'
|
2020-03-03 13:02:39 +01:00
|
|
|
|
Plug 'dense-analysis/ale'
|
|
|
|
|
Plug 'frazrepo/vim-rainbow'
|
2020-03-03 12:46:21 +01:00
|
|
|
|
Plug 'itchyny/lightline.vim'
|
2020-08-21 16:22:21 +02:00
|
|
|
|
Plug 'airblade/vim-gitgutter'
|
2020-03-03 12:46:21 +01:00
|
|
|
|
Plug 'junegunn/limelight.vim'
|
|
|
|
|
Plug 'bitc/vim-bad-whitespace'
|
|
|
|
|
call plug#end()
|
|
|
|
|
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set title
|
|
|
|
|
set number
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set gdefault
|
|
|
|
|
set nobackup
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set expandtab
|
|
|
|
|
set smartcase
|
2020-02-07 12:45:22 +01:00
|
|
|
|
set splitbelow
|
|
|
|
|
set splitright
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set ignorecase
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set nohlsearch
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set noshowmode
|
|
|
|
|
set shiftround
|
|
|
|
|
set cursorline
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set nojoinspaces
|
2020-10-25 22:15:16 +01:00
|
|
|
|
set cursorcolumn
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set nowritebackup
|
|
|
|
|
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set bs=2
|
|
|
|
|
set tabstop=2
|
|
|
|
|
set scrolloff=5
|
|
|
|
|
set shiftwidth=2
|
2020-02-06 17:06:09 +01:00
|
|
|
|
set showtabline=2
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set softtabstop=2
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set winminheight=0
|
|
|
|
|
set matchpairs+=(:),{:},[:],<:>,':',":"
|
|
|
|
|
|
2020-02-05 15:23:43 +01:00
|
|
|
|
nmap <tab> <C-w>w
|
2020-02-03 11:30:45 +01:00
|
|
|
|
nmap <Esc><CR> :wq!<CR>
|
2020-10-01 17:13:00 +02:00
|
|
|
|
nmap <C-p> :Files<CR>
|
|
|
|
|
nmap <C-a> :Files ~<CR>
|
2020-02-06 17:06:09 +01:00
|
|
|
|
nmap <C-n> :tabnew<CR>
|
2020-02-07 12:45:22 +01:00
|
|
|
|
nmap <C-q> :tabclose<CR>
|
2020-11-27 01:01:44 +01:00
|
|
|
|
nmap <C-h> :tabprevious<CR>
|
|
|
|
|
nmap <C-j> :tabprevious<CR>
|
|
|
|
|
nmap <C-k> :tabnext<CR>
|
2020-10-01 17:46:06 +02:00
|
|
|
|
nmap <C-l> :tabnext<CR>
|
2016-06-14 13:31:47 +02:00
|
|
|
|
|
|
|
|
|
map <leader>b <Esc>:set cc=79<CR>
|
|
|
|
|
map <leader>nb <Esc>:set cc=0<CR>
|
2020-03-10 15:58:53 +01:00
|
|
|
|
map <leader>n <Esc>:set nonumber!<CR>
|
2016-06-14 13:31:47 +02:00
|
|
|
|
map <leader>p <Esc>:set paste!<CR>
|
2020-03-01 23:57:33 +01:00
|
|
|
|
map <leader>f <Esc>:Goyo<CR>
|
2016-06-14 13:31:47 +02:00
|
|
|
|
|
2020-03-17 00:37:05 +01:00
|
|
|
|
set t_ZH=[3m
|
|
|
|
|
set t_ZR=[23m
|
|
|
|
|
hi Comment cterm=italic gui=italic
|
2016-06-15 13:55:21 +02:00
|
|
|
|
hi BadWhitespace ctermbg=lightblue guibg=lightblue
|
2020-11-25 13:15:21 +01:00
|
|
|
|
set termguicolors
|
2021-01-18 16:44:33 +01:00
|
|
|
|
colorscheme PaperColor
|
2016-06-15 13:55:21 +02:00
|
|
|
|
|
2020-10-26 13:25:21 +01:00
|
|
|
|
let g:rainbow_active = 1
|
|
|
|
|
|
2020-03-03 12:46:21 +01:00
|
|
|
|
autocmd! User GoyoEnter Limelight
|
|
|
|
|
autocmd! User GoyoLeave Limelight!
|
2020-10-26 13:25:21 +01:00
|
|
|
|
|
2020-10-26 00:25:05 +01:00
|
|
|
|
let $FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.config/local/fd'
|
2020-02-05 15:23:43 +01:00
|
|
|
|
command! -bang -nargs=? -complete=dir Files
|
2021-01-18 17:17:56 +01:00
|
|
|
|
\ call fzf#vim#files(<q-args>, {'options': ['-e', '--layout=reverse', '--preview', 'bat --color=always --style=plain --theme=Monokai\ Extended\ Bright {}']}, <bang>0)
|
2020-10-15 13:59:31 +02:00
|
|
|
|
command! -bang -nargs=? -complete=dir Colors
|
|
|
|
|
\ call fzf#vim#colors({'options': ['-e', '--layout=reverse', '--preview', '']}, <bang>0)
|
2020-02-05 15:23:43 +01:00
|
|
|
|
|
2016-06-16 14:30:47 +02:00
|
|
|
|
let g:lightline = {
|
2021-01-18 16:44:33 +01:00
|
|
|
|
\ 'colorscheme': 'powerlineish',
|
2016-06-16 14:30:47 +02:00
|
|
|
|
\ 'active': {
|
|
|
|
|
\ 'left': [ [ 'mode', 'paste' ],
|
2020-10-01 14:49:09 +02:00
|
|
|
|
\ [ 'readonly', 'filename' ] ],
|
2016-06-16 14:30:47 +02:00
|
|
|
|
\ 'right': [ [ 'lineinfo' ],
|
|
|
|
|
\ [ 'percent' ],
|
2020-02-05 17:28:50 +01:00
|
|
|
|
\ [ 'filetype' ] ]
|
2016-06-16 14:30:47 +02:00
|
|
|
|
\ },
|
|
|
|
|
\ 'component_function': {
|
2020-02-29 10:20:32 +01:00
|
|
|
|
\ 'readonly': 'LightLineReadonly'},
|
2016-06-16 14:30:47 +02:00
|
|
|
|
\ }
|
|
|
|
|
|
|
|
|
|
function! LightLineReadonly()
|
2020-02-05 17:28:50 +01:00
|
|
|
|
return &readonly && &filetype !=# 'help' ? 'RO' : ''
|
2016-06-16 14:30:47 +02:00
|
|
|
|
endfunction
|
2020-11-03 16:51:36 +01:00
|
|
|
|
|
|
|
|
|
source ~/.config/local/init.vim
|