72 lines
1.3 KiB
VimL
72 lines
1.3 KiB
VimL
if &compatible
|
|
set nocompatible
|
|
endif
|
|
set runtimepath+=~/.config/nvim/plugins/repos/github.com/Shougo/dein.vim
|
|
|
|
if dein#load_state('~/.config/nvim/plugins')
|
|
call dein#begin('~/.config/nvim/plugins')
|
|
|
|
" let dein manage itself
|
|
call dein#add('Shougo/dein.vim')
|
|
call dein#add('Shougo/deoplete.nvim')
|
|
call dein#add('Shougo/denite.nvim')
|
|
|
|
call dein#end()
|
|
call dein#save_state()
|
|
endif
|
|
|
|
if dein#check_install()
|
|
call dein#install()
|
|
endif
|
|
|
|
filetype plugin indent on
|
|
syntax enable
|
|
set number
|
|
|
|
set t_Co=256
|
|
|
|
set background=dark
|
|
colorscheme jdkaplan
|
|
|
|
set expandtab
|
|
set tabstop=4
|
|
set softtabstop=4
|
|
set shiftwidth=4
|
|
|
|
set wrap
|
|
set linebreak
|
|
set nolist
|
|
set textwidth=0
|
|
set wrapmargin=0
|
|
|
|
set ignorecase
|
|
set smartcase
|
|
|
|
highlight ExtraWhitespace ctermbg=red guibg=red
|
|
match ExtraWhitespace /\s\+$/
|
|
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
|
|
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
|
|
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
|
|
autocmd BufWinLeave * call clearmatches()
|
|
|
|
map ; :
|
|
noremap ;; ;
|
|
|
|
map ;h :wincmd h<CR>
|
|
map ;j :wincmd j<CR>
|
|
map ;k :wincmd k<CR>
|
|
map ;l :wincmd l<CR>
|
|
|
|
map ;" :split<CR>
|
|
map ;% :vsplit<CR>
|
|
map ;0 :close<CR>
|
|
|
|
map ;w :w<CR>
|
|
|
|
map ;b :Denite buffer<CR>
|
|
map ;e :Denite file buffer<CR>
|
|
map ;f :Denite file buffer<CR>
|
|
map ;q :q<CR>
|
|
map ;x :x<CR>
|
|
|
|
let g:deoplete#enable_at_startup = 1
|