summary refs log tree commit diff
path: root/home/.config/nvim
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
commitf5ea408758f1cb0889237be4cb116a4e9ef1a752 (patch)
tree05c3dc8853d477fb405d53d87c4717f9f61c4184 /home/.config/nvim
parentRemove msr606 (diff)
downloadsrc-f5ea408758f1cb0889237be4cb116a4e9ef1a752.tar.gz
src-f5ea408758f1cb0889237be4cb116a4e9ef1a752.zip
Add \s sort binding and simplify \h and \a
Diffstat (limited to 'home/.config/nvim')
-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 <