276 lines
6.8 KiB
VimL
Executable File
276 lines
6.8 KiB
VimL
Executable File
" change runtime path
|
||
set runtimepath=~/Tools/vim,$VIM/vimfiles,$VIMRUNTIME
|
||
let g:ruby_path = ':C:\ruby193\bin'
|
||
|
||
call pathogen#infect()
|
||
call pathogen#helptags()
|
||
|
||
"we don't want vi compatibility AKA Make Vim more useful
|
||
set nocompatible
|
||
|
||
" color schemes
|
||
colorscheme hickop "jellybeans
|
||
"hickop
|
||
"pablo
|
||
"torte
|
||
"slate
|
||
"evening
|
||
"darkblue
|
||
"desert
|
||
"base16-flat
|
||
"inkpot
|
||
"jellybeans
|
||
"liquidcarbon
|
||
"molokai
|
||
"moria
|
||
"pinksea
|
||
"sonofobsidian
|
||
"vividchalk
|
||
"wombat256mod
|
||
"evening
|
||
"koehler
|
||
"morning
|
||
"elflord
|
||
|
||
set noswapfile
|
||
set autoread
|
||
set selection=exclusive
|
||
set ttimeoutlen=50
|
||
|
||
let mapleader = ","
|
||
|
||
let g:ctrlp_map = '<C-P>'
|
||
let g:ctrlp_working_path_mode = 2
|
||
|
||
map <Space> :noh<CR>
|
||
map <leader>w :buffers<CR>
|
||
map <leader>q :buffer#<CR>
|
||
|
||
" mini buffer explorer toggle
|
||
map <Leader>b :MBEToggle<cr>
|
||
|
||
" easymotion mappings
|
||
" n character search
|
||
map <leader>/ <Plug>(easymotion-tn)
|
||
" 2 character search
|
||
map <leader>s <Plug>(easymotion-s2)
|
||
|
||
" nerdtree mapppings
|
||
nmap <leader>n :NERDTreeToggle %:p:h<CR>
|
||
nmap <leader>m :NERDTreeClose<CR>:NERDTreeFind<CR>
|
||
|
||
"pane movements
|
||
map <C-h> <C-w>h
|
||
map <C-j> <C-w>j
|
||
map <C-k> <C-w>k
|
||
map <C-l> <C-w>l
|
||
|
||
" pane resizing
|
||
map <A-k> <C-+>
|
||
map <A-k> <C-w>+
|
||
map <A-j> <C-w>-
|
||
map <A-l> <C-w>>
|
||
map <A-h> <C-w><
|
||
|
||
|
||
map <leader>x :%s/\s\+$//<CR>:noh<Cr>
|
||
map <leader>v :tabedit ~/.vimrc<CR>
|
||
|
||
map <F1> <Nop>
|
||
|
||
" Save a file as root (,W)
|
||
noremap <leader>W :w !sudo tee % > /dev/null<CR>
|
||
|
||
syntax enable
|
||
|
||
"airline config
|
||
|
||
let g:airline#extensions#tabline#enabled = 1
|
||
" the separator used on the left side >
|
||
"let g:airline_left_sep='>'
|
||
|
||
" the separator used on the right side >
|
||
"let g:airline_right_sep='<'
|
||
|
||
" enable modified detection >
|
||
let g:airline_detect_modified=1
|
||
|
||
" enable paste detection >
|
||
let g:airline_detect_paste=1
|
||
|
||
" enable iminsert detection >
|
||
let g:airline_detect_iminsert=1
|
||
|
||
" determine whether inactive windows should have the left section collapsed to only the filename of that buffer.
|
||
let g:airline_inactive_collapse=1
|
||
|
||
" enable/disable csv integration for displaying the current column.
|
||
let g:airline#extensions#csv#enabled = 1
|
||
|
||
" customize the whitespace symbol. >
|
||
let g:airline#extensions#whitespace#symbol = '.'
|
||
|
||
" themes are automatically selected based on the matching colorscheme. this can be overridden by defining a value.
|
||
"let g:airline_theme=
|
||
|
||
" if you want to patch the airline theme before it gets applied, you can supply the name of a function where you can modify the palette.
|
||
let g:airline_theme_patch_func = 'AirlineThemePatch'
|
||
function! AirlineThemePatch(palette)
|
||
if g:airline_theme == 'badwolf'
|
||
for colors in values(a:palette.inactive)
|
||
let colors[3] = 245
|
||
endfor
|
||
endif
|
||
endfunction
|
||
|
||
" enable/disable automatic population of the `g:airline_symbols` dictionary with powerline symbols.
|
||
let g:airline_powerline_fonts=1
|
||
|
||
" define the set of text to display for each mode.
|
||
let g:airline_mode_map = {
|
||
\ '__' : '-',
|
||
\ 'n' : 'N',
|
||
\ 'i' : 'I',
|
||
\ 'R' : 'R',
|
||
\ 'c' : 'C',
|
||
\ 'v' : 'V',
|
||
\ 'V' : 'V',
|
||
\ '' : 'V',
|
||
\ 's' : 'S',
|
||
\ 'S' : 'S',
|
||
\ '' : 'S',
|
||
\ }
|
||
|
||
" defines whether the preview window should be excluded from have its window statusline modified (may help with plugins which use the preview window heavily) >
|
||
let g:airline_exclude_preview = 0
|
||
|
||
" change the text for when no branch is detected >
|
||
let g:airline#extensions#branch#empty_message = 'No Branch'
|
||
|
||
" truncate long branch names to a fixed length >
|
||
let g:airline#extensions#branch#displayed_head_limit = 15
|
||
|
||
" enable/disable fugitive/lawrencium integration >
|
||
let g:airline#extensions#branch#enabled = 1
|
||
|
||
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
|
||
set clipboard=unnamed
|
||
" Enhance command-line completion
|
||
set wildmenu
|
||
" Allow cursor keys in insert mode
|
||
set esckeys
|
||
" Allow backspace in insert mode
|
||
set backspace=indent,eol,start
|
||
" Optimize for fast terminal connections
|
||
set ttyfast
|
||
" Add the g flag to search/replace by default
|
||
set gdefault
|
||
" Use UTF-8 without BOM
|
||
set encoding=utf-8 "nobomb
|
||
" Change mapleader
|
||
let mapleader=","
|
||
" Don |