2016-10-21 02:38:04 +00:00
|
|
|
call plug#begin()
|
|
|
|
|
2016-11-01 04:45:56 +00:00
|
|
|
" plugins
|
2022-05-04 09:25:06 +00:00
|
|
|
Plug 'SirVer/ultisnips'
|
2023-02-07 07:54:31 +00:00
|
|
|
Plug 'theacodes/witchhazel'
|
2023-02-07 07:54:41 +00:00
|
|
|
Plug 'NoahTheDuke/vim-just'
|
2016-10-21 02:38:04 +00:00
|
|
|
|
2016-10-21 03:50:20 +00:00
|
|
|
call plug#end()
|
2016-10-21 02:38:04 +00:00
|
|
|
|
2016-11-01 04:45:56 +00:00
|
|
|
" use UTF-8 encoding
|
2016-10-21 22:21:44 +00:00
|
|
|
set encoding=utf-8
|
|
|
|
|
2016-11-01 04:45:56 +00:00
|
|
|
" view line numbers
|
2022-05-04 09:25:06 +00:00
|
|
|
"set number
|
2016-10-21 02:38:04 +00:00
|
|
|
|
2016-11-01 04:45:56 +00:00
|
|
|
" display
|
2022-05-04 09:25:06 +00:00
|
|
|
set tabstop=2
|
|
|
|
set softtabstop=2
|
|
|
|
set shiftwidth=2
|
2016-10-30 21:21:51 +00:00
|
|
|
set expandtab
|
2016-10-29 05:09:40 +00:00
|
|
|
|
2016-11-21 20:51:48 +00:00
|
|
|
" show tabs, trailing space & EOL
|
2022-05-04 09:25:06 +00:00
|
|
|
"set listchars=tab:▸\ ,trail:·,eol:¬
|
|
|
|
"set list
|
2016-10-29 05:09:40 +00:00
|
|
|
|
2016-11-21 20:51:48 +00:00
|
|
|
"use system clipboard
|
|
|
|
set clipboard+=unnamedplus
|
|
|
|
|
|
|
|
" disable UDLR keys (prefer HJKL)
|
|
|
|
noremap <Up> <NOP>
|
|
|
|
noremap <Down> <NOP>
|
|
|
|
noremap <Left> <NOP>
|
|
|
|
noremap <Right> <NOP>
|
|
|
|
|
2017-08-12 04:34:06 +00:00
|
|
|
" enable syntax highlighting
|
2016-10-21 22:21:44 +00:00
|
|
|
syntax enable
|
2016-10-29 05:09:40 +00:00
|
|
|
let g:load_doxygen_syntax=1
|
|
|
|
|
2023-02-07 07:54:31 +00:00
|
|
|
" theme
|
|
|
|
" set termguicolors
|
|
|
|
" colorscheme witchhazel-hypercolor
|
|
|
|
|
2016-11-01 07:25:58 +00:00
|
|
|
" enable filetype plugins
|
2017-04-14 03:23:37 +00:00
|
|
|
filetype plugin indent on
|
|
|
|
autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 expandtab
|
|
|
|
autocmd FileType json setlocal tabstop=2 shiftwidth=2 expandtab
|
2019-10-01 21:24:13 +00:00
|
|
|
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 expandtab
|
2020-04-29 07:54:15 +00:00
|
|
|
autocmd FileType PKGBUILD setlocal tabstop=2 shiftwidth=2 expandtab
|
2016-11-01 07:25:58 +00:00
|
|
|
|
2016-12-08 22:44:22 +00:00
|
|
|
" enable nvim-specific inccommand
|
|
|
|
if has('nvim')
|
|
|
|
set inccommand=nosplit
|
|
|
|
endif
|
|
|
|
|
2022-05-04 09:25:06 +00:00
|
|
|
" ultisnips
|
|
|
|
let g:UltiSnipsExpandTrigger="<c-j>"
|
|
|
|
let g:UltiSnipsJumpForwardTrigger="<c-j>"
|
|
|
|
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
|