Adds additional bindings

This commit is contained in:
William Carroll 2016-11-04 16:53:45 -04:00
parent 0661c25246
commit 6db646d789
3 changed files with 33 additions and 6 deletions

View file

@ -93,6 +93,27 @@ let g:UltiSnipsExpandTrigger="<c-x>"
inoremap ;; <C-n>
" remap <C- keys in insert mode to have similar directional behavior to the
" behavior that they have in normal and visual modes
inoremap <C-w> <Esc>lwi
inoremap <C-W> <Esc>lWi
" TODO: debug why <C-b><C-b> repetition is needed
inoremap <C-b> <Esc>bi
inoremap <C-B> <Esc>Bi
" set -o emacs line-editor defaults
inoremap <C-a> <Esc>I
inoremap <C-e> <Esc>A
" keybinds to close a buffer
inoremap <C-q> <Esc>:q<CR>
nnoremap <C-q> :q<CR>
nnoremap <C-q> :q<CR>
" vs and sp keybinding
nnoremap vs <Esc>:vs<CR>
nnoremap vv <Esc>:vs<CR>
@ -217,10 +238,14 @@ set number
set tabstop=2
set expandtab
set shiftwidth=2
colorscheme elflord
colorscheme monokai
set t_Co=255
" Remove all characters until the end of the line
inoremap <C-c> <Esc>lC
" Ensure that <header> is "," character
let mapleader = ","
@ -273,11 +298,6 @@ nnoremap H ^
nnoremap L $
" set -o emacs line-editor defaults
inoremap <C-a> <Esc>I
inoremap <C-e> <Esc>A
" trim trailing whitespace on save
autocmd BufWritePre *.{js,py,tpl,html} :%s/\s\+$//e