summary refs log tree commit diff
path: root/home/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home/.config/nvim/init.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 9297ea64..ae21a22c 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -28,6 +28,5 @@ tmap <C-w> <C-\><C-n><C-w>
 let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}}
 
 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 <
+nmap <leader>a :0/^#include <<CR>:nohlsearch<CR>O#include <
 nmap <leader>l :0read ~/src/etc/agpl.c<CR>''