1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Add some new Vim config options

This commit is contained in:
Joe Groocock 2016-05-16 17:46:22 +01:00
parent 0eef955425
commit aad2c917a6

7
.vimrc
View File

@ -129,11 +129,16 @@ noremap <Leader>p "*p
noremap <Leader>Y "+y noremap <Leader>Y "+y
noremap <Leader>P "+p noremap <Leader>P "+p
" Search options
set hlsearch
set ignorecase
set smartcase
" Save aliases.
noremap <Leader>q :wq<CR> noremap <Leader>q :wq<CR>
com W w com W w
com Q q com Q q
com Wq wq com Wq wq
com WQ wq com WQ wq
" Write with sudo " Write with sudo
cmap w!! w !sudo tee > /dev/null % cmap w!! w !sudo tee > /dev/null %