dotfiles/files/vimrc

35 lines
805 B
VimL
Raw Normal View History

2021-11-04 10:15:32 +00:00
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
2022-03-31 14:11:36 +00:00
nmap <Space> <Plug>(easymotion-bd-w)
2022-03-31 13:45:52 +00:00
2021-11-04 10:15:32 +00:00
call plug#begin('~/.vim/plugged')
2022-04-07 13:42:55 +00: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 08:27:01 +00:00
Plug 'tpope/vim-surround'
2021-11-04 10:15:32 +00:00
call plug#end()