summaryrefslogtreecommitdiff
path: root/dot_vimrc
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2017-07-06 13:34:46 -0700
committerAlex Auvolat <alex@adnab.me>2018-01-15 14:44:49 +0100
commitf0f0f6c6058def87ed3fd9b4dfb17ec934543b5a (patch)
tree6f407fb014492c73b4dcc15db98d9503c23eec16 /dot_vimrc
parent77fada76853c8fc2e11b16a78809dd827c117114 (diff)
downloaduser-config-f0f0f6c6058def87ed3fd9b4dfb17ec934543b5a.tar.gz
user-config-f0f0f6c6058def87ed3fd9b4dfb17ec934543b5a.zip
Updates :)
Diffstat (limited to 'dot_vimrc')
-rw-r--r--dot_vimrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/dot_vimrc b/dot_vimrc
index 885a5d2..dc7fc76 100644
--- a/dot_vimrc
+++ b/dot_vimrc
@@ -9,6 +9,14 @@ map <leader>m <Esc>:set expandtab ts=2 sw=2 sts=2<CR>
map <leader>t <Esc>:set noexpandtab ts=4 sw=4 sts=4<CR>
map <leader>T <Esc>:set expandtab ts=4 sw=4 sts=4<CR>
+au FileType python setl sw=4 sts=4 et
+au FileType html setl sw=2 sts=2 et
+au FileType htmldjango setl sw=2 sts=2 et
+au FileType json setl sw=2 sts=2 et
+au FileType yaml setl sw=2 sts=2 et
+au FileType css setl sw=4 sts=4 et
+au FileType lua setl ts=4 sw=4 noet
+
" Folds:
map <leader>f <Esc>:set fen fdn=3 fdm=indent fml=1 fdc=3<CR>
@@ -24,7 +32,7 @@ set bg=dark
set mouse=a
set number
set relativenumber
-set smartindent
+filetype plugin indent on
set term=xterm-256color
set cursorline
@@ -37,7 +45,7 @@ let g:sclangTerm = "urxvt -e"
autocmd FileType tex setlocal spell spelllang=en
highlight SpellBad ctermfg=red ctermbg=none
-let NERDTreeIgnore=['\.o$', '\.cmo$', '\.cmx$', '\.cmi$', '\.lib$', '\.pyc$']
+let NERDTreeIgnore=['\.o$', '\.cmo$', '\.cmx$', '\.cmi$', '\.lib$', '\.pyc$', '^__pycache__$']
set wildmode=list:longest