added some changes
This commit is contained in:
parent
b1a64a266c
commit
44deddba85
@ -103,14 +103,14 @@ let mapleader="\<SPACE>"
|
||||
set diffopt+=iwhite
|
||||
|
||||
"Enter to go to EOF and backspace to go to start
|
||||
nnoremap <CR> G
|
||||
nnoremap <BS> gg
|
||||
"nnoremap <CR> G
|
||||
"nnoremap <BS> gg
|
||||
" Stop cursor from jumping over wrapped lines
|
||||
nnoremap j gj
|
||||
nnoremap k gk
|
||||
" Make HOME and END behave like shell
|
||||
inoremap <C-E> <End>
|
||||
inoremap <C-A> <Home>
|
||||
"inoremap <C-E> <End>
|
||||
"inoremap <C-A> <Home>
|
||||
" }
|
||||
|
||||
" UI Options {
|
||||
@ -157,6 +157,9 @@ let mapleader="\<SPACE>"
|
||||
" Experimental {
|
||||
" Search and Replace
|
||||
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 {
|
||||
@ -197,4 +200,3 @@ let mapleader="\<SPACE>"
|
||||
" }
|
||||
|
||||
" vim:set ft=vim sw=4 ts=4:
|
||||
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
|
||||
|
Loading…
Reference in New Issue
Block a user