File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -171,3 +171,5 @@ nnoremap <leader>e :set number!<CR>
171
171
autocmd FileType xml map <F3> :call FormatXML()<CR>
172
172
" " Remove trailing white spaces upon saving
173
173
autocmd BufWritePre * :% s /\s\+$/ /e
174
+ " " Python: Highlight everything
175
+ let g: python_highlight_all = 1
Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ extras: flake8 fugitive nerdtree
77
77
# make install BRANCH=<branch>
78
78
.PHONY : install
79
79
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 -
84
84
85
85
# make changelog TAG=<tag>
86
86
.PHONY : changelog
Original file line number Diff line number Diff line change @@ -83,8 +83,10 @@ Features
83
83
84
84
* ``<F2> ``: toggle spell check.
85
85
* ``<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
+
88
90
* ``<F4> ``: toggle paste mode
89
91
90
92
* ``<leader> `` + ``nh `` as a shortcut for ``:nohlsearch ``
Original file line number Diff line number Diff line change 2
2
3
3
" " Shortcut for commenting out lines in python files
4
4
nnoremap <buffer> <localleader> c I# <ESC>
5
- " " Highlight everything
6
- let g: python_highlight_all = 1
7
5
8
6
function ! AutofixPy ()
9
7
echom " Correcting Python file"
You can’t perform that action at this time.
0 commit comments