From 976ee016853a37c4df8bae12f22524c9ed812038 Mon Sep 17 00:00:00 2001 From: Sebastian Dahlgren Date: Tue, 10 Sep 2013 08:39:05 +0200 Subject: [PATCH 1/7] Added vim-airline bundle to Vundle --- vimrc.bundles | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrc.bundles b/vimrc.bundles index 99ffc1a4..4a240b00 100644 --- a/vimrc.bundles +++ b/vimrc.bundles @@ -5,6 +5,7 @@ Bundle 'airblade/vim-gitgutter' Bundle 'altercation/vim-colors-solarized' Bundle 'austintaylor/vim-indentobject' +Bundle 'bling/vim-airline' Bundle 'christoomey/vim-tmux-navigator' Bundle 'gmarik/vundle' Bundle 'juvenn/mustache.vim' From 72282171b2d53481880fc7695b8051cfdb8f8b18 Mon Sep 17 00:00:00 2001 From: Sebastian Dahlgren Date: Tue, 10 Sep 2013 11:35:56 +0200 Subject: [PATCH 2/7] Added support for Powerline Fonts for vim-airline --- vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc b/vimrc index fe9d263f..09f40a31 100644 --- a/vimrc +++ b/vimrc @@ -97,6 +97,9 @@ autocmd User Rails silent! Rnavcommand stepdefinition features/step_definitions " automatically rebalance windows on vim resize autocmd VimResized * :wincmd = +" Enable PowerLine fonts for vim-airline +let g:airline_powerline_fonts = 1 + " Fix Cursor in TMUX if exists('$TMUX') let &t_SI = "\Ptmux;\\]50;CursorShape=1\x7\\\" From faf53d5531c6d52690fffc1f0f1215e4697d7674 Mon Sep 17 00:00:00 2001 From: Sebastian Dahlgren Date: Tue, 10 Sep 2013 11:52:21 +0200 Subject: [PATCH 3/7] Updated vim-airline information --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 3af89dbb..b31a70b2 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,20 @@ peace-loving hippies. Built for Mac OS X. * `^]` jump to definition using ctags * `,l` begins aligning lines on a string, usually used as `,l=` to align assignments * `^hjkl` move between windows, shorthand for `^w hjkl` +* `ctrl+6` switch between open buffers +* `ctrl+w w` switch between open windows +* `ctrl+w s` split window horizontally +* `ctrl+w v` split window vertically + +#### vim-airline statusbar + +Maximum awesome ships with [vim-airline](https://github.com/bling/vim-airline) support. If you want fancy symbols you will need to do the following: + +1. Install PowerLine fonts. The fonts reside in the [powerline-fonts](https://github.com/Lokaltog/powerline-fonts) repo and installation instructions can be found [here](https://powerline.readthedocs.org/en/latest/fontpatching.html). +2. Add the following to your `~/.vimrc.local`: + + " Enable PowerLine fonts for vim-airline + let g:airline_powerline_fonts = 1 ### tmux From 350a885e87f57b40232f465010fbadff6653d813 Mon Sep 17 00:00:00 2001 From: Sebastian Dahlgren Date: Tue, 10 Sep 2013 11:52:51 +0200 Subject: [PATCH 4/7] Removed ctrl+6 information --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index b31a70b2..05489e64 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ peace-loving hippies. Built for Mac OS X. * `^]` jump to definition using ctags * `,l` begins aligning lines on a string, usually used as `,l=` to align assignments * `^hjkl` move between windows, shorthand for `^w hjkl` -* `ctrl+6` switch between open buffers * `ctrl+w w` switch between open windows * `ctrl+w s` split window horizontally * `ctrl+w v` split window vertically From a90c17eda25d932a1f8281562fe3310841661aba Mon Sep 17 00:00:00 2001 From: Sebastian Dahlgren Date: Tue, 10 Sep 2013 11:54:06 +0200 Subject: [PATCH 5/7] Removed dependency to PowerLine fonts --- vimrc | 3 --- 1 file changed, 3 deletions(-) diff --git a/vimrc b/vimrc index 09f40a31..fe9d263f 100644 --- a/vimrc +++ b/vimrc @@ -97,9 +97,6 @@ autocmd User Rails silent! Rnavcommand stepdefinition features/step_definitions " automatically rebalance windows on vim resize autocmd VimResized * :wincmd = -" Enable PowerLine fonts for vim-airline -let g:airline_powerline_fonts = 1 - " Fix Cursor in TMUX if exists('$TMUX') let &t_SI = "\Ptmux;\\]50;CursorShape=1\x7\\\" From 68e15581b518f832a077b83befcca03e8342b538 Mon Sep 17 00:00:00 2001 From: Sebastian Dahlgren Date: Tue, 10 Sep 2013 11:55:59 +0200 Subject: [PATCH 6/7] Now supporting vim-airline buffers --- vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc b/vimrc index fe9d263f..50f3447f 100644 --- a/vimrc +++ b/vimrc @@ -72,6 +72,9 @@ let g:ctrlp_match_window = 'order:ttb,max:20' let g:NERDSpaceDelims=1 let g:gitgutter_enabled = 0 +" vim-airline settings +let g:airline#extensions#tabline#enabled = 1 + " Use The Silver Searcher https://github.com/ggreer/the_silver_searcher if executable('ag') let g:ackprg = 'ag --nogroup --column' From 2d5ee54b0f8925feb9c7636494f371f1606ad2c9 Mon Sep 17 00:00:00 2001 From: Sebastian Dahlgren Date: Tue, 10 Sep 2013 12:11:44 +0200 Subject: [PATCH 7/7] Removed instructions that were not related to vim-airline --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 05489e64..253cfc66 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,6 @@ peace-loving hippies. Built for Mac OS X. * `^]` jump to definition using ctags * `,l` begins aligning lines on a string, usually used as `,l=` to align assignments * `^hjkl` move between windows, shorthand for `^w hjkl` -* `ctrl+w w` switch between open windows -* `ctrl+w s` split window horizontally -* `ctrl+w v` split window vertically #### vim-airline statusbar