~darklands/dotfiles

ref: 640919eea3cffa27e0f6baf1ea9c460380dfe0f3 dotfiles/.config/nvim/init.vim -rw-r--r-- 699 bytes
640919ee — Ben O'Neill set line width for markdown file 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
" basics
set encoding=utf-8
let mapleader=","
set ttyfast
set lazyredraw
set noswapfile
set nobackup
set number relativenumber
set bg=light
set tabstop=4
set sw=4
set noexpandtab
set autoindent
set smartindent
set ignorecase
set nohlsearch
set incsearch
set showmatch
set magic
set wrap linebreak

" syntax
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
autocmd BufRead,BufNewFile *.ms set filetype=groff
autocmd BufRead,BufNewFile *.ms set tw=70
autocmd BufRead,BufNewFile *.[1-9] set filetype=groff
autocmd BufRead,BufNewFile *.[1-9] set tw=70
autocmd BufRead,BufNewFile *.txt set tw=70
autocmd BufRead,BufNewFile *.md set tw=70
syntax on
filetype plugin indent on