mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
added whitespace highlighting and removal, and bracket/paren completion
This commit is contained in:
parent
fe9d2d94be
commit
1f4de42e3b
1 changed files with 5 additions and 6 deletions
11
.vimrc
11
.vimrc
|
|
@ -27,6 +27,7 @@ Bundle 'davidhalter/jedi-vim'
|
||||||
Bundle 'tpope/vim-fugitive'
|
Bundle 'tpope/vim-fugitive'
|
||||||
Bundle 'altercation/vim-colors-solarized'
|
Bundle 'altercation/vim-colors-solarized'
|
||||||
Bundle 'ervandew/supertab'
|
Bundle 'ervandew/supertab'
|
||||||
|
Bundle 'Raimondi/delimitMate'
|
||||||
|
|
||||||
" The rest of your config follows here
|
" The rest of your config follows here
|
||||||
|
|
||||||
|
|
@ -88,12 +89,10 @@ let g:pymode_syntax_space_errors = g:pymode_syntax_all
|
||||||
" Don't autofold code
|
" Don't autofold code
|
||||||
let g:pymode_folding = 0
|
let g:pymode_folding = 0
|
||||||
|
|
||||||
|
" Highlight trailing white space and delete on save
|
||||||
" Other settings
|
autocmd InsertLeave *.py match ErrorMsg '\s\+$'
|
||||||
" Use <leader>l to toggle display of whitespace
|
autocmd InsertEnter *.py call clearmatches()
|
||||||
nmap <leader>l :set list!<CR>
|
autocmd BufWritePre *.py :%s/\s\+$//e
|
||||||
" And set some nice chars to do it with
|
|
||||||
set listchars=tab:»\ ,eol:¬
|
|
||||||
|
|
||||||
" automatically change window's cwd to file's dir
|
" automatically change window's cwd to file's dir
|
||||||
set autochdir
|
set autochdir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue