Skip to content

Commit abe74f9

Browse files
authored
Merge pull request #42 from rmariano/fixes
Fixes
2 parents b3a3336 + 9ed5432 commit abe74f9

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.vimrc

+2
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,5 @@ nnoremap <leader>e :set number!<CR>
171171
autocmd FileType xml map <F3> :call FormatXML()<CR>
172172
"" Remove trailing white spaces upon saving
173173
autocmd BufWritePre * :%s/\s\+$//e
174+
"" Python: Highlight everything
175+
let g:python_highlight_all = 1

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ extras: flake8 fugitive nerdtree
7777
# make install BRANCH=<branch>
7878
.PHONY: install
7979
install: dirs
80-
@wget -O /tmp/vimconfig.zip $(REPO_HOME)/archive/$(BRANCH).zip
81-
@mkdir -p /tmp/vimconfig
82-
@unzip -d /tmp/vimconfig /tmp/vimconfig.zip
83-
$(MAKE) -C /tmp/vimconfig/vim-config-$(BRANCH) deploy
80+
rm -fr /tmp/vimconfig && mkdir -p /tmp/vimconfig
81+
@wget -O /tmp/vimconfig/vimconfig.zip $(REPO_HOME)/archive/$(BRANCH).zip
82+
@unzip -d /tmp/vimconfig /tmp/vimconfig/vimconfig.zip
83+
@cd /tmp/vimconfig/vim-config-$(BRANCH) && make deploy && cd -
8484

8585
# make changelog TAG=<tag>
8686
.PHONY: changelog

README.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ Features
8383

8484
* ``<F2>``: toggle spell check.
8585
* ``<F3>``: Correct files automatically
86-
* For XML with correct the formatting
87-
* Python files: auto-PEP-8, correct imports, and run ``flake8`` checks.
86+
87+
* XML: auto-format & indent.
88+
* Python: PEP-8, sort imports, and run ``flake8`` checks.
89+
8890
* ``<F4>``: toggle paste mode
8991

9092
* ``<leader>`` + ``nh`` as a shortcut for ``:nohlsearch``

after/ftplugin/python.vim

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
"" Shortcut for commenting out lines in python files
44
nnoremap <buffer> <localleader>c I# <ESC>
5-
"" Highlight everything
6-
let g:python_highlight_all = 1
75
86
function! AutofixPy()
97
echom "Correcting Python file"

0 commit comments

Comments
 (0)