summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-03-28 12:49:29 -0400
committerJune McEnroe <programble@gmail.com>2018-03-28 12:49:29 -0400
commit5e3703d2e7cbc9a4364f0d121451cf74c3d00956 (patch)
treec3492af4e6db936a2852ccfee4f4c7b1d032e5c6
parentAdd \u to sort use lines (diff)
downloadsrc-5e3703d2e7cbc9a4364f0d121451cf74c3d00956.tar.gz
src-5e3703d2e7cbc9a4364f0d121451cf74c3d00956.zip
Sort extern crate lines with \c
Diffstat (limited to '')
-rw-r--r--home/.config/nvim/init.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 53fbb10d..04a9d56b 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -24,3 +24,4 @@ tmap <C-w> <C-\><C-n><C-w>
 
 nmap <leader>h :0/^#include </,$?^#include <?sort<CR>:nohlsearch<CR>
 nmap <leader>u :0/^use/,$?^use?sort<CR>:nohlsearch<CR>
+nmap <leader>c :0/extern crate/,$?extern crate?sort<CR>:nohlsearch<CR>