Skip to content

Commit

Permalink
vimrc: Use consistent style for key mapping
Browse files Browse the repository at this point in the history
This change updates portions of our vimrc that used inconsistent
capitalization for commands to have a more consistent style.
  • Loading branch information
geoffharcourt committed Jan 5, 2018
1 parent aa2f5b3 commit a7e1070
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ set wildmode=list:longest,list:full
function! InsertTabWrapper()
let col = col('.') - 1
if !col || getline('.')[col - 1] !~ '\k'
return "\<tab>"
return "\<Tab>"
else
return "\<c-p>"
return "\<C-p>"
endif
endfunction
inoremap <Tab> <c-r>=InsertTabWrapper()<cr>
inoremap <S-Tab> <c-n>
inoremap <Tab> <C-r>=InsertTabWrapper()<CR>
inoremap <S-Tab> <C-n>
" Switch between the last two files
nnoremap <Leader><Leader> <c-^>
nnoremap <Leader><Leader> <C-^>
" Get off my lawn
nnoremap <Left> :echoe "Use h"<CR>
Expand All @@ -131,7 +131,7 @@ nnoremap <silent> <Leader>a :TestSuite<CR>
nnoremap <silent> <Leader>gt :TestVisit<CR>
" Run commands that require an interactive shell
nnoremap <Leader>r :RunInInteractiveShell<space>
nnoremap <Leader>r :RunInInteractiveShell<Space>
" Treat <li> and <p> tags like the block tags they are
let g:html_indent_tags = 'li\|p'
Expand Down

0 comments on commit a7e1070

Please sign in to comment.