123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- execute pathogen#infect()
- map <space> <leader>
- ""
- colorscheme torte
- syntax enable
- set nocursorline
- set nohlsearch
- set showmatch
- set lazyredraw
- ""
- set tabstop=4
- set softtabstop=4
- set shiftwidth=4
- set expandtab
- ""
- set number
- set rnu
- :au FocusLost * :set norelativenumber
- :au FocusGained * :set relativenumber
- function! NumberToggle()
- if(&relativenumber == 1)
- set norelativenumber
- else
- set relativenumber
- endif
- endfunc
- nnoremap <Leader>n :call NumberToggle()<CR>
- ""
- set wildmenu
- set wildmode=longest,full
- set showcmd
- set incsearch
- set path+=**
- ""
- set foldmethod=indent
- set foldlevelstart=1
- set foldmethod=indent
- ""
- set backspace=indent,eol,start
- imap <C-BS> <C-W>
- ""
- autocmd FileType make setlocal noexpandtab
- filetype indent on
- autocmd FileType asm set noexpandtab shiftwidth=8 softtabstop=0
- ""
- set mouse=
- if !(has("win32") || has("win16") || has("win32unix"))
- if filereadable("/bin/zsh") && $SHELL=="/bin/zsh"
- silent! set shell=/bin/zsh
- endif
- endif
- set updatecount=10
- set undofile
- set undodir=~/.vim/undodir
- function! s:DiffWithSaved()
- let filetype=&ft
- diffthis
- vnew | r # | normal! 1Gdd
- diffthis
- exe "setlocal bt=nofile bh=wipe nobl noswf ro ft=" . filetype
- endfunction
- com! DiffSaved call s:DiffWithSaved()
- noremap <Leader>d :DiffSaved<CR>
- cmap w!! %!sudo tee > /dev/null %
- set modelines=0
- function! ClearBG()
- highlight Normal ctermbg=none
- endfunction
- function! BlackBG()
- highlight Normal ctermbg=black
- endfunction
- ""
- if has('nvim')
- noremap <Leader>w :%s/\s\+$//<CR>:nohl<CR>``
- else
- noremap <Leader>w :%s/\s\+$//<CR>``
- endif
- noremap <Leader>l Vgq
- ""
- noremap <Leader>m :MRU<CR>
- noremap <Leader>u :UndotreeToggle<CR>
- if exists(':SyntasticStatuslineFlag()')
- set statusline+=%#warningmsg#
- set statusline+=%{SyntasticStatuslineFlag()}
- set statusline+=%*
- let g:syntastic_always_populate_loc_list = 1
- let g:syntastic_auto_loc_list = 1
- let g:syntastic_check_on_open = 1
- let g:syntastic_check_on_wq = 0
- endif
- let g:ycm_global_ycm_extra_conf = '/home/josh/.vim/bundle/ycm_extra_conf.py'
- let g:ycm_autoclose_preview_window_after_insertion=1
- highlight YcmWarningSection ctermfg=Yellow
- highlight YcmWarningSign ctermfg=Yellow
- highlight YcmErrorSection ctermfg=Red
- highlight YcmErrorsign ctermfg=Red
- set laststatus=2
- autocmd FileType markdown AirlineToggleWhitespace
- ""
- if has('nvim')
-
- tnoremap <C-w> <C-\><C-n><C-w>
- endif
|