" Be IMproved if &compatible set nocompatible endif " Gives vim abilty to recognize filetypes filetype plugin indent on " Enables syntax highlighing syntax enable " display long lines as just one line set nowrap " The encoding displayed set encoding=utf-8 " The encoding written to file set fileencoding=utf-8 " Enable your mouse set mouse=a " Horizontal splits will automatically be below set splitbelow " Vertical splits will automatically be to the right set splitright " Support 256 colors set t_Co=256 " Your working directory will always be the same as your working directory set autochdir " Insert 4 spaces for a tab set tabstop=4 " Change the number of space characters inserted for indentation set shiftwidth=4 " Makes tabbing smarter will realize you have 2 vs 4 set smarttab " Converts tabs to spaces set expandtab " Makes indenting smart set smartindent " Good auto indent set autoindent " Always display the status line set laststatus=2 " Line numbers set number " Enable highlighting of the current line set cursorline let g:elite_mode=1 " Disable arrow movement, resize splits instead. if get(g:, 'elite_mode') nnoremap :resize -2 nnoremap :resize +2 nnoremap :vertical resize -2 nnoremap :vertical resize +2 endif " Alternate way to save nnoremap :w " Alternate way to quit nnoremap :wq! " Use control-c instead of escape nnoremap " : completion. inoremap pumvisible() ? "\" : "\" " F2 split vertical nnoremap :vsplit " F3 split horizontal nnoremap :split " Toggle Line numbers nnoremap :set nonumber! " Toggle NERDTree nnoremap :NERDTreeToggle " Get rid of highlights after search nnoremap :nohlsearch " Open terminal with F1 nnoremap :10split term://bash " insert mode for terminal autocmd BufWinEnter,WinEnter term://* startinsert autocmd BufLeave term://* stopinsert " Remap window switch nnoremap h nnoremap j nnoremap k nnoremap l " Remap terminal switch tnoremap tnoremap tnoremap h tnoremap j tnoremap k tnoremap l " TAB in general mode will mov to text buffer nnoremap :bnext " SHIFT-TAB will go back nnoremap :bprevious " Map leader switch to whatever you want let mapleader = ","