2022-04-08 09:42:11 +02:00
|
|
|
if exists('g:vscode')
|
|
|
|
else
|
|
|
|
syntax on
|
|
|
|
set number relativenumber
|
|
|
|
set noerrorbells
|
|
|
|
set tabstop=2 softtabstop=2
|
|
|
|
set shiftwidth=2
|
|
|
|
set expandtab
|
|
|
|
set smartindent
|
|
|
|
set nu
|
|
|
|
set nowrap
|
|
|
|
set smartcase
|
|
|
|
set noswapfile
|
|
|
|
set nobackup
|
|
|
|
set undodir=~/.vim/undodir
|
|
|
|
set undofile
|
|
|
|
set incsearch
|
|
|
|
endif
|
2021-11-04 11:15:32 +01:00
|
|
|
|
2022-03-31 16:11:36 +02:00
|
|
|
nmap <Space> <Plug>(easymotion-bd-w)
|
2022-03-31 15:45:52 +02:00
|
|
|
|
2021-11-04 11:15:32 +01:00
|
|
|
call plug#begin('~/.vim/plugged')
|
|
|
|
|
2022-04-07 15:42:55 +02:00
|
|
|
function! Cond(cond, ...)
|
|
|
|
let opts = get(a:000, 0, {})
|
|
|
|
return a:cond ? opts : extend(opts, { 'on': [], 'for': [] })
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
Plug 'morhetz/gruvbox', Cond(!exists('g:vscode'))
|
|
|
|
Plug 'scrooloose/nerdtree', Cond(!exists('g:vscode'))
|
|
|
|
Plug 'itchyny/lightline.vim', Cond(!exists('g:vscode'))
|
|
|
|
Plug 'editorconfig/editorconfig-vim', Cond(!exists('g:vscode'))
|
|
|
|
Plug 'asvetliakov/vim-easymotion', Cond(exists('g:vscode'), { 'as': 'vsc-easymotion' })
|
2022-04-07 10:27:01 +02:00
|
|
|
Plug 'tpope/vim-surround'
|
2021-11-04 11:15:32 +01:00
|
|
|
|
|
|
|
call plug#end()
|