summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
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