diff options
Diffstat (limited to 'vim/ftplugin')
| -rw-r--r-- | vim/ftplugin/hare.vim | 1 | ||||
| -rw-r--r-- | vim/ftplugin/markdown.vim | 2 | ||||
| -rw-r--r-- | vim/ftplugin/scrollback.vim | 24 | ||||
| -rw-r--r-- | vim/ftplugin/text.vim | 3 |
4 files changed, 30 insertions, 0 deletions
diff --git a/vim/ftplugin/hare.vim b/vim/ftplugin/hare.vim new file mode 100644 index 0000000..6244751 --- /dev/null +++ b/vim/ftplugin/hare.vim @@ -0,0 +1 @@ +setlocal keywordprg=haredoc diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim new file mode 100644 index 0000000..d08606c --- /dev/null +++ b/vim/ftplugin/markdown.vim @@ -0,0 +1,2 @@ +setlocal cc= +setlocal linebreak diff --git a/vim/ftplugin/scrollback.vim b/vim/ftplugin/scrollback.vim new file mode 100644 index 0000000..2dfdec5 --- /dev/null +++ b/vim/ftplugin/scrollback.vim @@ -0,0 +1,24 @@ +set clipboard^=unnamedplus +set signcolumn=no +set nolist +set laststatus=0 +set scrolloff=0 +set nowrapscan +set relativenumber + +xnoremap <buffer> <cr> "+y +nnoremap <buffer> q <cmd>q!<cr> +nnoremap <buffer> i <cmd>q!<cr> +nnoremap <buffer> I <cmd>q!<cr> +nnoremap <buffer> A <cmd>q!<cr> +nnoremap <buffer> H H +nnoremap <buffer> L L + +if exists(':HideBadWhiteSpace') + HideBadWhiteSpace +endif + +call cursor(line('$'), 0) +silent! call search('\S', 'b') +silent! call search('\n*\%$') +execute "normal! \<c-y>" diff --git a/vim/ftplugin/text.vim b/vim/ftplugin/text.vim new file mode 100644 index 0000000..b55bb21 --- /dev/null +++ b/vim/ftplugin/text.vim @@ -0,0 +1,3 @@ +setlocal spell +setlocal linebreak +setlocal cc= |
