Guest User

Untitled

a guest
Sep 25th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. filetype plugin indent on
  2. syntax on
  3. set number
  4. set incsearch
  5. set noswapfile
  6. " If the current buffer has never been saved, it will have no name,
  7. " call the file browser to save it, otherwise just save it.
  8. command -nargs=0 -bar Update if &modified
  9. \| if empty(bufname('%'))
  10. \| browse confirm write
  11. \| else
  12. \| confirm write
  13. \| endif
  14. \|endif
  15. nnoremap <silent> <C-S> :<C-u>Update<CR>
  16. inoremap <c-s> <Esc>:Update<CR>
Add Comment
Please, Sign In to add comment