added some changes

This commit is contained in:
templis 2018-07-29 03:09:44 +02:00
parent b1a64a266c
commit 44deddba85

View File

@ -103,14 +103,14 @@ let mapleader="\<SPACE>"
set diffopt+=iwhite set diffopt+=iwhite
"Enter to go to EOF and backspace to go to start "Enter to go to EOF and backspace to go to start
nnoremap <CR> G "nnoremap <CR> G
nnoremap <BS> gg "nnoremap <BS> gg
" Stop cursor from jumping over wrapped lines " Stop cursor from jumping over wrapped lines
nnoremap j gj nnoremap j gj
nnoremap k gk nnoremap k gk
" Make HOME and END behave like shell " Make HOME and END behave like shell
inoremap <C-E> <End> "inoremap <C-E> <End>
inoremap <C-A> <Home> "inoremap <C-A> <Home>
" } " }
" UI Options { " UI Options {
@ -157,6 +157,9 @@ let mapleader="\<SPACE>"
" Experimental { " Experimental {
" Search and Replace " Search and Replace
nmap <Leader>s :%s//g<Left><Left> nmap <Leader>s :%s//g<Left><Left>
" 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 { " Plugin Settings {
@ -197,4 +200,3 @@ let mapleader="\<SPACE>"
" } " }
" vim:set ft=vim sw=4 ts=4: " vim:set ft=vim sw=4 ts=4:
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!