mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-25 20:51:26 -05:00
Set tabs to two spaces in text files, and fix markdown-specific settings (it was using the wrong filetype)
This commit is contained in:
parent
9a8186288a
commit
b2cda4fe26
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ autocmd FileChangedRO * nested set noreadonly
|
|||
|
||||
"filtype specific settings
|
||||
autocmd BufEnter,FileType sh setlocal iskeyword-=.
|
||||
autocmd Filetype text,mkd,mkdc,gitcommit,notes,mail,notmuch,rst,taskreport setlocal nonumber spell nolist linebreak breakat&vim breakat-=* breakat-=. breakat-=/ breakat-=? breakat-=, breakat-=: breakat-=; breakat-=! "set some defaults for word processing
|
||||
autocmd Filetype text,markdown,mkdc,gitcommit,notes,mail,notmuch,rst,taskreport setlocal nonumber spell nolist linebreak tabstop=2 shiftwidth=2 breakat&vim breakat-=* breakat-=. breakat-=/ breakat-=? breakat-=, breakat-=: breakat-=; breakat-=! "set some defaults for word processing
|
||||
autocmd Filetype text,gitcommit,notes,mail,notmuch,rst,taskreport setlocal wrap
|
||||
autocmd FileType tmux,taskrc setlocal commentstring=#\ %s "set the comment string to #
|
||||
autocmd FileType slrnrc setlocal commentstring=%%\ %s "set the comment string to %
|
||||
|
|
|
@ -839,8 +839,8 @@
|
|||
endif
|
||||
|
||||
"markdown
|
||||
autocmd FileType mkd nnoremap <buffer> <silent><expr> <Leader>f ':TableFormat<CR>'
|
||||
autocmd FileType mkd xnoremap <buffer> <silent><expr> <Leader>f '<Esc>:TableFormat<CR>gv'
|
||||
autocmd FileType markdown nnoremap <buffer> <silent><expr> <Leader>f ':TableFormat<CR>'
|
||||
autocmd FileType markdown xnoremap <buffer> <silent><expr> <Leader>f '<Esc>:TableFormat<CR>gv'
|
||||
|
||||
"qf-sidebar
|
||||
autocmd FileType qf map <buffer> <LeftMouse> <LeftMouse>0
|
||||
|
|
Loading…
Reference in a new issue