From 41e460e54d13db6c9cf18c3f78afca283c692811 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 27 Jan 2015 15:28:45 -0800 Subject: [PATCH] Remove cute-python vim plugin --- vim/bundle/cute-python/README.markdown | 46 -------------- .../cute-python/after/syntax/python.vim | 35 ----------- vim/bundle/cute-python/conceal-test.py | 61 ------------------- 3 files changed, 142 deletions(-) delete mode 100644 vim/bundle/cute-python/README.markdown delete mode 100644 vim/bundle/cute-python/after/syntax/python.vim delete mode 100644 vim/bundle/cute-python/conceal-test.py diff --git a/vim/bundle/cute-python/README.markdown b/vim/bundle/cute-python/README.markdown deleted file mode 100644 index 9940c8f..0000000 --- a/vim/bundle/cute-python/README.markdown +++ /dev/null @@ -1,46 +0,0 @@ -This syntax file displays unicode characters for some Python operators and -built-in functions, turning the following: - -```python - map (lambda x: x, [1,2,3]) - - def foo(e, a): - if e in [1,2,3] and not a: - return math.sqrt(math.pi) - else: - return sum([1,2,3]) -``` - -into - -```python - map (λ x: x, [1,2,3]) - - def foo(e, a): - if e ∈ [1,2,3] ∧ ¬a: - return √(π) - else: - return ∑([1,2,3]) -``` - -Screenshot: - - - -*This does not – at any point – alter your source code*. It simply uses Vim's -"conceal" feature to “hide” `in` behind `∈`, etc. Whenever the cursor is at -a line with concealed text, the text will be expanded. - -To install, simply put `python.vim` in `~/.vim/after/syntax` or use something -like [Pathogen](https://github.com/tpope/vim-pathogen) (recommended). - -Vim ≥ 7.3 is required. - -The branch `moresymbols` includes commits from various people that add even more -conceal replacements. I try to maintain a healthy balance in the `master` -branch, but if you like to conceal even more operators or don't mind slight -inaccuracies in what mathematical symbols are used to represent, you should have -a look at the extra symbols in the `moresymbols` branch. - -This plug-in is very much inspired by - diff --git a/vim/bundle/cute-python/after/syntax/python.vim b/vim/bundle/cute-python/after/syntax/python.vim deleted file mode 100644 index 7f5c6a1..0000000 --- a/vim/bundle/cute-python/after/syntax/python.vim +++ /dev/null @@ -1,35 +0,0 @@ -" we need the conceal feature (vim ≥ 7.3) -if !has('conceal') - finish -endif - -" remove the keywords. we'll re-add them below -syntax clear pythonOperator - -syntax match pythonOperator "\" - -syntax match pyNiceOperator "\" conceal cchar=∈ -syntax match pyNiceOperator "\" conceal cchar=∨ -syntax match pyNiceOperator "\" conceal cchar=∧ -" include the space after “not” – if present – so that “not a” becomes “¬a”. -" also, don't hide “not” behind ‘¬’ if it is after “is ”. -syntax match pyNiceOperator "\%(is \)\@\)" conceal cchar=¬ -syntax match pyNiceOperator "\" conceal cchar=∉ -syntax match pyNiceOperator "<=" conceal cchar=≤ -syntax match pyNiceOperator ">=" conceal cchar=≥ -" only conceal “==” if alone, to avoid concealing SCM conflict markers -syntax match pyNiceOperator "=\@" conceal cchar=√ -syntax match pyNiceKeyword "\<\%(math\.\)\?pi\>" conceal cchar=π - -syntax keyword pyNiceStatement lambda conceal cchar=λ - -hi link pyNiceOperator Operator -hi link pyNiceStatement Statement -hi link pyNiceKeyword Keyword -hi! link Conceal Operator - -setlocal conceallevel=1 diff --git a/vim/bundle/cute-python/conceal-test.py b/vim/bundle/cute-python/conceal-test.py deleted file mode 100644 index 1d9c744..0000000 --- a/vim/bundle/cute-python/conceal-test.py +++ /dev/null @@ -1,61 +0,0 @@ -# conceal test -- lines should match - -""" -if a is not None: pass """ -if a is not None: pass - -""" -if b is None: pass """ -if b is None: pass - -""" -if 3 ∈ [1,2,3]: pass """ -if 3 in [1,2,3]: pass - -""" -if 4 ∉ [1,2,3]: pass """ -if 4 not in [1,2,3]: pass - -""" -if a ≡ b: pass """ -if a == b: pass - -""" -√(7) """ -sqrt(7) - -""" -π """ -pi - -""" -map (λ x: x, [1,2,3]) """ -map (lambda x: x, [1,2,3]) - -""" -a ∧ b """ -a and b - -""" -a ∨ b """ -a or b - -""" -∑([1,2,3]) """ -sum([1,2,3]) - -""" -if a ≢ b: pass """ -if a != b: pass - -""" -if a ≥ b: pass """ -if a >= b: pass - -""" -if a ≤ b: pass """ -if a <= b: pass - -""" -if e ∈ [1,2,3] ∧ ¬a: """ -if e in [1,2,3] and not a: