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 | 3097444049bb52b3174015ee4097cb52e14b5be3 (patch) | |
tree | 454950d95d423a229a47eb93c668cb828ab3f4ff | |
parent | Remove msr606 (diff) | |
download | src-3097444049bb52b3174015ee4097cb52e14b5be3.tar.gz src-3097444049bb52b3174015ee4097cb52e14b5be3.zip |
Add \s sort binding and simplify \h and \a
-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 < |