Advertisement
Guest User

Untitled

a guest
Jul 10th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.35 KB | None | 0 0
  1. " Backup & Undo files
  2. set noswapfile writebackup backup undofile undodir=~/.local/share/nvim/undofiles backupdir=~/.local/share/nvim/backupfiles
  3. " 21st century buffer splitting
  4. set splitbelow splitright
  5. " 21st century searching (/ & ?)
  6. set ignorecase smartcase hlsearch incsearch
  7. " Wildmenu
  8. set wildmenu wildmode=longest:full,full
  9. " Folding
  10. set foldmethod=marker
  11. " Wrapping & Scrolling
  12. set nowrap
  13. set scrolloff=2
  14. set sidescrolloff=4
  15. noremap j gj
  16. noremap k gk
  17. " Tabs (8) > * spaces
  18. set noexpandtab
  19. set tabstop=8 shiftwidth=8 softtabstop=8
  20. " Movement mappings
  21. noremap H ^
  22. noremap L $
  23. " Random convenient mappings
  24. nnoremap Q gq
  25. noremap <silent> <C-c> :noh<CR>
  26. command TrimTWS %s/\s\+$//e
  27. command TrimTWL %s/\($\n\s*\)\+\%$//e
  28. nnoremap <leader>tws :TrimTWS<CR>
  29. nnoremap <leader>twl :TrimTWL<CR>
  30. " Filetype specific behaviour & autocomplete
  31. filetype plugin indent on
  32. " Syntax highlighting
  33. syntax on
  34. colorscheme rudunnx
  35. " Non-content highlighting
  36. set list listchars=trail:·,nbsp:␣,tab:\ \ ,precedes:<,extends:>
  37. " Editor
  38. set nonumber showcmd
  39. " Statusline
  40. set ruler laststatus=2 showmode
  41. " Mouse
  42. set mouse=a
  43. " Automatically update files changed outside
  44. set autoread
  45. " Backspace everything
  46. set backspace=2
  47. " Motion anywhere
  48. set virtualedit=all
  49. " Plugin settings
  50. let g:ale_sign_column_always = 1
  51. let g:ale_lint_on_text_changed = 'never'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement