" General Settings
"==============================================================================
syntax enable " Turn on syntax highlighting
-filetype plugin indent off " Turn off plugin indent to make indent follow previous line (This makes indenting consistent across filetypes)
+filetype plugin indent off " Turn off plugin indent to use custom indent settings
colorscheme torte " Set default color scheme
set nocompatible " Disable VI compatibility
set backspace=indent,eol,start " Makes backspace work as expected
-set whichwrap+=<,>,[,],h,l " Make cursor keys wrap lines
+set whichwrap+=<,>,[,],h,l " Make cursor keys wrap line
set autoindent " turn on auto indent
set copyindent " Indent follows previous line
set tabstop=4 " Tabs equivalent to 4 spaces
set lazyredraw " Don't redraw unless we need to
set formatoptions+=r " Enable continuation of comments after a newline
+filetype plugin on
+set omnifunc=syntaxcomplete#Complete
+set completeopt=menu,preview
+
"==============================================================================
" Function and Command Definitions
"==============================================================================
if &modifiable
retab
silent! exec("%s/\\s\\+$//")
- exec("=")
endif
endfunction
map <Leader>h :nohl<CR>
" ---- Omni Complete ----
-inoremap <S-tab> <C-n>
+inoremap <C-Space> <C-n>
" ---- Nerd Tree Toggle ----
map <Leader>t :NERDTreeToggle<CR>
map <Leader>ff :cs find f <cword><CR>
map <Leader>fi :cs find i <cword><CR>
+" ---- Switch between header and C file ----
+map <F5> <ESC>:e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c,<CR>
+
"==============================================================================
" Abbreviations
"==============================================================================