1
0
Fork 0
mirror of synced 2024-11-05 00:48:57 -05:00
ultimate-vim/my_configs.vim

124 lines
2.8 KiB
VimL
Raw Normal View History

2014-10-27 16:32:12 -04:00
"Switch color schemes"
function! ColorSet(colorName)
if a:colorName == "default"
colorscheme molokai
set background=light
let g:molokai_original=1
let g:airline_theme = 'molokai'
elseif a:colorName == "outside"
colorscheme solarized
set background=light
let g:airline_theme = 'molokai'
elseif a:colorName == "bluey"
colorscheme solarized
set background=dark
let g:airline_theme = 'molokai'
else
echo "you fucked up"
endif
endfunction
:command -nargs=1 ColorSet :call ColorSet(<f-args>)
if !empty($VIM_COLOR)
:call ColorSet($VIM_COLOR)
else
:call ColorSet("default")
endif
2014-10-27 14:16:17 -04:00
"set mouse=a
2014-10-27 16:32:12 -04:00
"set background=dark
"let g:molokai_original = 1
2014-06-11 12:54:26 -04:00
"colorscheme solarized
"syntax enable
"set background=dark
2014-10-27 14:16:17 -04:00
"set smartindent
"autocmd BufWritePre * :FixWhitespace
2014-04-19 17:26:49 -04:00
set timeoutlen=2000
set pastetoggle=<F6>
2014-10-27 14:16:17 -04:00
"inoremap jk <ESC>
"nnoremap ; :
2014-04-19 17:26:49 -04:00
#set colorcolumn=80
" Open Vim, be able to undo
2014-10-27 14:16:17 -04:00
"set undodir=$HOME/.vim/undo
"set undolevels=1000
"set undoreload=10000
2014-04-19 17:26:49 -04:00
" System wide copy paste
2014-10-27 14:16:17 -04:00
"set clipboard=unnamedplus
2014-04-19 17:26:49 -04:00
" Make Y behave like other capitals
2014-10-27 14:16:17 -04:00
"map Y y$
2014-04-19 17:26:49 -04:00
"
" " Start scrolling 3 lines before the border
set scrolloff=3
"
" " Automatically reread files that have been changed externally
2014-10-27 14:16:17 -04:00
"set autoread
2014-04-19 17:26:49 -04:00
"
" " Make ^e and ^y scroll 3 lines instead of 1
2014-10-27 14:16:17 -04:00
"nnoremap <C-e> 3<C-e>
"nnoremap <C-y> 3<C-y>
2014-04-19 17:26:49 -04:00
"
" " don't move the cursor after pasting
" " (by jumping to back start of previously changed text)
2014-10-27 14:16:17 -04:00
"noremap p p`[
"noremap P P`[
2014-04-19 17:26:49 -04:00
"
" " Reselect visual block after indent/outdent
2014-10-27 14:16:17 -04:00
"vnoremap < <gv
"vnoremap > >gv
2014-04-19 17:26:49 -04:00
" Turn off the christmas lights
2014-10-27 14:16:17 -04:00
"nnoremap <cr> :nohlsearch<cr>
2014-04-19 17:26:49 -04:00
" Allow saving as root by w!!
2014-10-27 14:16:17 -04:00
"cmap w!! %!sudo tee > /dev/null %
2014-04-19 17:26:49 -04:00
" Finde merge conflict markers
2014-10-27 14:16:17 -04:00
"nmap <silent> <leader>cf <ESC>/\v^[<=>]{7}( .*\|$)<CR>
2014-04-19 17:26:49 -04:00
" Use Marked.app to preview Markdown files...
2014-10-27 14:16:17 -04:00
"function! s:setupMarkup()
" nnoremap <leader>p :silent !open -a Marked.app '%:p'<cr>
"endfunction
2014-04-19 17:26:49 -04:00
" Navigate splits more easily
2014-10-27 14:16:17 -04:00
"map <C-h> <C-w>h
"map <C-j> <C-w>j
"map <C-k> <C-w>k
"map <C-l> <C-w>l
2014-04-19 17:26:49 -04:00
" " These makes j/k move up/down a screen line instead of a physical file line (for wrapped lines)
2014-10-27 14:16:17 -04:00
"nmap k gk
"nmap j gj
2014-04-19 17:26:49 -04:00
" autocmd BufEnter * if &modifiable | NERDTreeFind | wincmd p | endif
" Easymotion {{{
2014-10-27 14:16:17 -04:00
"let g:EasyMotion_do_mapping = 0
2014-04-19 17:26:49 -04:00
2014-10-27 14:16:17 -04:00
"nnoremap <silent> <Leader>f :call EasyMotion#F(0, 0)<CR>
"onoremap <silent> <Leader>f :call EasyMotion#F(0, 0)<CR>
"vnoremap <silent> <Leader>f :<C-U>call EasyMotion#F(1, 0)<CR>
2014-04-19 17:26:49 -04:00
2014-10-27 14:16:17 -04:00
"nnoremap <silent> <Leader>F :call EasyMotion#F(0, 1)<CR>
"onoremap <silent> <Leader>F :call EasyMotion#F(0, 1)<CR>
"vnoremap <silent> <Leader>F :<C-U>call EasyMotion#F(1, 1)<CR>
2014-04-19 17:26:49 -04:00
2014-10-27 14:16:17 -04:00
"onoremap <silent> <Leader>t :call EasyMotion#T(0, 0)<CR>
"onoremap <silent> <Leader>T :call EasyMotion#T(0, 1)<CR>
2014-04-19 17:26:49 -04:00
" }}}
2014-10-27 14:16:17 -04:00
"source ~/.vim_runtime/maximum_awesome_vimrc
2014-04-19 17:26:49 -04:00
2014-10-27 14:16:17 -04:00
"set tabstop=2
"set shiftwidth=2
"set expandtab
"set smartindentl:s
2014-10-27 16:32:12 -04:00
"
"