Skip to content

Commit 457f2e2

Browse files
committed
Make Vim look good
To make Vim look good, you can install extra color schemes. For the purposes of this demo, I've chosen two: Solarized (the most widely used color scheme) and Molokai (a port of the Textmate/Sublime color scheme). Feel free to pick one by changing the colorscheme solarized line to something else. To make Solarized look the best, you're going to want to install the corresponding colorscheme for your terminal: http://ethanschoonover.com/solarized If you can't do this, just uncomment the line that says let g:solarized_termcolors=256 We're also installing a plugin called vim-airline that makes Vim look pretty awesome. It adds tons of information to your Vim and adds style too. It works best if you have what's called a "patched font". There are a number of patched fonts that you can install, but the one I recommend is https://github.com/abertsch/Menlo-for-Powerline Once you've downloaded all the .ttf files, change your font in your terminal emulator. NOTE FOR WINDOWS USERS (you poor souls...) Setting up Solarized and vim-airline is basically impossible on PuTTY. Instead, you should go download mobaXterm, which is an SSH client that lets you a) comes pre-installed with Solarized colors and b) lets you choose a patched font: http://mobaxterm.mobatek.net/ For detailed installation instructions and a sneak peak at some of it's more powerful features, see here http://blog.zimmerman.io/2014/09/28/setting-up-mobaxterm-for-ssh-on-windows/
1 parent 1186be2 commit 457f2e2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

vimrc.vim

+37
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ call vundle#begin()
88

99
Plugin 'gmarik/Vundle.vim'
1010

11+
" ----- Making Vim look good ------------------------------------------
12+
Plugin 'altercation/vim-colors-solarized'
13+
Plugin 'tomasr/molokai'
14+
Plugin 'bling/vim-airline'
15+
1116
call vundle#end()
1217

1318
filetype plugin indent on
@@ -23,3 +28,35 @@ set hlsearch
2328
syntax on
2429

2530
set mouse=a
31+
32+
" ----- Plugin-Specific Settings --------------------------------------
33+
34+
" ----- altercation/vim-colors-solarized settings -----
35+
" Toggle this to "light" for light colorscheme
36+
set background=dark
37+
38+
" Uncomment the next line if your terminal is not configured for solarized
39+
"let g:solarized_termcolors=256
40+
41+
" Set the colorscheme
42+
colorscheme solarized
43+
44+
45+
" ----- bling/vim-airline settings -----
46+
" Always show statusbar
47+
set laststatus=2
48+
49+
" Fancy arrow symbols, requires a patched font
50+
" To install a patched font, run over to
51+
" https://github.com/abertsch/Menlo-for-Powerline
52+
" download all the .ttf files, double-click on them and click "Install"
53+
" Finally, uncomment the next line
54+
"let g:airline_powerline_fonts = 1
55+
56+
" Show PASTE if in paste mode
57+
let g:airline_detect_paste=1
58+
59+
" Show airline for tabs too
60+
let g:airline#extensions#tabline#enabled = 1
61+
62+

0 commit comments

Comments
 (0)