diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2015-11-03 00:18:25 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2015-11-03 00:18:25 -0300 |
commit | 4dfe8c019547eeda4d1283f324f34267bb221c2a (patch) | |
tree | e2c299f6a4d55d1701adf1dc8e00a2c32fb630b3 /vimrc | |
parent | a6647f2481ab92ab3fa7c80b4c5600da935696ba (diff) | |
download | dotfiles-4dfe8c019547eeda4d1283f324f34267bb221c2a.tar.gz |
Function for a notepad
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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') |