From dff38fecf09fbcd5ab282052ed74170265f57fee Mon Sep 17 00:00:00 2001 From: Emerson Veenstra Date: Sun, 16 Jul 2017 17:50:52 -0400 Subject: [PATCH] Big vim redo. Different colorscheme, more plugins --- .vim/after/ftplugin/markdown.vim | 1 + .vim/after/ftplugin/python.vim | 3 ++ .vim/after/ftplugin/tex.vim | 1 + .vimrc | 50 ++++++++++++++++++++++---------- 4 files changed, 39 insertions(+), 16 deletions(-) create mode 100644 .vim/after/ftplugin/markdown.vim create mode 100644 .vim/after/ftplugin/python.vim create mode 100644 .vim/after/ftplugin/tex.vim diff --git a/.vim/after/ftplugin/markdown.vim b/.vim/after/ftplugin/markdown.vim new file mode 100644 index 0000000..deca82d --- /dev/null +++ b/.vim/after/ftplugin/markdown.vim @@ -0,0 +1 @@ +setlocal tw=80 diff --git a/.vim/after/ftplugin/python.vim b/.vim/after/ftplugin/python.vim new file mode 100644 index 0000000..4659b7d --- /dev/null +++ b/.vim/after/ftplugin/python.vim @@ -0,0 +1,3 @@ +set noet +set ts=4 +set sts=4 diff --git a/.vim/after/ftplugin/tex.vim b/.vim/after/ftplugin/tex.vim new file mode 100644 index 0000000..bcefda2 --- /dev/null +++ b/.vim/after/ftplugin/tex.vim @@ -0,0 +1 @@ +set tw=80 diff --git a/.vimrc b/.vimrc index 8f54468..91755d5 100644 --- a/.vimrc +++ b/.vimrc @@ -2,24 +2,22 @@ set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() - Plugin 'VundleVim/Vundle.vim' -Plugin 'bling/vim-airline' -Plugin 'hail2u/vim-css3-syntax' -Plugin 'cakebaker/scss-syntax.vim' -Plugin 'altercation/vim-colors-solarized' -Plugin 'vim-airline/vim-airline-themes' +Plugin 'tomasr/molokai' +Plugin 'godlygeek/tabular' +Plugin 'plasticboy/vim-markdown' +Plugin 'lervag/vimtex' +Plugin 'tpope/vim-fugitive' +Plugin 'ctrlpvim/ctrlp.vim' +Plugin 'tpope/vim-commentary' +Plugin 'itchyny/lightline.vim' call vundle#end() -" Colors -set t_Co=256 syntax enable set background=dark -colorscheme solarized +colorscheme molokai hi Search cterm=NONE ctermfg=white ctermbg=red hi clear SpecialKey -let g:airline_theme='solarized' -let g:airline_powerline_fonts=1 "Disable vi-compatible backspace behavior set backspace=indent,eol,start @@ -71,6 +69,7 @@ set hidden " Remapping things let mapleader="," +let maplocalleader="," " Making my life hard on purpose so it is easier later... nnoremap nnoremap @@ -102,12 +101,12 @@ inoremap inoremap inoremap -" Because the shift key is a lot of work -nnoremap ; : -inoremap ; +inoremap ;; +nnoremap ;; +vnoremap ;; "Toggle line numbering -nmap l :setlocal number! +nmap n :setlocal number! nmap c :nohlsearch set pastetoggle=p @@ -136,5 +135,24 @@ set grepprg=grep\ -nH\ $* filetype plugin indent on -let g:tex_flavor='latex' 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', + \ ], + \}