diff options
author | June McEnroe <june@causal.agency> | 2018-11-11 15:13:30 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-11-11 15:13:30 -0500 |
commit | f5ea408758f1cb0889237be4cb116a4e9ef1a752 (patch) | |
tree | 05c3dc8853d477fb405d53d87c4717f9f61c4184 | |
parent | Remove msr606 (diff) | |
download | src-f5ea408758f1cb0889237be4cb116a4e9ef1a752.tar.gz src-f5ea408758f1cb0889237be4cb116a4e9ef1a752.zip |
Add \s sort binding and simplify \h and \a
Diffstat (limited to '')
-rw-r--r-- | home/.config/nvim/init.vim | 7 |
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 < |