More vimrc edits

This commit is contained in:
Ian Keane 2020-01-23 13:13:02 -05:00
parent f81083f3b7
commit c1ebd0cb69

View file

@ -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 {{{ "vim-plug {{{
"automatic installation "automatic installation
@ -29,10 +23,15 @@
Plug 'nvie/vim-flake8' Plug 'nvie/vim-flake8'
Plug 'KKPMW/sacredforest-vim' Plug 'KKPMW/sacredforest-vim'
Plug 'wolf-dog/lightline-sceaduhelm.vim' Plug 'wolf-dog/lightline-sceaduhelm.vim'
Plug 'unblevable/quick-scope' " Plug 'unblevable/quick-scope'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'l04m33/vlime', {'rtp': 'vim/'} Plug 'l04m33/vlime', {'rtp': 'vim/'}
Plug 'artanikin/vim-synthwave84'
Plug 'kovisoft/paredit' Plug 'kovisoft/paredit'
Plug 'relastle/bluewery.vim'
Plug 'sainnhe/vim-color-forest-night'
Plug 'justinmk/vim-sneak'
" Plug 'metakirby5/codi.vim' " Plug 'metakirby5/codi.vim'
call plug#end() call plug#end()
@ -79,6 +78,8 @@
set undofile "make .un file for persistent undo set undofile "make .un file for persistent undo
set relativenumber "make numbers relative to current line set relativenumber "make numbers relative to current line
set lazyredraw "redraw only when necessary set lazyredraw "redraw only when necessary
set updatetime=100 "make updates happen faster (gitgutter)
set splitright "make split to right by default
"}}} "}}}
"searching {{{ "searching {{{
@ -88,8 +89,11 @@
set hlsearch "don't continue to highlight searched phrases. set hlsearch "don't continue to highlight searched phrases.
set incsearch "but do search as characters are entered set incsearch "but do search as characters are entered
"remap tab to jump by brackets "remap tab to jump by brackets
nnoremap <tab> % " nnoremap <tab> %
vnoremap <tab> % " vnoremap <tab> %
" remp tab to jump by window
nnoremap <tab> <C-w>w
vnoremap <tab> <C-w>w
"}}} "}}}
"tab settings {{{ "tab settings {{{
@ -126,6 +130,8 @@
"insert date on current line "insert date on current line
nnoremap <leader>d k :r !date <cr> nnoremap <leader>d k :r !date <cr>
nnoremap <leader>k :vert new ~/.vim/bindings.md <cr>
"}}} "}}}
"invisible characters {{{ "invisible characters {{{
@ -160,6 +166,8 @@
nnoremap <C-j> <C-w>j nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l nnoremap <C-l> <C-w>l
nnoremap <C-c> :close <cr>
nnoremap <C-n> :bn <cr>
"map resize pane "map resize pane
"TODO: remap pane resize to something else (leader?) "TODO: remap pane resize to something else (leader?)
map + :vertical resize +5<CR> map + :vertical resize +5<CR>
@ -183,9 +191,10 @@
"file specific {{{ "file specific {{{
"in markdown files, when writing add two spaces to each line to fix spacing "in markdown files, when writing add two spaces to each line to fix spacing
"in compiled version "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 "bold something in a markdown file
:au FileType markdown nmap <leader>b i**<esc>ea**<esc>b " :au FileType markdown nmap <leader>b i**<esc>ea**<esc>b
"python "python
"au BufNewFile,BufRead *.py "au BufNewFile,BufRead *.py
"\ set tabstop=4 "\ set tabstop=4
@ -239,9 +248,13 @@
"}}} "}}}
" "
" git commands {{{ " git commands {{{
" TODO: map fugitive commands and GitGutter:PreviewHunk to leader g $command " TODO: map fugitive commands
" TODO: check out gv " TODO: check out gv etc
" gitgutter hunk view
nmap ghv <Plug>(GitGutterPreviewHunk)
nmap ghn <Plug>(GitGutterNextHunk)
nmap ghp <Plug>(GitGutterPrevHunk)
nmap ghf <Plug>(GitGutterFold)
"}}} "}}}
"plugin modification {{{ "plugin modification {{{