set breakindent set clipboard=unnamedplus set encoding=utf-8 set expandtab set hidden set ignorecase set nocompatible set nohlsearch set noshowmode set relativenumber set shiftwidth=2 set smartcase set smarttab set softtabstop=2 set synmaxcol=150 set tabstop=4 set undofile set wildmenu filetype plugin on scriptencoding utf-8 syntax on " General key mappings map map map map no k no j no h no l " Visually select the text that was last edited/pasted nmap gV `[v`] no ; : augroup General au! autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o autocmd bufwritepost init.vim source $MYVIMRC augroup END call has('python3') if empty(glob($XDG_CONFIG_HOME . '/nvim/autoload/plug.vim')) silent !curl -fLo $XDG_CONFIG_HOME/nvim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim silent !pip3 install pynvim augroup Plug au! autocmd VimEnter * PlugInstall " Bubble single lines with vim-unimpaired nmap [e nmap ]e " Bubble multiple lines with vim-unimpaired vmap [egv vmap ]egv autocmd BufReadPost fugitive://* set bufhidden=delete augroup END endif call plug#begin($XDG_DATA_HOME . '/nvim/plugged') Plug 'godlygeek/tabular' Plug 'itchyny/lightline.vim' Plug 'mbbill/undotree' nn u :UndotreeToggle :UndotreeFocus Plug 'sheerun/vim-polyglot' Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' Plug 'tommcdo/vim-exchange' Plug 'tpope/vim-abolish' Plug 'tpope/vim-commentary' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-surround' Plug 'tpope/vim-unimpaired' call plug#end()