summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-04-17 12:02:21 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-04-17 12:02:21 -0500
commitd228b792e7aebd573470b4d10c9cbf9deb404719 (patch)
treea9e062751509ea0280829c6666a9805380877f34
parent51c91732f84707686e92f01d3d6387fba88675bd (diff)
downloaddotconfig-d228b792e7aebd573470b4d10c9cbf9deb404719.tar.xz
dotconfig-d228b792e7aebd573470b4d10c9cbf9deb404719.zip
unmap Ex mode in vim
-rwxr-xr-xnvim/init.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
index e017191..bf9ccc4 100755
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -75,11 +75,13 @@ nmap <C-T> :tabnew<CR>
" Copy and cut with standard bindings
map <C-c> "+y
map <C-x> "+x
+" Unmap Ex mode
+map Q <NOP>
" Perform dot commands over visual blocks:
vnoremap . :normal .<CR>
" Save file as sudo on files that require root permission
cnoremap w!! execute 'silent! write !doas tee % >/dev/null' <bar> edit!
-" Capitalize every word on the line
+" Camel case every word on the line
nmap gcc :s/\v<(.)(\w*)/\u\1\L\2/g<CR>
nmap gCC :%s/\v<(.)(\w*)/\u\1\L\2/g<CR>
" HTML shortcuts