set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.config/nvim/bundle/Vundle.vim call plug#begin('~/.config/nvim/plug') Plug 'chriskempson/base16-vim' Plug 'godlygeek/tabular' Plug 'plasticboy/vim-markdown' Plug 'itchyny/lightline.vim' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-surround' Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdcommenter' Plug 'ctrlpvim/ctrlp.vim' Plug 'othree/html5.vim' Plug 'tpope/vim-haml' Plug 'junegunn/fzf' call plug#end() syntax enable set background=dark set termguicolors colorscheme base16-default-dark hi Search cterm=NONE ctermfg=white ctermbg=red hi clear SpecialKey filetype plugin indent on "Disable vi-compatible backspace behavior set backspace=indent,eol,start "Default character encoding set encoding=utf-8 set fileencoding=utf-8 " All unix, all the time set ffs=unix set ff=unix " Indentation stuff set tabstop=2 set softtabstop=2 set shiftwidth=2 set noexpandtab set textwidth=0 set colorcolumn=81 set autoindent set smartindent " Look and feel set encoding=utf-8 set noshowmode set number set wildmenu set showmatch " Silence is golden set noerrorbells set novisualbell " Searching things set incsearch set hlsearch set ignorecase set smartcase autocmd BufNewFile,BufRead *.sls set filetype=yaml " Visually display whitespace (this prevents slowness from match command) set list set listchars=tab:ยทยท,trail:-,nbsp:+ "Display each keystroke in the status line set showcmd "Always show the status line set laststatus=2 set hidden " Remapping things let mapleader="," let maplocalleader="," " Making my life hard on purpose so it is easier later... nnoremap nnoremap nnoremap nnoremap nnoremap nnoremap nnoremap nnoremap nnoremap vnoremap vnoremap vnoremap vnoremap vnoremap vnoremap vnoremap vnoremap vnoremap inoremap inoremap inoremap inoremap inoremap inoremap inoremap inoremap inoremap nnoremap ; : nnoremap b :buffers:buffer "Toggle line numbering nmap n :setlocal number! nmap c :nohlsearch set pastetoggle=p map :bnext map :bprev map :tabn map :tabp map :NERDTreeToggle "Delete single characters without updating the default register noremap x "_x "Paste in visual mode without updating the default register vnoremap p "_dP "Jump five lines when scrolling at edge of screen set scrolljump=1 "Cause screen to scroll when within three lines of the edge set scrolloff=5 set sidescrolloff=5 "Folding set foldmethod=indent set nofoldenable set grepprg=grep\ -nH\ $* let g:powerline_pycmd = "py3" let loaded_matchparen = 1 let g:vimtex_view_general_viewer = 'qpdfview' let g:vimtex_compiler_latexmk = {'callback' : 0} let g:vimtex_view_general_options \ = '--unique @pdf\#src:@tex:@line:@col' let g:vimtex_view_general_options_latexmk = '--unique' let g:tex_flavor = 'latex' let g:vimtex_compiler_latexmk = { \ 'background' : 1, \ 'build_dir' : '', \ 'callback' : 0, \ 'continuous' : 0, \ 'executable' : 'latexmk', \ 'options' : [ \ '-pdf', \ '-verbose', \ '-file-line-error', \ '-synctex=1', \ '-interaction=nonstopmode', \ ], \}