aboutsummaryrefslogtreecommitdiff
path: root/vim/base.vim
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-02-21 01:01:29 -0500
committerMitch Riedstra <mitch@riedstra.us>2018-02-21 01:01:29 -0500
commit5d40569e5c1ca453df1bf7b0547f3f69e3e684d7 (patch)
tree0658eeaef820299519a2dcd0666278727fc83676 /vim/base.vim
parent261aaa8cf687be76e67fe5423f59450365769889 (diff)
downloadvim-cfg-5d40569e5c1ca453df1bf7b0547f3f69e3e684d7.tar.gz
vim-cfg-5d40569e5c1ca453df1bf7b0547f3f69e3e684d7.tar.xz
Add a makefile to rework init.vim. Commit update init.vm TODO: remove in the future and run make in setup
Diffstat (limited to 'vim/base.vim')
-rw-r--r--vim/base.vim48
1 files changed, 48 insertions, 0 deletions
diff --git a/vim/base.vim b/vim/base.vim
new file mode 100644
index 0000000..73bd8c1
--- /dev/null
+++ b/vim/base.vim
@@ -0,0 +1,48 @@
+set encoding=utf-8 " The encoding displayed.
+set fileencoding=utf-8 " The encoding written to file.
+
+" Apparently there are security issues with this?
+set nomodeline
+
+execute pathogen#infect('bundle/{}', 'themes/{}')
+
+" Allow me to hide buffers w/o saving
+set hidden
+
+" Persistent undo
+set undofile
+set undodir=~/.vimundo
+set undolevels=1000
+set undoreload=10000
+
+" lots of history, it's always nice to find old nasty command that happen
+" to be really useful
+set history=10000
+"
+" Keep the newbs from using arrow keys
+inoremap <Left> <NOP>
+inoremap <Right> <NOP>
+inoremap <Up> <NOP>
+inoremap <Down> <NOP>
+
+" Always show status line
+set laststatus=2
+
+" Case insensitive searching by default
+set ic
+" Highlight my searches by default
+set hls
+
+" No more swap files
+set updatecount=0
+
+" Vi in-compatibility
+set nocompatible
+
+
+" Bring down the tab spacing
+set tabstop=4
+set shiftwidth=4
+set noexpandtab
+
+