summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@fon.com>2015-12-15 12:04:41 +0100
committerEkaitz Zárraga <ekaitz.zarraga@fon.com>2015-12-15 12:04:41 +0100
commitce9db5c85ca8456328dc669a6557c964a40afea0 (patch)
treea10f892598b661f34f416a09fc194506e01249fb /vim/.vimrc
parentdeccc275df2fbc1ffe6601ab6f24a6fe3a360bfb (diff)
Vim and Git configs
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc22
1 files changed, 22 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
new file mode 100644
index 0000000..7d2505c
--- /dev/null
+++ b/vim/.vimrc
@@ -0,0 +1,22 @@
+highlight ExtraWhitespace ctermbg=red guibg=red
+match ExtraWhitespace /\s\+$/
+autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
+autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
+autocmd InsertLeave * match ExtraWhitespace /\s\+$/
+autocmd BufWinLeave * call clearmatches()
+
+
+filetype plugin on
+
+" Fold
+set foldmethod=syntax
+set foldlevelstart=99
+
+
+
+" HighLight search and map CarrierReturn to remove highlight
+set hlsearch
+nnoremap <CR> :noh<CR><CR>
+
+" Understand .md as markdown
+autocmd BufNewFile,BufRead *.md set ft=markdown