summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-11 15:13:30 -0500
committerJune McEnroe <june@causal.agency>2018-11-11 15:13:30 -0500
commit3097444049bb52b3174015ee4097cb52e14b5be3 (patch)
tree454950d95d423a229a47eb93c668cb828ab3f4ff
parentRemove msr606 (diff)
downloadsrc-3097444049bb52b3174015ee4097cb52e14b5be3.tar.gz
src-3097444049bb52b3174015ee4097cb52e14b5be3.zip
Add \s sort binding and simplify \h and \a
Diffstat (limited to '')
-rw-r--r--home/.config/nvim/init.vim7
1 files changed, 3 insertions, 4 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 2d23cc22..35f133ab 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -25,7 +25,6 @@ tmap <C-w> <C-\><C-n><C-w>
 
 let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}}
 
-nmap <leader>h :0/^#include </,$?^#include <?sort<CR>:nohlsearch<CR>
-nmap <leader>a ?^#include <<CR>:nohlsearch<CR>o#include <
-nmap <leader>u :0/^use/,$?^use?sort<CR>:nohlsearch<CR>
-nmap <leader>c :0/extern crate/,$?extern crate?sort<CR>:nohlsearch<CR>
+nmap <leader>s vip:sort<CR>
+nmap <leader>h :$?^#include <<CR>:nohlsearch<CR>vip:sort<CR>
+nmap <leader>a :$?^#include <<CR>:nohlsearch<CR>o#include <