commit aa8ea71c9cdd52011f5f577315d88c352944deb2 parent 7afe37157c6da7baa228a55428b59e1420f63645 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Tue, 21 Aug 2018 16:08:29 +0200 Reorganising vim configs Diffstat:
M | dotfiles/vim-config/commands.vimrc | | | 13 | +++++++++++++ |
M | dotfiles/vim-config/map.vimrc | | | 16 | ++++------------ |
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/dotfiles/vim-config/commands.vimrc b/dotfiles/vim-config/commands.vimrc @@ -15,3 +15,16 @@ function! InsertTabWrapper() endif endfunction +" Fat finger fixes/convenience abbreviations +cnoreabbrev W! w! +cnoreabbrev Q! q! +cnoreabbrev Qall! qall! +cnoreabbrev Wq wq +cnoreabbrev Wa wa +cnoreabbrev wQ wq +cnoreabbrev WQ wq +cnoreabbrev W w +cnoreabbrev Q q +cnoreabbrev Qall qall +cnoreabbrev E Explore + diff --git a/dotfiles/vim-config/map.vimrc b/dotfiles/vim-config/map.vimrc @@ -6,18 +6,7 @@ nnoremap ; : " NERDTree nnoremap <leader>f :NERDTreeToggle<cr> -" Fat finger fixes -cnoreabbrev W! w! -cnoreabbrev Q! q! -cnoreabbrev Qall! qall! -cnoreabbrev Wq wq -cnoreabbrev Wa wa -cnoreabbrev wQ wq -cnoreabbrev WQ wq -cnoreabbrev W w -cnoreabbrev Q q -cnoreabbrev Qall qall -cnoreabbrev E Explore +" Disable q: cuz I hate it map q: <Nop> " Normal mode shortcuts @@ -48,3 +37,6 @@ nnoremap <leader>qq mzggg?G`z " 'zoom to head level' nnoremap zh mzzt10<c-u>`z + +" Quick switch to shell +noremap <C-s> :sh<cr>