starter code
import telebot
# I just import the part down below seperately just for convinience
from telebot import types
set editing-mode vi | |
set show-mode-in-prompt on | |
set vi-ins-mode-string "+" | |
set vi-cmd-mode-string "c" | |
# vi settings | |
$if mode=vi | |
# insert mode | |
set keymap vi-insert | |
Control-l: clear-screen # remap clear |
" This is to install plug.vim incase its not present | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
"Plug-ins | |
call plug#begin('~/.config/nvim/plugged') | |
" Tools |