From 4dfe8c019547eeda4d1283f324f34267bb221c2a Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Tue, 3 Nov 2015 00:18:25 -0300 Subject: Function for a notepad --- vimrc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index d351918..79033a0 100644 --- a/vimrc +++ b/vimrc @@ -10,9 +10,10 @@ call pathogen#infect() if has("gui_running") set guioptions=c - colo gruvbox + colo hybrid set bg=dark - set guifont=Envy\ Code\ R\ 9 + "set guifont=Envy\ Code\ R\ 9 + set guifont=Fira\ Mono\ Medium\ 9 else set bg=light endif @@ -28,8 +29,7 @@ set nobackup set nowb set noswapfile set wrap -set scrolloff=3 -set autochdir +set scrolloff=2 if expand("%:p") =~ '\.*blender\.*' set tabstop=4 @@ -65,6 +65,14 @@ au Bufread,BufNewFile *.oz set ft=oz au Bufread,BufNewFile *.rb set sw=2 ts=2 sts=2 au BufRead,BufNewFile *.html call HtmlDjangoSettings() +au BufRead,BufNewFile ~/.notes call Notes() + +function! Notes() + set ft=markdown + set foldmethod=marker + colo hybrid + set tw=80 +endfunction function! HtmlDjangoSettings() if (&ft=='htmldjango') -- cgit v1.2.3-70-g09d2