""VILYAEMS VIMRC "tinier vimrc 80 line limit filetype plugin on set autoindent set backspace=indent,eol,start set encoding=utf-8 set et set lazyredraw set list set listchars=tab:>. set mouse=a set nocompatible set noswapfile set number relativenumber "set omnifunc=syntaxcomplete#Complete set spelllang=en_gb set sw=2 set viminfo="" "syntax enable "syntax spell toplevel "Vimwiki let g:vimwiki_list = [{'path': '~/x/wiki/md/', 'path_html': '~/x/wiki/web/', \ 'template_path': '~/x/wiki/', 'template_default': 'page', 'template_ext': '.html'}] "call plug#begin(system('echo "~/.vim/plugged/"')) "Plug 'preservim/nerdtree' "Plug 'jreybert/vimagit' "Plug 'vimwiki/vimwiki' "Plug 'xiyaowong/transparent.nvim' "call plug#end() " " System clipboard usage nnoremap y "+y nnoremap p "+p inoremap y "+y inoremap p "+p " Color column nnoremap co :set colorcolumn=80 nnoremap nc :set colorcolumn-=80 "whitespace removal "nnoremap cw :%s/\s\+$//:noh "indent file "nnoremap ind gg=G`` "inoremap ind gg=G``I "code completion "inoremap 1 "easy search and replace nnoremap S :%s///g "easy save nnoremap W :w " c h soy++ "desc gen function FileHeading() let s:line=line(".") call setline(s:line,"/*********************************************") call append(s:line,"* Description - ") call append(s:line+1,"* Author - Vilyaem") call append(s:line+2,"* *******************************************/") unlet s:line endfunction imap mz:execute FileHeading()g;kkA "section imap I/*----------!----------*//!?xi "bulid imap :w:!./c.sh nnoremap :w:!./c.sh "comments inoremap oc /* inoremap cc */ inoremap cl I/*A*/ nnoremap cl I/*A*/ "syntax off