From 6023ae917f2a09a71bd79cc8c2221cd8014130aa Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 25 Nov 2015 05:58:22 +0100 Subject: nvim: init: REorganize mappings, drop space as leader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nvim/init.vim | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'nvim') diff --git a/nvim/init.vim b/nvim/init.vim index 57ce4c4..db1cc36 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -43,15 +43,6 @@ set linebreak " Don’t wrap lines in the middle of a word set spelllang=en_us set backupdir=$XDG_DATA_HOME/nvim/backup " Don't write backups in current dir -" Use space as a leader -map -nmap / :nohlsearch - -" Toggle spell checking -nmap s :set spell! - -cmap w!! w !sudo tee % >/dev/null - " Tabs are 4 spaces wide set tabstop=4 set shiftwidth=4 @@ -65,6 +56,14 @@ set list +""" +" Mappings +" + +" Toggle spell checking +nmap s :set spell! + +cmap w!! w !sudo tee % >/dev/null " Easier window moving map h map j -- cgit v1.2.3-70-g09d2