dotfiles

configurations and scripts
git clone https://riazj.com/git/dotfiles
Log | Files | Refs | LICENSE

init.vim (953B)


      1 set noshowmode noshowcmd nowrap noruler laststatus=0 shortmess+=I
      2 set clipboard=unnamedplus textwidth=79 wildmode=longest,list,full
      3 set lazyredraw ignorecase smartcase number relativenumber
      4 
      5 imap <C-g> <C-x><C-p>
      6 imap jk <Esc>
      7 nmap ; :
      8 nmap Z :silent! %s/\s\+$//e <bar> x<CR>
      9 nmap S :%s///g<Left><Left><Left>
     10 nmap s :setlocal spell! spelllang=en_us<CR>
     11 nmap ,w :setlocal wrap linebreak textwidth=0 columns=80<CR>
     12 nmap ,a :0r ~/.local/share/snippets/article.html<CR>4jf>a
     13 xmap ,p :!sed 's/</\&lt;/g; s/>/\&gt;/g'<CR>
     14 nnoremap c "_c
     15 
     16 autocmd InsertEnter * let @/ = "" | normal zz
     17 autocmd TextChanged,InsertLeave * silent! update
     18 
     19 autocmd FileType html imap ;; <Esc>/++<CR>c2l
     20 autocmd FileType html imap ;t <Esc>lyT>i;;<Esc>pi;;
     21 autocmd FileType html imap ;p <Esc>o<p></p><Esc>cit
     22 autocmd FileType html imap ;h2 <Esc>o<h2></h2><CR><p>++</p><Esc>kcit
     23 autocmd FileType html imap ;a <a href="">++</a>++<Esc>F"i
     24 autocmd FileType html imap ;l <li></li><Esc>cit