diff options
-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 < |