From 193372dd54709926bdab588d5c665e07f0e5fff6 Mon Sep 17 00:00:00 2001 From: clsr Date: Fri, 18 Aug 2017 13:51:25 +0200 Subject: Initial commit --- ftplugin/cnm.vim | 29 +++++++++++++++++++++++++++++ ftplugin/cnp.vim | 6 ++++++ 2 files changed, 35 insertions(+) create mode 100755 ftplugin/cnm.vim create mode 100755 ftplugin/cnp.vim (limited to 'ftplugin') diff --git a/ftplugin/cnm.vim b/ftplugin/cnm.vim new file mode 100755 index 0000000..990c73a --- /dev/null +++ b/ftplugin/cnm.vim @@ -0,0 +1,29 @@ +" utf-8 with LF-only line terminators is the proper way to write text files +setlocal encoding=utf-8 +setlocal fileencodings=utf-8 +setlocal fileformat=unix + +" style stuff +setlocal tabstop=4 +setlocal softtabstop=4 +setlocal shiftwidth=4 + +" important! cnm requires the tab character to indent +setlocal noexpandtab +" match indents of the current line +setlocal autoindent + +" break lines at whitespace or symbol +setlocal linebreak +" match the indent of the current line when breaking lines +setlocal breakindent +" make line breaks obvious +setlocal showbreak=… + +" show tab indents and trailing spaces +setlocal list +setlocal list listchars=tab:\|\ ,trail:· +" in gray +"highlight SpecialKey ctermfg=8 +" for neovim +"highlight Whitespace ctermfg=8 diff --git a/ftplugin/cnp.vim b/ftplugin/cnp.vim new file mode 100755 index 0000000..0ef35d0 --- /dev/null +++ b/ftplugin/cnp.vim @@ -0,0 +1,6 @@ +" it's a binary protocol, but any would likely be encoded as utf-8 anyway +setlocal encoding=utf-8 +setlocal fileencodings=utf-8 + +" crlf is wrong +setlocal fileformat=unix -- cgit