summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2015-11-03 00:18:25 -0300
committerMatias Linares <matiaslina@openmailbox.org>2015-11-03 00:18:25 -0300
commit4dfe8c019547eeda4d1283f324f34267bb221c2a (patch)
treee2c299f6a4d55d1701adf1dc8e00a2c32fb630b3
parenta6647f2481ab92ab3fa7c80b4c5600da935696ba (diff)
downloaddotfiles-4dfe8c019547eeda4d1283f324f34267bb221c2a.tar.gz
Function for a notepad
-rw-r--r--vimrc16
1 files 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')