From 4d44bff605c600dbc032cb02fea48c75989aeb7a Mon Sep 17 00:00:00 2001 From: Curtis 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(+) 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