summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc31
1 files changed, 18 insertions, 13 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index df53914..76671f4 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -2,6 +2,21 @@ 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 '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 'vim-airline/vim-airline-themes'
+Plug 'kalbasit/vim-colemak'
+call plug#end()
+
filetype on
filetype plugin on
filetype indent on
@@ -14,6 +29,7 @@ set tabstop=4
set shiftwidth=4
set smartindent
syntax on
+set noswapfile
set incsearch
set ignorecase
set smartcase
@@ -24,21 +40,9 @@ set timeoutlen=500
set ttimeoutlen=1
set termguicolors
colorscheme flatwhite
+let g:airline_theme = 'minimalist'
let mapleader = "\<Space>"
nnoremap <Space> <Nop>
-call plug#begin('~/.vim/plugged')
-Plug 'vim-airline/vim-airline'
-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 'vim-airline/vim-airline-themes'
-Plug 'kalbasit/vim-colemak'
-call plug#end()
nnoremap <silent> <leader> :WhichKey '<Space>'<CR>
inoremap <silent> <Esc> <Esc>l
let g:user_emmet_leader_key='<Space>'
@@ -55,3 +59,4 @@ let g:which_key_map.b = {
\ 'b' : ['Buffers', 'fuzzy find buffers'],
\ }
call which_key#register('<Space>', 'g:which_key_map')
+