Tidy up keymappings in vimrc

This commit is contained in:
Andrew Miner
2026-09-21 08:44:03 -06:00
parent 0cf3b02e07
commit afe3705289
+11 -10
View File
@@ -119,12 +119,12 @@ endif
let g:vim_json_syntax_conceal = 0
" godlygeek/tabular
nmap == :'a,.Tab /=/<CR>
nmap =: :'a,.Tab /:/<CR>
nmap =or :'a,.Tab /or/<CR>
nmap =, :'a,.Tab /,/<CR>
nmap =as :'a,.Tab /as/<CR>
nmap =import :'a,.Tab /import/<CR>
nnoremap == :'a,.Tab /=/<CR>
nnoremap =: :'a,.Tab /:/<CR>
nnoremap =or :'a,.Tab /or/<CR>
nnoremap =, :'a,.Tab /,/<CR>
nnoremap =as :'a,.Tab /as/<CR>
nnoremap =import :'a,.Tab /import/<CR>
" nathanaelkane/vim-indent-guides
let g:indent_guides_enable_on_vim_startup = 0
@@ -233,6 +233,7 @@ function! StartDailyReview()
let todayLog = fnameescape($'log/{today}-daily.md')
let yesterdayLog = fnameescape($'log/{yesterday}-daily.md')
NERDTreeClose
execute $'edit {yesterdayLog}'
vsplit
set nowrap
@@ -273,12 +274,11 @@ nnoremap <F1> :NERDTreeToggle \| wincmd p \| vertical resize 111 \| wincmd p<CR
nnoremap <F2> :NERDTreeFind<CR>
nnoremap <F3> :'a,.!sort -fg<CR>
nnoremap <F4> :IndentGuidesToggle<CR>
nnoremap <F5> :call InsertDivider()<CR>
inoremap <F5> <Esc>:call InsertDivider()<CR>
nnoremap <F6> :set hlsearch!<CR>
nnoremap <F7> :cp<CR>
nnoremap <F8> :cwindow<CR>
nnoremap <F9> :cn<CR>
nnoremap <F10> :copen<CR>
nnoremap <F11> <Esc>:call StartDailyReview()<CR>
nnoremap <Leader>c :ALEGoToTypeDefinition<CR>
@@ -291,7 +291,7 @@ nnoremap <Leader>r :ALEFindReferences<CR>
nnoremap <Leader>x :ALEToggle<CR>
nnoremap <Leader>w :w<CR>
nnoremap ' :BufExplorer<CR>
nnoremap ' :BufExplorer<CR>
nnoremap j gj
nnoremap k gk
@@ -306,7 +306,8 @@ silent! source .vimrc.local " project specific .vimrc
autocmd BufRead COMMIT_EDITMSG set textwidth=70 colorcolumn=70
autocmd BufRead Makefile setlocal noexpandtab
autocmd BufRead *.scss setlocal shiftwidth=4
autocmd BufNewFile,BufRead *.md Wrapwidth 100 | setlocal wrap textwidth=0 | setlocal spell
autocmd BufNewFile,BufRead *.md Wrapwidth 100 | setlocal textwidth=0 spell wrap
autocmd WinResized *.md Wrapwidth 100
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Startup Commands #################################################################################