add uppercasing in vim
This commit is contained in:
parent
95d79cd39a
commit
54e31a85ac
1 changed files with 5 additions and 0 deletions
|
@ -323,6 +323,10 @@ map <leader>V :vsp ~/.config/nvim/init.vim<cr>
|
|||
" since u undoes, would it not make sense that U redoes?
|
||||
nnoremap U <C-r>
|
||||
|
||||
" when in insertion mode, C-u uppercases the current word, C-l lowercases it,
|
||||
inoremap <C-u> <esc>gUiw`]a
|
||||
inoremap <C-l> <esc>guiw`]a
|
||||
|
||||
" get rid of the help message popping up when I miss esc and hit F1
|
||||
nnoremap <F1> <ESC>
|
||||
inoremap <F1> <ESC>
|
||||
|
@ -340,6 +344,7 @@ nnoremap <leader>t :vsp .<cr>
|
|||
nnoremap <leader>T :tabedit .<cr>
|
||||
|
||||
" save current buffer with Ctrl-s
|
||||
" TODO do I need this? I reflexively use :w
|
||||
nnoremap <C-s> :w<cr>
|
||||
|
||||
" open/close NERDtree with leader-e
|
||||
|
|
Loading…
Reference in a new issue