-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
63 lines (54 loc) · 1.46 KB
/
init.vim
File metadata and controls
63 lines (54 loc) · 1.46 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
""""""""""""" Vim Plug
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
""""""""""""" Vim Plug
set nocompatible
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'morhetz/gruvbox', {'as': 'gruvbox'}
" Plug 'junegunn/fzf', {'do': {-> fzf#install()}}
Plug 'junegunn/fzf.vim'
call plug#end()
""""""""""""" NOTES
" Add "suggest.noselect": true to CocConfig to solve autocompletion issue
" General
inoremap jk <ESC>
let mapleader = ' '
nnoremap <leader>f <cmd>Files<CR>
set mouse=a
" Indentation
filetype indent plugin on
set autoindent
set smartindent
set tabstop=4 softtabstop=4
set shiftwidth=4
set noexpandtab
" Search
set ignorecase
set smartcase
set incsearch
set nohlsearch
" Visual Stuff
syntax on
set clipboard=unnamed
set number
set pumheight=10
set colorcolumn=101
set relativenumber
set nu
" Colourscheme
let g:gruvbox_italic=1
colorscheme gruvbox
" Other
set noswapfile
set nobackup
set splitright
set splitbelow
" fzf.vim
let g:fzf_layout = {'window': {'width': 0.9, 'height': 0.9}}
let $BAT_THEME="gruvbox-dark"
let $FZF_DEFAULT_COMMAND="rg --files"
let $FZF_DEFAULT_OPTS="--ansi --preview-window 'right:60%' --preview 'bat --color=always --style=header,grid --line-range :300 {}'"