diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2018-10-03 13:46:26 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2018-10-03 13:46:26 -0400 |
commit | 7ff346e6133155fe3b3818f80acede18e9e5eb36 (patch) | |
tree | 7b7b29cfe243c82f5358cdb508118eb7daeee188 /vim | |
parent | 31ea47e9e01fbe0334d5514b59ba5a7bcc463826 (diff) |
Updates vim setup
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vim/after/ftplugin/asm.vim | 0 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/by.vim | 2 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/c.vim | 3 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/conf.vim | 2 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/go.vim | 2 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/haskell.vim | 7 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/java.vim | 2 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/mail.vim | 3 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/python.vim | 7 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/rst.vim | 7 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/tex.vim | 2 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/tr.vim (renamed from vim/.vim/ftplugin/tr.vim) | 0 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/tree.vim | 13 | ||||
-rw-r--r-- | vim/.vim/after/ftplugin/txt.vim | 2 | ||||
-rw-r--r-- | vim/.vim/ftplugin/haskell.vim | 7 | ||||
-rw-r--r-- | vim/.vim/ftplugin/nroff.vim | 3 | ||||
-rw-r--r-- | vim/.vim/ftplugin/rst.vim | 5 | ||||
-rw-r--r-- | vim/.vimrc | 5 |
18 files changed, 71 insertions, 1 deletions
diff --git a/vim/.vim/after/ftplugin/asm.vim b/vim/.vim/after/ftplugin/asm.vim new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/vim/.vim/after/ftplugin/asm.vim diff --git a/vim/.vim/after/ftplugin/by.vim b/vim/.vim/after/ftplugin/by.vim new file mode 100644 index 0000000..7f2b61c --- /dev/null +++ b/vim/.vim/after/ftplugin/by.vim @@ -0,0 +1,2 @@ +set nospell +set tw=0 diff --git a/vim/.vim/after/ftplugin/c.vim b/vim/.vim/after/ftplugin/c.vim new file mode 100644 index 0000000..a445f6f --- /dev/null +++ b/vim/.vim/after/ftplugin/c.vim @@ -0,0 +1,3 @@ +set tw=0 +set cindent +set nospell diff --git a/vim/.vim/after/ftplugin/conf.vim b/vim/.vim/after/ftplugin/conf.vim new file mode 100644 index 0000000..7f2b61c --- /dev/null +++ b/vim/.vim/after/ftplugin/conf.vim @@ -0,0 +1,2 @@ +set nospell +set tw=0 diff --git a/vim/.vim/after/ftplugin/go.vim b/vim/.vim/after/ftplugin/go.vim new file mode 100644 index 0000000..736e482 --- /dev/null +++ b/vim/.vim/after/ftplugin/go.vim @@ -0,0 +1,2 @@ +set tw=0 +set cindent diff --git a/vim/.vim/after/ftplugin/haskell.vim b/vim/.vim/after/ftplugin/haskell.vim new file mode 100644 index 0000000..b0ce109 --- /dev/null +++ b/vim/.vim/after/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/after/ftplugin/java.vim b/vim/.vim/after/ftplugin/java.vim new file mode 100644 index 0000000..736e482 --- /dev/null +++ b/vim/.vim/after/ftplugin/java.vim @@ -0,0 +1,2 @@ +set tw=0 +set cindent diff --git a/vim/.vim/after/ftplugin/mail.vim b/vim/.vim/after/ftplugin/mail.vim new file mode 100644 index 0000000..c6e2b8a --- /dev/null +++ b/vim/.vim/after/ftplugin/mail.vim @@ -0,0 +1,3 @@ +set softtabstop=4 +set shiftwidth=4 +set expandtab diff --git a/vim/.vim/after/ftplugin/python.vim b/vim/.vim/after/ftplugin/python.vim new file mode 100644 index 0000000..643e63d --- /dev/null +++ b/vim/.vim/after/ftplugin/python.vim @@ -0,0 +1,7 @@ +set nospell +set tw=0 +set tabstop=8 +set softtabstop=8 +set shiftwidth=8 +set noexpandtab + diff --git a/vim/.vim/after/ftplugin/rst.vim b/vim/.vim/after/ftplugin/rst.vim new file mode 100644 index 0000000..4ea3bbf --- /dev/null +++ b/vim/.vim/after/ftplugin/rst.vim @@ -0,0 +1,7 @@ +" 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 +set softtabstop=8 "Insert 4 spaces when tab is pressed +set shiftround "Round indent to nearest shiftwidth multiple + diff --git a/vim/.vim/after/ftplugin/tex.vim b/vim/.vim/after/ftplugin/tex.vim new file mode 100644 index 0000000..95e50d4 --- /dev/null +++ b/vim/.vim/after/ftplugin/tex.vim @@ -0,0 +1,2 @@ +set spell +au BufWritePost * silent! execute "!pdflatex %" | redraw! diff --git a/vim/.vim/ftplugin/tr.vim b/vim/.vim/after/ftplugin/tr.vim index 87f4512..87f4512 100644 --- a/vim/.vim/ftplugin/tr.vim +++ b/vim/.vim/after/ftplugin/tr.vim diff --git a/vim/.vim/after/ftplugin/tree.vim b/vim/.vim/after/ftplugin/tree.vim new file mode 100644 index 0000000..073abf6 --- /dev/null +++ b/vim/.vim/after/ftplugin/tree.vim @@ -0,0 +1,13 @@ +set tw=0 +set nolist +set nospell + +map pp a, 01<esc> +map PP a, 09<esc> +map tt a, 06<esc> +map bb a, 07<esc> +map ss a, 03<esc> +map SS a, 04<esc> +map nn a, 05<esc> +map vv a, 02<esc> +map cc a, Cull<esc> diff --git a/vim/.vim/after/ftplugin/txt.vim b/vim/.vim/after/ftplugin/txt.vim new file mode 100644 index 0000000..7dcafeb --- /dev/null +++ b/vim/.vim/after/ftplugin/txt.vim @@ -0,0 +1,2 @@ +set spell +set tw=70 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 + @@ -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 |