filetype plugin on filetype indent on set encoding=utf-8 command! W execute 'w !sudo tee % > /dev/null' edit! nnoremap mm make nnoremap md :Termdebug 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 function! CheckBackspace() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction inoremap \ coc#pum#visible() ? coc#pum#next(1) : \ CheckBackspace() ? "\" : \ coc#refresh() inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" inoremap coc#refresh() 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()