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 {{{
"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 <tab> %
vnoremap <tab> %
" nnoremap <tab> %
" vnoremap <tab> %
" remp tab to jump by window
nnoremap <tab> <C-w>w
vnoremap <tab> <C-w>w
"}}}
"tab settings {{{
@ -126,6 +130,8 @@
"insert date on current line
nnoremap <leader>d k :r !date <cr>
nnoremap <leader>k :vert new ~/.vim/bindings.md <cr>
"}}}
"invisible characters {{{
@ -160,6 +166,8 @@
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap <C-c> :close <cr>
nnoremap <C-n> :bn <cr>
"map resize pane
"TODO: remap pane resize to something else (leader?)
map + :vertical resize +5<CR>
@ -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 <leader>b i**<esc>ea**<esc>b
" :au FileType markdown nmap <leader>b i**<esc>ea**<esc>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 <Plug>(GitGutterPreviewHunk)
nmap ghn <Plug>(GitGutterNextHunk)
nmap ghp <Plug>(GitGutterPrevHunk)
nmap ghf <Plug>(GitGutterFold)
"}}}
"plugin modification {{{