Skip to content

Commit

Permalink
colordiffrc merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Varankin committed Mar 7, 2012
2 parents 296f63b + 4462efd commit 6adc31f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions colordiffrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ newtext=darkgreen
oldtext=darkred
diffstuff=white
cvsstuff=darkyellow

24 changes: 21 additions & 3 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set number
" Hide buffers when not displayed
set hidden

" Automaticaly set cwd to opened buffer
" Automaticaly set cwd to opened buffer
"set autochdir

" Show the cursor position all the time
Expand All @@ -56,6 +56,8 @@ set nolinebreak
" Отборажение текущей комманды
set showcmd

set ttyfast

" Включаем отображение дополнительной информации в статусной строке
set laststatus=2
set statusline=%f%h\ %y\ %m\ %r\ %{&encoding}\
Expand Down Expand Up @@ -85,7 +87,7 @@ set splitright
set splitbelow

" Set the textwidth to be 80 chars
set textwidth=80
set textwidth=0

if version >= 703
" mark the ideal max text width
Expand Down Expand Up @@ -164,7 +166,8 @@ set noswapfile
"" DIFF

" Add ignorance of whitespace to diff
set diffopt+=iwhite
set diffopt=filler,iwhite,vertical,context:15
let g:html_diff_one_file = 1


"" KEY MAPS
Expand Down Expand Up @@ -212,6 +215,13 @@ imap <C-l> <C-o>l
" ,bl show buffers
nmap <Leader>bl :ls<cr>:b
nnoremap j gj
nnoremap k gk
" This allows us to save a file as root with the :w!! command, if we have sudo
" privileges, when we're not currently useing vim as root
cmap w!! %!sudo tee > /dev/null %

"-------------------------
" GUI
Expand Down Expand Up @@ -253,6 +263,14 @@ autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS

autocmd FileType xml setlocal textwidth=0

" see http://lloyd.github.com/yajl/ `json_reformat`
autocmd FileType json,bemjson.js set equalprg=json_reformat
autocmd FileType xml set equalprg=xmllint\ --format\ -

" For all text files set 'textwidth' to 78 characters.
autocmd FileType text,txt setlocal textwidth=78


"-------------------------
" BufExplorer
"-------------------------
Expand Down

0 comments on commit 6adc31f

Please sign in to comment.