summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-03-14 01:09:24 +0100
committerache <ache@ache.one>2017-03-14 01:09:24 +0100
commit1ff2c8bc63f34463105062aefb709e0949f9577b (patch)
tree0ce85f60f936c0a18559452620e4b2ae6bd21504 /plugin
parentTabs width = 4 (diff)
indent improvement for javascript and python code
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/indent.vim24
1 files changed, 24 insertions, 0 deletions
diff --git a/plugin/indent.vim b/plugin/indent.vim
index e5f1118..8191d82 100755
--- a/plugin/indent.vim
+++ b/plugin/indent.vim
@@ -8,3 +8,27 @@ set expandtab
set smarttab
set autoindent
+
+
+
+highlight BadWhitespace ctermbg=red guibg=red
+set hlsearch
+
+
+" make backspaces more powerfull
+set backspace=indent,eol,start
+
+
+
+
+"js stuff"
+autocmd FileType javascript setlocal shiftwidth=2 tabstop=2
+autocmd FileType python set tabstop=2 softtabstop=2 shiftwidth=2
+autocmd FileType python set textwidth=79 expandtab autoindent
+
+
+set fileformat=unix
+
+au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
+"
+"