diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-11-25 05:58:22 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-11-25 05:58:22 +0100 |
commit | 6023ae917f2a09a71bd79cc8c2221cd8014130aa (patch) | |
tree | 16251de15bbf5b0f0815f935b42af361c7b11ab9 | |
parent | 4441dc5a7495f65fd2d80799cb828ddac7a61101 (diff) | |
download | dotfiles-6023ae917f2a09a71bd79cc8c2221cd8014130aa.tar.xz |
nvim: init: REorganize mappings, drop space as leader
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | nvim/init.vim | 17 |
1 files changed, 8 insertions, 9 deletions
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 <space> <Leader> -nmap <silent> <Leader>/ :nohlsearch<CR> - -" Toggle spell checking -nmap <silent> <Leader>s :set spell!<CR> - -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 <silent> <Leader>s :set spell!<CR> + +cmap w!! w !sudo tee % >/dev/null " Easier window moving map <C-h> <C-w>h map <C-j> <C-w>j |