diff --git a/macos b/macos index fd994ee..79a955f 100755 --- a/macos +++ b/macos @@ -29,7 +29,7 @@ sudo pmset -a standbydelay 86400 sudo nvram SystemAudioVolume=" " # Disable transparency in the menu bar and elsewhere on Yosemite -defaults write com.apple.universalaccess reduceTransparency -bool true +# defaults write com.apple.universalaccess reduceTransparency -bool true # Set sidebar icon size to medium defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 2 diff --git a/vim/.vimrc b/vim/.vimrc index 007c338..74c3002 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -15,8 +15,8 @@ set nocompatible set encoding=utf-8 set fileencoding=utf-8 -" Quantity of comand line entries vim have to remember -set history=500 +" History length +set history=1000 " Remap the to , let mapleader="," @@ -437,6 +437,7 @@ let g:lightline = \ 'ctrlpmark': 'LightlineCtrlP', \ }, \ } + let g:lightline.mode_map = \ { \ 'n' : ' N ', @@ -502,17 +503,17 @@ endif " -> Colors & Fonts " ======================================================== -" solarized is love solarized is life +" Solarized is love solarized is life colorscheme solarized set background=dark -" set guifont=Source\ Code\ Pro:h16 +set guifont=Source\ Code\ Pro:h16 if has('gui_running') set guifont=Menlo:h14 - set guioptions-=T " remove toolbar - set guioptions-=m " remove menubar - set guioptions+=LlRrb " remove - set guioptions-=LlRrb " scrollbars + set guioptions-=T " Remove toolbar + set guioptions-=m " Remove menubar + set guioptions+=LlRrb " Remove + set guioptions-=LlRrb " Scrollbars set t_Co=256 else " Disable Background Color Erase (BCE) so that color schemes @@ -673,9 +674,6 @@ set shiftwidth=2 " Spaces set expandtab -" Don't write end of file -" set noeol - " ======================================================== @@ -759,7 +757,7 @@ nnoremap Y y$ " vv/ss for splits nnoremap vv v -" nnoremap ss s +nnoremap ss s " Highlight VCS conflict markers match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$' @@ -773,10 +771,11 @@ imap , " Allow the . to execute once for each line of a visual selection vnoremap . :normal . +" Makes more sense nnoremap H ^ nnoremap L $ -" Avoid entering Ex mode by pressing gQ (Q is remapped below) +" Avoid entering Ex mode by pressing gQ nnoremap gQ " I don't use it @@ -796,12 +795,12 @@ nmap \\\ CommentaryLine nmap \\u CommentaryUndo " git -noremap ga :Gwrite -noremap gc :Gcommit -noremap gp :Gpush -noremap gup :Gpull -noremap gs :Gstatus -noremap gd :Gvdiff +noremap ga :Gwrite +noremap gc :Gcommit +noremap gp :Gpush +noremap gup :Gpull +noremap gs :Gstatus +noremap gd :Gvdiff " CtrlP -> fzf nnoremap :Files @@ -820,11 +819,10 @@ nnoremap :Files " REMINDERS: " m -- ruby method motion (e.g. cim) " i -- indentation motion (e.g. dai) -" gx -- opens url in browser -" ctrl + e -- emmet -" ctrl + n -- vim-multiple-cursor " EXPERIMENTAL: + +" Color under cursor map :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" " Color name (:help cterm-colors) or ANSI code @@ -837,24 +835,23 @@ let g:limelight_default_coefficient = 0.7 " Set it to -1 not to overrule hlsearch let g:limelight_priority = -1 -" Goyo {{ - " Toggle distraction-free mode - nnoremap g :Goyo +" Goyo +" Toggle distraction-free mode +nnoremap g :Goyo - fun! s:goyoEnter() - set scrolloff=999 " Keep the edited line vertically centered - set wrap - set noshowcmd - Limelight - endf +fun! s:goyoEnter() + set scrolloff=999 " Keep the edited line vertically centered + set wrap + set noshowcmd + Limelight +endf - fun! s:goyoLeave() - set showcmd - set nowrap - set scrolloff=5 - Limelight! - endf +fun! s:goyoLeave() + set showcmd + set nowrap + set scrolloff=5 + Limelight! +endf - autocmd! User GoyoEnter nested call goyoEnter() - autocmd! User GoyoLeave nested call goyoLeave() -" }} +autocmd! User GoyoEnter nested call goyoEnter() +autocmd! User GoyoLeave nested call goyoLeave()