Permalink
Browse files

Fixes and more

  • Loading branch information...
1 parent 63e0fb1 commit bf47d8c736f67a0ecc3bbe854678285cbae6efdd @graudeejs committed Jul 23, 2012
Showing with 17 additions and 10 deletions.
  1. +17 −10 vimrc
View
27 vimrc
@@ -590,10 +590,12 @@ else
endif
nmap <C-A> <ESC>:buffers<cr>:buffer<Space>
-nmap <C-A>n <ESC>:next<cr>
-nmap <C-A>p <ESC>:previous<cr>
-nmap <C-A><Left> <ESC>:next<cr>
-nmap <C-A><Right> <ESC>:previous<cr>
+nmap <Left> <ESC>:next<cr>
+nmap <Right> <ESC>:previous<cr>
+nmap <Up> <ESC>:tabnext<cr>
+nmap <Down> <ESC>:tabprevious<cr>
+nmap <space> :
+vmap <space> :
if whoami != 'root'
" nmap <C-P> <ESC>:call LoadIfNeeded(['ctrlp'])<CR>:CtrlPCurWD<CR>
@@ -635,12 +637,12 @@ if has("X11") && exists("$DISPLAY") && exists("$XAUTHORITY") && filereadable($XA
nmap <F3> <ESC>"+p
imap <F3> <ESC>"+p
elseif exists("$DISPLAY") && exists("$XAUTHORITY") && filereadable($XAUTHORITY) && ProgrPath(['xclip']) != ''
- vmap <silent> <F2> :!xclip -i -f -selection secondary<CR>
- nmap <silent> <F2> <ESC>:r!xclip -o -selection secondary<CR>
- imap <silent> <F2> <ESC>:r!xclip -o -selection secondary<CR>
- vmap <silent> <F3> :!xclip -i -f -selection clip-board<CR>
- nmap <silent> <F3> <ESC>:r!xclip -o -selection clip-board<CR>
- imap <silent> <F3> <ESC>:r!xclip -o -selection clip-board<CR>
+ vmap <silent> <F2> :!xclip -i -f -selection primary<CR>
+ nmap <silent> <F2> <ESC>:r!xclip -o -selection primary<CR>
+ imap <silent> <F2> <ESC>:r!xclip -o -selection primary<CR>
+ vmap <silent> <F3> :!xclip -i -f -selection clipboard<CR>
+ nmap <silent> <F3> <ESC>:r!xclip -o -selection clipboard<CR>
+ imap <silent> <F3> <ESC>:r!xclip -o -selection clipboard<CR>
else
vmap <F2> "vy
nmap <F2> <ESC>"vp
@@ -683,6 +685,11 @@ if whoami != 'root'
endif
+au BufReadPost * if getfsize(bufname("%")) > 4*1024*1024 |
+\ set syntax= |
+\ endif
+
+
if executable("/bin/sh")
set shell=/bin/sh
let &viewdir = vim_var . '/view'

0 comments on commit bf47d8c

Please sign in to comment.