Big vim redo. Different colorscheme, more plugins

This commit is contained in:
Emerson Veenstra 2017-07-16 17:50:52 -04:00
parent 2dfc0487ac
commit dff38fecf0
4 changed files with 39 additions and 16 deletions

View File

@ -0,0 +1 @@
setlocal tw=80

View File

@ -0,0 +1,3 @@
set noet
set ts=4
set sts=4

View File

@ -0,0 +1 @@
set tw=80

50
.vimrc
View File

@ -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 <buffer><Left> <nop>
nnoremap <buffer><Right> <nop>
@ -102,12 +101,12 @@ inoremap <buffer><Home> <nop>
inoremap <buffer><Insert> <nop>
inoremap <buffer><End> <nop>
" Because the shift key is a lot of work
nnoremap ; :
inoremap <leader>; <esc>
inoremap ;; <esc>
nnoremap ;; <esc>
vnoremap ;; <esc>
"Toggle line numbering
nmap <Leader>l :setlocal number!<CR>
nmap <Leader>n :setlocal number!<CR>
nmap <Leader>c :nohlsearch<CR>
set pastetoggle=<leader>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',
\ ],
\}