61 lines
1.3 KiB
VimL
61 lines
1.3 KiB
VimL
filetype plugin on
|
|
filetype indent on
|
|
|
|
set encoding=utf-8
|
|
|
|
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
|
|
|
nnoremap <buffer> <Leader>mm <cmd>make<CR>
|
|
nnoremap <buffer> <Leader>md :Termdebug<CR>
|
|
|
|
set foldmethod=syntax
|
|
set foldlevelstart=0
|
|
|
|
set showcmd
|
|
|
|
color torte
|
|
|
|
set ignorecase
|
|
set smartcase
|
|
set hlsearch
|
|
set incsearch
|
|
set relativenumber
|
|
|
|
set number
|
|
|
|
syntax enable
|
|
|
|
set tabstop=4
|
|
set shiftwidth=4
|
|
set autoindent
|
|
set smartindent
|
|
set tags=./tags,tags;$HOME
|
|
|
|
inoremap <silent><expr> <TAB>
|
|
\ coc#pum#visible() ? coc#pum#next(1) :
|
|
\ CheckBackspace() ? "\<Tab>" :
|
|
\ coc#refresh()
|
|
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
|
|
|
|
|
packadd! termdebug
|
|
|
|
highlight ColorColumn ctermbg=magenta
|
|
call matchadd('ColorColumn', '\%81v', 100)
|
|
|
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
|
endif
|
|
|
|
call plug#begin()
|
|
|
|
Plug 'stevearc/vim-arduino'
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
Plug 'ludovicchabant/vim-gutentags'
|
|
Plug 'tpope/vim-unimpaired'
|
|
|
|
call plug#end()
|
|
|