summary refs log tree commit diff
path: root/vimrc
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2016-12-10 10:25:13 -0800
committerFranck Cuny <franck.cuny@gmail.com>2016-12-10 10:25:13 -0800
commitf584fc8142f12c92ff0a9ce07d420458414ca47a (patch)
tree84f96076922395503716a9128058ebed0fc8e632 /vimrc
parent[iterm] update (diff)
downloademacs.d-f584fc8142f12c92ff0a9ce07d420458414ca47a.tar.gz
[vim] Add basic configuration for vim.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc33
1 files changed, 33 insertions, 0 deletions
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..382b5be
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,33 @@
+setlocal spell spelllang=en_us
+
+syn off
+
+set autoindent
+set autowrite
+set expandtab
+set ignorecase
+set list
+set listchars=tab:>-,trail:~,extends:>,precedes:<
+set nohls
+set nospell
+set ruler
+set viminfo=""
+
+set shiftwidth=2
+set smarttab
+set tabstop=2
+
+set nobackup                    " Don't create annoying backup files
+set noswapfile                  " Don't use swapfile
+set nowritebackup
+
+set noerrorbells                " No beeps
+
+set autoread                    " Automatically reread changed files without asking me anything
+set autowrite                   " Automatically save before :next, :make etc.
+set encoding=utf-8              " Set default encoding to UTF-8
+
+set winminheight=0              " minimize split window
+
+
+au BufNewFile,BufRead *.go setlocal noet ts=4 sw=4 sts=4