37 lines
981 B
VimL
37 lines
981 B
VimL
set title
|
|
set bg=light
|
|
set go=a
|
|
set mouse=a
|
|
set nohlsearch
|
|
set clipboard+=unnamedplus
|
|
set noshowmode
|
|
set noruler
|
|
set laststatus=0
|
|
set noshowcmd
|
|
|
|
" Some basics:
|
|
nnoremap c "_c
|
|
set nocompatible
|
|
filetype plugin on
|
|
syntax on
|
|
set encoding=utf-8
|
|
set number relativenumber
|
|
" Enable autocompletion:
|
|
set wildmode=longest,list,full
|
|
" Disables automatic commenting on newline:
|
|
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
|
" Perform dot commands over visual blocks:
|
|
vnoremap . :normal .<CR>
|
|
" Goyo plugin makes text more readable when writing prose:
|
|
map <leader>f :Goyo \| set bg=light \| set linebreak<CR>
|
|
" Spell-check set to <leader>o, 'o' for 'orthography':
|
|
map <leader>o :setlocal spell! spelllang=en_us<CR>
|
|
" Splits open at the bottom and right, which is non-retarded, unlike vim defaults.
|
|
set splitbelow splitright
|
|
|
|
" Shortcutting split navigation, saving a keypress:
|
|
map <C-h> <C-w>h
|
|
map <C-j> <C-w>j
|
|
map <C-k> <C-w>k
|
|
map <C-l> <C-w>l
|