summaryrefslogtreecommitdiff
path: root/vim/.vimrc
blob: 65b22ff63b145f7e4725f29efc5a2bd8e71cb1dd (plain)
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
if empty(glob('~/.vim/autoload/plug.vim'))
      silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
call plug#begin('~/.vim/plugged')
"Plug 'vim-airline/vim-airline'
Plug 'itchyny/lightline.vim'
Plug 'mattn/emmet-vim'
Plug 'liuchengxu/vim-which-key'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'kamil-stachowski/flatwhite-vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'tpope/vim-vinegar'
Plug 'kalbasit/vim-colemak'
call plug#end()

filetype on
filetype indent on
filetype plugin on
set nocompatible
set number
set rnu
set expandtab
set tabstop=4
set shiftwidth=4
set smartindent
syntax on
set noswapfile
set incsearch
set ignorecase
set smartcase
set autochdir
set hidden
set virtualedit=onemore
set timeoutlen=500
set ttimeoutlen=1
set termguicolors
set laststatus=2
set noshowmode
colorscheme flatwhite
let mapleader = "\<Space>"
nnoremap <Space> <Nop>
nnoremap <silent> <leader> :WhichKey '<Space>'<CR>
inoremap <silent> <Esc> <Esc>l
let g:user_emmet_leader_key='<Space>'
let g:user_emmet_mode='n'
let g:user_emmet_install_global = 0
autocmd FileType html,css EmmetInstall
let g:lightline = {
            \ 'colorscheme': 'one',
            \ 'background': 'light',
            \ }
let g:which_key_map = {}
let g:which_key_map.f = ['Files', 'file buffer']
let g:which_key_map.b = {
            \ 'name' : '+buffer',
            \ 'n' : ['bn', 'next buffer'],
            \ 'p' : ['bp', 'previous buffer'],
            \ 'b' : ['Buffers', 'fuzzy find buffers'],
            \ }
call which_key#register('<Space>', 'g:which_key_map')