" randomuser's vimrc " vim-plug {{{ call plug#begin() Plug 'honza/vim-snippets' Plug 'sirver/ultisnips' cal plug#end() " }}} " misc {{{ nnoremap ; : nnoremap : ; let mapleader = " " set nocompatible " }}} " defined settings {{{ set number set foldmethod=marker set encoding=utf8 set list set lcs=tab:->,trail:_,eol:^ set clipboard=unnamedplus set spell set spelllang=en_us colorscheme earth " }}} " shortcuts {{{ " toggle line numbers and listchars nnoremap ym :set number!:set list! " weather nnoremap w :!curl -s wttr.in/?0T " vimrc thing nnoremap rr :source ~/.config/nvim/init.vim nnoremap re :edit ~/.config/nvim/init.vim " show the file explorer nnoremap fs :Lexplore " show the shortcuts in the vimrc nnoremap ke :e ~/.config/nvim/init.vim ggzR/shortcutsz " jk to escape insert mode inoremap jk inoremap :echo "use jk instead!"2gsi " go back to the previous error, then correct inoremap u[s1z=`]au inoremap zgi nnoremap zg " }}} " autocmds {{{ au Filetype python setl et ts=4 sw=4 " }}} " statusline {{{ set statusline=%f set statusline+=\ set statusline+=%r%m%q set statusline+=%= set statusline+=%y\ %B\ %l:%c:%p " }}} " netrw {{{ let g:netrw_banner=0 " }}} " ultisnips {{{ let g:UltiSnipsExpandTrigger = '' let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" " }}}