Skip to content

Commit

Permalink
vim add airline + update config
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpou committed Feb 10, 2017
1 parent 273b1c3 commit 9e3a7f6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .aliases
Expand Up @@ -88,6 +88,9 @@ alias cdlab='cd $HOME/sites/lab'
dock() {
defaults write com.apple.dock position-immutable -bool YES; killall Dock
}
ds_fucking_store() {
sudo find / -name ".DS_Store" -depth -exec rm {} \;
}

# HTTP/REST API
jsonapi() {
Expand Down
11 changes: 7 additions & 4 deletions .gitmodules
@@ -1,12 +1,15 @@
[submodule "vim/bundle/vim-hybrid"]
path = vim/bundle/vim-hybrid
url = https://github.com/w0ng/vim-hybrid.git
url = https://github.com/w0ng/vim-hybrid
[submodule "vim/bundle/flavored-markdown"]
path = vim/bundle/flavored-markdown
url = https://github.com/jtratner/vim-flavored-markdown.git
url = https://github.com/jtratner/vim-flavored-markdown
[submodule "vim/bundle/vim-gitgutter"]
path = vim/bundle/vim-gitgutter
url = https://github.com/airblade/vim-gitgutter.git
url = https://github.com/airblade/vim-gitgutter
[submodule "vim/bundle/nerdtree"]
path = vim/bundle/nerdtree
url = git://github.com/scrooloose/nerdtree.git
url = https://github.com/scrooloose/nerdtree
[submodule "vim/bundle/vim-airline"]
path = vim/bundle/vim-airline
url = https://github.com/vim-airline/vim-airline
1 change: 1 addition & 0 deletions vim/bundle/vim-airline
Submodule vim-airline added at 8a01ef
14 changes: 11 additions & 3 deletions vim/vimrc
Expand Up @@ -6,25 +6,33 @@ filetype on
filetype plugin on
filetype indent on

set encoding=utf8

" airline
let g:airline_powerline_fonts = 1

" Color scheme
set background=dark
let g:solarized_termtrans = 1 " MacOS (iTerm)
colorscheme hybrid


set relativenumber " relative line number (usefull for dd command!)
set number " Show line numbers
set cursorline " highlight current line
set showmatch " set show matching parenthesis
set autoindent " autoindent
set copyindent " copy the previous indentation on autoindenting
set ignorecase " set case insensitivity
set mouse=a " enable mouse
set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣
set list


" NERDTree (type :NERDTree)
" NERDTree automatically when vim starts up if no files were specified
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif



" GitGutter
Expand Down

0 comments on commit 9e3a7f6

Please sign in to comment.