From d2e8e98b244f778f650684e0984197b5da513b46 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 17 Aug 2018 21:54:53 -0400 Subject: Add vim mapping to add a #include Unfortunately as far as I know I can't have it automatically sort them after I hit escape. --- home/.config/nvim/init.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'home') diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index a3e8bb93..3651af62 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -26,5 +26,6 @@ tmap let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}} nmap h :0/^#include :nohlsearch +nmap a ?^#include <:nohlsearcho#include < nmap u :0/^use/,$?^use?sort:nohlsearch nmap c :0/extern crate/,$?extern crate?sort:nohlsearch -- cgit 1.4.1