Explorar el Código

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 hace 11 años
padre
commit
1855572bc3
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      vim/vimrc

+ 3 - 0
vim/vimrc

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