-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat.vim
More file actions
34 lines (25 loc) · 923 Bytes
/
Copy pathformat.vim
File metadata and controls
34 lines (25 loc) · 923 Bytes
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
32
33
34
" Formatting
" ex. tab width
" fully support utf-8
set encoding=utf-8
" set fileencoding=utf-8 " For new files
" Support for various encodings. Neovim should automatically detect the encoding
set fileencodings=ucs-bom,utf-8,sjis,euc-jp,latin1
" show line number and relative line number
set number
" tab options
set tabstop=8
set softtabstop=4
set shiftwidth=4
" Automatically insert line break when text reaches 100th column
set textwidth=100
" Wrapping options
set formatoptions=tc " Wrap text and comments using textwidth
set formatoptions+=r " Continue comments when pressing ENTER in insert mode
set formatoptions+=q " Enable formatting of comments with qg
set formatoptions+=n " Detect lists for formatting
set formatoptions+=b " Auto-wrap in insert mode, and do not wrap old long lines
" Indentation for yaml files
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" Turn off spell check
set nospell