summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-09-10 13:14:56 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-09-10 13:14:56 +0200
commitaacc89d5e81a49e0f0d5fafc3a7833d0e33be6c3 (patch)
treebdf6546d258455cd17067791849a69da20d38cbf /vimrc
downloadvimrc-aacc89d5e81a49e0f0d5fafc3a7833d0e33be6c3.tar.gz
vimrc-aacc89d5e81a49e0f0d5fafc3a7833d0e33be6c3.tar.bz2
vimrc-aacc89d5e81a49e0f0d5fafc3a7833d0e33be6c3.zip
Begin with basic vimrc
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc24
1 files changed, 24 insertions, 0 deletions
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..79b6e55
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,24 @@
+filetype on
+syntax on
+colorscheme desert
+set number
+filetype indent on
+set nowrap
+set tabstop=4
+set shiftwidth=4
+set expandtab
+set smartindent
+set autoindent
+set guioptions-=T
+
+" highlight search matches
+set hlsearch
+
+" show matching parenthesis
+set showmatch
+
+" remove whitespace on write
+autocmd BufWritePre * :%s/\s\+$//e
+
+" press esc to cancel search
+nnoremap <silent> <Esc> :nohlsearch<Bar>:echo<CR>