aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-11-27 03:34:28 -0700
committerkatherine <shmibs@shmibbles.me>2018-11-27 03:34:28 -0700
commit37605b8c9500ede867014459eef1ee42a2bb2ad1 (patch)
tree1d59f726ce22e2990a62cfe57175e72b96ef0686 /.vimrc
parentcdec2892d55031d870b3402dc810e20592689686 (diff)
downloaddotfiles-37605b8c9500ede867014459eef1ee42a2bb2ad1.tar.gz
vim linting
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc22
1 files changed, 15 insertions, 7 deletions
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 <expr> P (v:register ==# '"' ? '"+' : '') . 'P'
end
+"use pgup/pgdwn for command history completion (matches zsh conf)
+cnoremap <PageUp> <up>
+cnoremap <PageDown> <down>
+
"""""""""""""""""""""""
@@ -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