Переглянути джерело

Add vim mapping to quit a file

That took long enough for me to think of creating it, given there is a
convenient shortcut for saving and closing a file, but not for this.
Weiyi Lou 10 роки тому
батько
коміт
1855572bc3
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      vim/vimrc

+ 3 - 0
vim/vimrc

@@ -70,6 +70,9 @@ let mapleader = ' '
 " Save changes to a file
 nmap <silent> <Leader>w :up<CR>
 
+" Close a file
+nmap <silent> <Leader>q :q<CR>
+
 " More convenient escape
 inoremap kj <Esc>
 inoremap jk <Esc>