changeset 140:e037d9b797eb

Fix colors and clipboad in vim and tmux
author zegervdv <zegervdv@me.com>
date Wed, 08 Oct 2014 23:27:50 +0200
parents 0958749f45f0
children db9f18f9620b
files tmux.conf vim/colors/Tomorrow-Night.vim vimrc
diffstat 3 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/tmux.conf	Wed Oct 08 23:27:33 2014 +0200
+++ b/tmux.conf	Wed Oct 08 23:27:50 2014 +0200
@@ -7,8 +7,8 @@
 # act like vim
 setw -g mode-keys vi
 set -g status-keys vi
-bind-key -t vi-edit Up
-bind-key -t vi-eidt Down
+# bind-key -t vi-edit Up
+# bind-key -t vi-eidt Down
 bind h select-pane -L
 bind j select-pane -D
 bind k select-pane -U
@@ -50,5 +50,6 @@
 
 # Local config
 if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local'
-bind -t vi-copy 'v' begin-selection
-bind -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy"
+# bind -t vi-copy 'v' begin-selection
+# bind -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy"
+set-option -g default-command "reattach-to-user-namespace -l zsh"
--- a/vim/colors/Tomorrow-Night.vim	Wed Oct 08 23:27:33 2014 +0200
+++ b/vim/colors/Tomorrow-Night.vim	Wed Oct 08 23:27:50 2014 +0200
@@ -272,7 +272,7 @@
 
 	" Standard Highlighting
 	call <SID>X("Comment", s:comment, "", "")
-	call <SID>X("Todo", s:comment, s:background, "")
+	call <SID>X("Todo", s:green, s:background, "")
 	call <SID>X("Title", s:comment, "", "")
 	call <SID>X("Identifier", s:red, "", "none")
 	call <SID>X("Statement", s:foreground, "", "")
--- a/vimrc	Wed Oct 08 23:27:33 2014 +0200
+++ b/vimrc	Wed Oct 08 23:27:50 2014 +0200
@@ -99,6 +99,8 @@
 au BufNewFile,BufRead,BufEnter *.txt setlocal spell spelllang=en_gb
 au BufNewFile,BufRead,BufEnter *.txt setlocal textwidth=0
 
+highlight SpellBad ctermbg=256 ctermfg=210
+highlight SpellLocal ctermbg=240 ctermfg=010
 
 " When editing a file, always jump to the last known cursor position.
 " Don't do it for commit messages, when the position is invalid, or when
@@ -480,9 +482,9 @@
 " }}}
 " Vim - Rspec {{{
 map <leader>t :call RunCurrentSpecFile()<CR>
-map <leader>s :call RunNearestSpec()<CR>
-map <leader>l :call RunLastSpec()<CR>
-map <leader>r :call RunAllSpecs()<CR>
+" map <leader>s :call RunNearestSpec()<CR>
+" map <leader>l :call RunLastSpec()<CR>
+" map <leader>r :call RunAllSpecs()<CR>
 " }}}
 " Cucumber {{{
 map <leader>f :call RunAllFeatures()<CR>