Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Backup & Undo files
- set noswapfile writebackup backup undofile undodir=~/.local/share/nvim/undofiles backupdir=~/.local/share/nvim/backupfiles
- " 21st century buffer splitting
- set splitbelow splitright
- " 21st century searching (/ & ?)
- set ignorecase smartcase hlsearch incsearch
- " Wildmenu
- set wildmenu wildmode=longest:full,full
- " Folding
- set foldmethod=marker
- " Wrapping & Scrolling
- set nowrap
- set scrolloff=2
- set sidescrolloff=4
- noremap j gj
- noremap k gk
- " Tabs (8) > * spaces
- set noexpandtab
- set tabstop=8 shiftwidth=8 softtabstop=8
- " Movement mappings
- noremap H ^
- noremap L $
- " Random convenient mappings
- nnoremap Q gq
- noremap <silent> <C-c> :noh<CR>
- command TrimTWS %s/\s\+$//e
- command TrimTWL %s/\($\n\s*\)\+\%$//e
- nnoremap <leader>tws :TrimTWS<CR>
- nnoremap <leader>twl :TrimTWL<CR>
- " Filetype specific behaviour & autocomplete
- filetype plugin indent on
- " Syntax highlighting
- syntax on
- colorscheme rudunnx
- " Non-content highlighting
- set list listchars=trail:·,nbsp:␣,tab:\ \ ,precedes:<,extends:>
- " Editor
- set nonumber showcmd
- " Statusline
- set ruler laststatus=2 showmode
- " Mouse
- set mouse=a
- " Automatically update files changed outside
- set autoread
- " Backspace everything
- set backspace=2
- " Motion anywhere
- set virtualedit=all
- " Plugin settings
- let g:ale_sign_column_always = 1
- let g:ale_lint_on_text_changed = 'never'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement