Added a fix for Python tabs in the vimrc.
parent
042ac992f9
commit
01de57b2c8
16
vimrc
16
vimrc
|
@ -16,3 +16,19 @@ let &t_8b="\<Esc>[48;2;%lu;%lu:lum"
|
||||||
execute "set <xDown>=\e[1;*B"
|
execute "set <xDown>=\e[1;*B"
|
||||||
execute "set <xRight>=\e[1;*C"
|
execute "set <xRight>=\e[1;*C"
|
||||||
execute "set <xLeft>=\e[1;*D"
|
execute "set <xLeft>=\e[1;*D"
|
||||||
|
|
||||||
|
nnoremap <S-Up> :m-2<CR>
|
||||||
|
nnoremap <S-Down> :m+<CR>
|
||||||
|
inoremap <S-Up> <Esc>:m-2<CR>
|
||||||
|
inoremap <S-Down> <Esc>:m+<CR>
|
||||||
|
|
||||||
|
" Because Python messes up tabs
|
||||||
|
autocmd FileType python setlocal noexpandtab
|
||||||
|
autocmd FileType python setlocal tabstop=4
|
||||||
|
|
||||||
|
set autoindent
|
||||||
|
set copyindent
|
||||||
|
set noexpandtab
|
||||||
|
set tabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
set softtabstop=4
|
||||||
|
|
Loading…
Reference in New Issue