Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add powerline fonts

  • Loading branch information...
commit 3e6f6e3e307d611746ba2ec8686db177f40307bc 1 parent 3b2a8bc
ppyang authored
28 .vimrc
View
@@ -9,6 +9,7 @@ if has('win32') || has('win64')
set runtimepath=$HOME\.vim,$VIM\vimfiles,$VIMRUNTIME,$VIM\vimfiles\after,$HOME\.vim\after
"let Tlist_Ctags_Cmd=$HOME.'\ctags\ctags.exe'
let g:tagbar_ctags_bin=$HOME.'\ctags\ctags.exe'
+ set lines=100 columns=100
endif
" }}}
@@ -56,8 +57,8 @@ colorscheme jellybeans
set encoding=utf-8 "encoding to utf-8
set fileencoding=utf-8 "set encoding when opening files to utf-8
set ch=1 " Make command line two lines high
-set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h12,DejaVu\ Sans\ Mono:h12,Menlo\ Regular\ for\ Powerline:h12,Monaco:h13 "use DejaVu Sans Mono for english on win/liunux, Monaco for mac
-set guifontwide=SimHei:h11,Monaco:h13 "use SimHei for Chinese, Monaco for mac
+set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h11,DejaVu\ Sans\ Mono:h12,Menlo\ Regular\ for\ Powerline:h12,Monaco:h13 "use DejaVu Sans Mono for english on win/liunux, Monaco for mac
+set guifontwide=Yahei_Mono:h11,SimHei:h11,Monaco:h12 "use SimHei for Chinese, Monaco for mac
set backspace=indent,eol,start " allow backspacing over everything in insert mode
" Remove all the UI cruft
@@ -66,6 +67,7 @@ set go-=l
set go-=L
set go-=r
set go-=R
+set go-=m
let mapleader = "," "map , as <leader> key instead of \ by default
"set autochdir "auto change dir to where the current file is.
set hidden "switching buffers without saving
@@ -172,10 +174,10 @@ nnoremap <c-left> 5<c-w>>
nnoremap <c-right> 5<c-w><
"switch between windows with leader key
-nnoremap <leader>h <C-w>h
-nnoremap <leader>j <C-w>j
-nnoremap <leader>k <C-w>k
-nnoremap <leader>l <C-w>l
+noremap <C-h> <C-w>h
+noremap <C-j> <C-w>j
+noremap <C-k> <C-w>k
+noremap <C-l> <C-w>l
"navigate between tabs and buffers
nnoremap <leader>bn :bnext<cr>
@@ -388,6 +390,20 @@ let g:rbpt_max = 16
" }}}
+" Markdown {{{
+
+augroup ft_markdown
+ au!
+
+ au BufNewFile,BufRead *.m*down setlocal filetype=markdown
+
+ " Use <localleader>1/2/3 to add headings.
+ au Filetype markdown nnoremap <buffer> <localleader>1 yypVr=
+ au Filetype markdown nnoremap <buffer> <localleader>2 yypVr-
+ au Filetype markdown nnoremap <buffer> <localleader>3 I### <ESC>
+augroup END
+
+" }}}
"------------Session---------------
let g:session_directory=$HOME.'/.vim/tmp/session'
let g:session_autoload='yes'
BIN  fonts for powerline/dejiavu powerline.zip
View
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.