summaryrefslogtreecommitdiff
path: root/dotfiles/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.vimrc')
-rw-r--r--dotfiles/.vimrc66
1 files changed, 66 insertions, 0 deletions
diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc
new file mode 100644
index 0000000..40e0a0d
--- /dev/null
+++ b/dotfiles/.vimrc
@@ -0,0 +1,66 @@
+" stuff for c++ specific capabilities
+
+" turn on spell checking
+"set spell
+"set relativenumber
+"set number
+" sets how many lines of history VIM has to remember
+set history=700
+" Set to auto read when a file is changed from the outside
+set autoread
+"Always show current position
+set ruler
+" Configure backspace so it acts as it should act
+set backspace=eol,start,indent
+set whichwrap+=<,>,h,l
+" Ignore case when searching
+set ignorecase
+"
+" When searching try to be smart about cases
+set smartcase
+"
+" Highlight search results
+set hlsearch
+
+" Makes search act like search in modern browsers
+set incsearch
+
+" Show matching brackets when text indicator is over them
+set showmatch
+" How many tenths of a second to blink when matching brackets
+set mat=2
+" Enable syntax highlighting
+syntax enable
+colorscheme elflord
+set background=dark
+
+" Set extra options when running in GUI mode
+if has("gui_running")
+ set guioptions-=T
+ set guioptions+=e
+ set t_Co=256
+ set guitablabel=%M\ %t
+endif
+" Set utf8 as standard encoding and en_US as the standard language
+set encoding=utf8
+"
+" " Use Unix as the standard file type
+set ffs=unix,dos,mac
+" Use spaces instead of tabs
+ set expandtab
+"
+" " Be smart when using tabs ;)
+ set smarttab
+"
+" " 1 tab == 4 spaces
+ set shiftwidth=4
+ set tabstop=4
+
+" Map <Space> to / (search) and Ctrl-<Space> to ? (backwards search)
+ map <space> /
+ map <c-space> ?
+" Always show the status line
+set laststatus=2
+
+set mouse-=a
+