summary refs log tree commit diff
path: root/home
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>''
/tr> 2020-12-30Add postfix $ operator to bitJune McEnroe 2020-12-29Add make lexerJune McEnroe 2020-12-29Clean up C lexerJune McEnroe 2020-12-29Clean up hilex code somewhatJune McEnroe 2020-12-29Match lex/yacc %% %{ %} lines as MacroJune McEnroe 2020-12-29Match top-level C definitions as IdentifierTagJune McEnroe 2020-12-29Match C type declarations as IdentifierTagJune McEnroe 2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe 2020-12-29Add hilex HTML outputJune McEnroe