From 9e4a83076849362f454e8ea919baea6bcdd79d1e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 8 May 2018 10:09:36 -0700 Subject: [vim] move syntax to the end, set up python --- vimrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 84e6b9e..a44e0e4 100644 --- a/vimrc +++ b/vimrc @@ -5,8 +5,6 @@ set ttyfast " assume fast terminal and send more chars for smooth redraw set lazyredraw " don't redraw while executing macros, register and cmds set ttymouse=sgr " like xterm2 but supporting beyond 223 columns -syntax off - let &statusline = '[%n] %<%F %m%r%w%y %= (%l,%c) %P of %L' set laststatus=2 " every window gets a statusline, always(=2) set scrolloff=5 " scroll edge offset (to keep some context) @@ -31,3 +29,10 @@ call plug#end() " configure ack.vim to use silver surfer let g:ackprg = 'ag --vimgrep --smart-case' + +autocmd BufNewFile,BufRead *.py setlocal tabstop=2 softtabstop=2 shiftwidth=2 textwidth=100 smarttab expandtab + +" Exit on j +imap jj + +syntax off -- cgit 1.4.1