Browse Source

Replace old sudo tee trick with suda.vim

coc
Schneider 6 years ago
parent
commit
d483210734
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 5
      init.vim

5
init.vim

@ -29,9 +29,10 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } " fuzzy file f
Plug 'junegunn/fzf.vim' " vim integration for fzf Plug 'junegunn/fzf.vim' " vim integration for fzf
Plug 'airblade/vim-gitgutter' " git status in gutter column Plug 'airblade/vim-gitgutter' " git status in gutter column
Plug 'radenling/vim-dispatch-neovim' " support for :Start command, needed in dadbod Plug 'radenling/vim-dispatch-neovim' " support for :Start command, needed in dadbod
Plug 'lambdalisue/suda.vim' " As w!! did not work anymore in nvim
" html / templates{{{ " html / templates{{{
Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " emmet support for vim - easily create markdup wth CSS-like syntax
Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue', 'xml'] } " emmet support for vim - easily create markdup wth CSS-like syntax
Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " match tags in html, similar to paren support Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " match tags in html, similar to paren support
Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " html5 support Plug 'othree/html5.vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " html5 support
Plug 'lumiliet/vim-twig', { 'for': ['html'] } " twig syntax support Plug 'lumiliet/vim-twig', { 'for': ['html'] } " twig syntax support
@ -186,7 +187,7 @@ nmap <silent> <leader>k :NERDTreeToggle<cr>
" expand to the path of the file in the current buffer " expand to the path of the file in the current buffer
nmap <silent> <leader>y :NERDTreeFind<cr> nmap <silent> <leader>y :NERDTreeFind<cr>
" Allow saving of files as sudo when I forgot to start vim using sudo. " Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
cmap w!! :w suda://%
"Toggle set paste "Toggle set paste
nmap <leader>tp :set paste!<cr> nmap <leader>tp :set paste!<cr>
" scroll the viewport faster " scroll the viewport faster

Loading…
Cancel
Save