Skip to content
Snippets Groups Projects
Commit 03360136 authored by Chris Coley's avatar Chris Coley
Browse files

Adding the VIM 'write with sudo' trick to vimrc as a mapping

parent 8056f614
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,11 @@ set nolist
set listchars=tab:»-,trail:·,extends:>,precedes:<,eol:¬
noremap <F10> :set list!<CR>
" Allow saving of files as sudo when I forgot to start vim using sudo
cmap w!! q !sudo tee > /dev/null %
" Tab options
set expandtab " Soft tabs, changes tabs to spaces
set tabstop=4 " Number of spaces in a tab
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment