aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/.vim/after/ftplugin/tr.vim2
-rw-r--r--vim/.vim/ftplugin/haskell.vim7
-rw-r--r--vim/.vim/ftplugin/nroff.vim3
-rw-r--r--vim/.vim/ftplugin/rst.vim5
-rw-r--r--vim/.vimrc5
5 files changed, 19 insertions, 3 deletions
diff --git a/vim/.vim/after/ftplugin/tr.vim b/vim/.vim/after/ftplugin/tr.vim
deleted file mode 100644
index 3098f3d..0000000
--- a/vim/.vim/after/ftplugin/tr.vim
+++ /dev/null
@@ -1,2 +0,0 @@
-set spell
-autocmd BufWritePost * !pic % | tbl | eqn | troff -ms | grops > %:r.ps
diff --git a/vim/.vim/ftplugin/haskell.vim b/vim/.vim/ftplugin/haskell.vim
new file mode 100644
index 0000000..b0ce109
--- /dev/null
+++ b/vim/.vim/ftplugin/haskell.vim
@@ -0,0 +1,7 @@
+" Tab specific option
+set tabstop=8 "A tab is 8 spaces
+set expandtab "Always uses spaces instead of tabs
+set softtabstop=4 "Insert 4 spaces when tab is pressed
+set shiftwidth=4 "An indent is 4 spaces
+set shiftround "Round indent to nearest shiftwidth multiple
+
diff --git a/vim/.vim/ftplugin/nroff.vim b/vim/.vim/ftplugin/nroff.vim
new file mode 100644
index 0000000..fd5afa6
--- /dev/null
+++ b/vim/.vim/ftplugin/nroff.vim
@@ -0,0 +1,3 @@
+set spell
+
+autocmd BufWritePost * silent! execute "!grap % | pic | tbl | eqn | troff -ms | grops > %:r.ps" | redraw!
diff --git a/vim/.vim/ftplugin/rst.vim b/vim/.vim/ftplugin/rst.vim
new file mode 100644
index 0000000..4403a97
--- /dev/null
+++ b/vim/.vim/ftplugin/rst.vim
@@ -0,0 +1,5 @@
+" Tab specific option
+set tabstop=8 "A tab is 8 spaces
+set noexpandtab "Always uses spaces instead of tabs
+set shiftwidth=2 "An indent is 4 spaces
+
diff --git a/vim/.vimrc b/vim/.vimrc
index 1fc49ff..1f8075c 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -12,13 +12,16 @@ set spell
set tw=70
set ruler
+set encoding=utf-8
+
+
set list
set listchars=eol:\ ,tab:\|\ ,trail:~,extends:>,precedes:<,space:ยท
map K i<enter><esc>
map W <esc>:WordCount<enter>
-colorscheme moonfly
+colorscheme default
au BufRead,BufNewFile *.go set filetype=go
au BufRead,BufNewFile *.ldg set filetype=ledger