Skip to content

Commit

Permalink
.vimrc added
Browse files Browse the repository at this point in the history
  • Loading branch information
celestian committed Jan 8, 2016
1 parent 510ba5a commit e227bf4
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
set nocompatible
set tabstop=4
set softtabstop=0
set expandtab
set shiftwidth=4
set smarttab
set number


" Note: Skip initialization for vim-tiny or vim-small.
if !1 | finish | endif

if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif

call neobundle#begin(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'

" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!
NeoBundle 'altercation/vim-colors-solarized'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'jistr/vim-nerdtree-tabs'
NeoBundle 'majutsushi/tagbar'
NeoBundle 'bling/vim-airline'
NeoBundle 'Valloric/YouCompleteMe'
call neobundle#end()

" ------------------------------------------------------------------------------
syntax on
filetype plugin indent on

set cursorline
set colorcolumn=80
set nu
set wrap
set linebreak
set nolist " list disables linebreak

"Highlight trailing spaces
:nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
" --- SOLARIZED ----------------------------------------------------------------
" You must use https://github.com/Anthony25/gnome-terminal-colors-solarized
" for your gnome-terminal.
set background=dark " dark | light "
set t_Co=16
colorscheme solarized
" --- NERDTree -----------------------------------------------------------------
" --- NERDTree Tabs ------------------------------------------------------------
nmap <F8> :NERDTreeTabsToggle<CR>
" --- TagBar -------------------------------------------------------------------
nmap <F9> :TagbarToggle<CR>
" --- Airline ------------------------------------------------------------------
let g:airline#extensions#tabline#enabled = 1
" --- YouCompleteMe ------------------------------------------------------------
let g:ycm_global_ycm_extra_conf='/~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm'
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck


" Zajimave...
" CtrlP
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# dot-files
.files


### vim
$ curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > install.sh
$ sh ./install.sh

$ cd ~/.vim/bundle
$ git clone git://github.com/altercation/vim-colors-solarized.git

$ cd ~/.vim/bundle/YouCompleteMe
$ ./install.sh --clang-completer

0 comments on commit e227bf4

Please sign in to comment.