From c1ebd0cb69033db25fe4ec998fa19d981b045a49 Mon Sep 17 00:00:00 2001 From: Ian Keane Date: Thu, 23 Jan 2020 13:13:02 -0500 Subject: [PATCH] More vimrc edits --- vim/.vimrc | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 5f6c995..ef7fbfa 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,9 +1,3 @@ -"pathogen stuff {{{ "clone plugins to .vim/bundle - "filetype off "temporarily turn off filetype options - "call pathogen#infect() "load pathogen - "filetype plugin indent on "load filetype-specific indent or plugin files - "TODO: remove this -"}}} "vim-plug {{{ "automatic installation @@ -29,10 +23,15 @@ Plug 'nvie/vim-flake8' Plug 'KKPMW/sacredforest-vim' Plug 'wolf-dog/lightline-sceaduhelm.vim' - Plug 'unblevable/quick-scope' + " Plug 'unblevable/quick-scope' Plug 'tpope/vim-fugitive' Plug 'l04m33/vlime', {'rtp': 'vim/'} + Plug 'artanikin/vim-synthwave84' Plug 'kovisoft/paredit' + Plug 'relastle/bluewery.vim' + Plug 'sainnhe/vim-color-forest-night' + Plug 'justinmk/vim-sneak' + " Plug 'metakirby5/codi.vim' call plug#end() @@ -79,6 +78,8 @@ set undofile "make .un file for persistent undo set relativenumber "make numbers relative to current line set lazyredraw "redraw only when necessary + set updatetime=100 "make updates happen faster (gitgutter) + set splitright "make split to right by default "}}} "searching {{{ @@ -88,8 +89,11 @@ set hlsearch "don't continue to highlight searched phrases. set incsearch "but do search as characters are entered "remap tab to jump by brackets - nnoremap % - vnoremap % + " nnoremap % + " vnoremap % + " remp tab to jump by window + nnoremap w + vnoremap w "}}} "tab settings {{{ @@ -126,6 +130,8 @@ "insert date on current line nnoremap d k :r !date + + nnoremap k :vert new ~/.vim/bindings.md "}}} "invisible characters {{{ @@ -160,6 +166,8 @@ nnoremap j nnoremap k nnoremap l + nnoremap :close + nnoremap :bn "map resize pane "TODO: remap pane resize to something else (leader?) map + :vertical resize +5 @@ -183,9 +191,10 @@ "file specific {{{ "in markdown files, when writing add two spaces to each line to fix spacing "in compiled version - au BufWritePost *.md silent! %s/[^ ]\zs$/\1 / + " au BufWritePost *.md silent! %s/[^ ]\zs$/\1 / + "TODO: find a better solution "bold something in a markdown file - :au FileType markdown nmap b i**ea**b + " :au FileType markdown nmap b i**ea**b "python "au BufNewFile,BufRead *.py "\ set tabstop=4 @@ -239,9 +248,13 @@ "}}} " " git commands {{{ -" TODO: map fugitive commands and GitGutter:PreviewHunk to leader g $command -" TODO: check out gv - +" TODO: map fugitive commands +" TODO: check out gv etc + " gitgutter hunk view + nmap ghv (GitGutterPreviewHunk) + nmap ghn (GitGutterNextHunk) + nmap ghp (GitGutterPrevHunk) + nmap ghf (GitGutterFold) "}}} "plugin modification {{{