From 37605b8c9500ede867014459eef1ee42a2bb2ad1 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 27 Nov 2018 03:34:28 -0700 Subject: vim linting --- .vimrc | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 382f661..cc1089d 100644 --- a/.vimrc +++ b/.vimrc @@ -3,7 +3,6 @@ if !has('gui_running') endif set nocompatible -filetype off @@ -52,6 +51,8 @@ Plugin 'tomtom/tcomment_vim' Plugin 'SirVer/ultisnips' Plugin 'honza/vim-snippets' +Plugin 'junegunn/vader.vim' + call vundle#end() @@ -205,8 +206,7 @@ call matchadd('Overwide', '\%81v', 100) highlight SpaceBeforeTab ctermbg=red call matchadd('SpaceBeforeTab', '\ \t') -"get rid of that annoying yellow explosion everywhere -"that neovim sets as default +"don't search highlighting set nohlsearch set encoding=utf-8 @@ -267,6 +267,10 @@ if &term != "linux" && has('clipboard') xnoremap P (v:register ==# '"' ? '"+' : '') . 'P' end +"use pgup/pgdwn for command history completion (matches zsh conf) +cnoremap +cnoremap + """"""""""""""""""""""" @@ -349,15 +353,19 @@ function! Settings_skel_read() endfunction "a 'writing mode' for prose-y formats +function! s:goyo_enter() + setlocal formatoptions+=a +endfunction + +function! s:goyo_leave() + setlocal formatoptions+=a +endfunction + function! Settings_sub_wmodetoggle() if &fo =~ 'a' - setlocal formatoptions-=a Goyo! - echo 'wmode off' else - setlocal formatoptions+=a Goyo - echo 'wmode on' end endfunction -- cgit v1.2.3