Skip to content

Commit 9cb5a8f

Browse files
committed
Trying to configure Vim for Markdown edit.
I'm trying to make Vim behave more line iA Writter if I'm editing markdown files. This commit is the first attempt of that.
1 parent 4c2f218 commit 9cb5a8f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

vim/ftplugin/markdown.vim

+26
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,30 @@ for arg in argv()
1818
endif
1919
endfor
2020

21+
if has('gui_running') && did_open_markdown
22+
colorscheme pencil
23+
set background=light
24+
set guifont=Cousine:h18
25+
set linespace=8
26+
set nonumber
27+
set norelativenumber
28+
set laststatus=0
29+
set nocursorline
30+
set columns=82
31+
set lines=25
32+
33+
call airline#init#sections()
34+
let g:airline_powerline_fonts=0
35+
let g:airline_left_sep = ''
36+
let g:airline_right_sep = ''
37+
let g:airline_symbols.linenr = ''
38+
let g:airline_symbols.branch = ''
39+
let g:airline_symbols.paste = 'ρ'
40+
let g:airline_symbols.whitespace = 'Ξ'
41+
let g:airline_symbols.readonly = 'ro'
42+
43+
AirlineTheme pencil
44+
call gitgutter#disable()
45+
endif
46+
2147
unlet did_open_markdown

0 commit comments

Comments
 (0)