From 44deddba852d17888345203ec44c8593bbde3823 Mon Sep 17 00:00:00 2001 From: templis Date: Sun, 29 Jul 2018 03:09:44 +0200 Subject: [PATCH] added some changes --- .config/nvim/init.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 825ce26..dab26a3 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -103,14 +103,14 @@ let mapleader="\" set diffopt+=iwhite "Enter to go to EOF and backspace to go to start - nnoremap G - nnoremap gg + "nnoremap G + "nnoremap gg " Stop cursor from jumping over wrapped lines nnoremap j gj nnoremap k gk " Make HOME and END behave like shell - inoremap - inoremap + "inoremap + "inoremap " } " UI Options { @@ -157,6 +157,9 @@ let mapleader="\" " Experimental { " Search and Replace nmap s :%s//g + " write files as root (if you've forgotten to open it as root + " simply do :W instead of :w + command W :execute ':silent w !sudo tee % > /dev/null' | :edit! " } " Plugin Settings { @@ -197,4 +200,3 @@ let mapleader="\" " } " vim:set ft=vim sw=4 ts=4: -command W :execute ':silent w !sudo tee % > /dev/null' | :edit!