summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/nvim/ftplugin/clojure.vim1
-rw-r--r--nvim/nvim/ftplugin/css.vim4
-rw-r--r--nvim/nvim/ftplugin/drowmark.vim11
-rw-r--r--nvim/nvim/ftplugin/gitcommit.vim4
-rw-r--r--nvim/nvim/ftplugin/html.vim2
-rw-r--r--nvim/nvim/ftplugin/javascript.vim2
-rw-r--r--nvim/nvim/ftplugin/markdown.vim4
-rw-r--r--nvim/nvim/ftplugin/tex.vim11
8 files changed, 15 insertions, 24 deletions
diff --git a/nvim/nvim/ftplugin/clojure.vim b/nvim/nvim/ftplugin/clojure.vim
index 7f0b981..9659508 100644
--- a/nvim/nvim/ftplugin/clojure.vim
+++ b/nvim/nvim/ftplugin/clojure.vim
@@ -1,3 +1,2 @@
-" TABS
setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
setlocal autoindent
diff --git a/nvim/nvim/ftplugin/css.vim b/nvim/nvim/ftplugin/css.vim
index 6a56808..9659508 100644
--- a/nvim/nvim/ftplugin/css.vim
+++ b/nvim/nvim/ftplugin/css.vim
@@ -1,2 +1,2 @@
-set tabstop=2 softtabstop=0 expandtab shiftwidth=2
-set autoindent
+setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
+setlocal autoindent
diff --git a/nvim/nvim/ftplugin/drowmark.vim b/nvim/nvim/ftplugin/drowmark.vim
index cd69f30..4e7507e 100644
--- a/nvim/nvim/ftplugin/drowmark.vim
+++ b/nvim/nvim/ftplugin/drowmark.vim
@@ -2,18 +2,17 @@
setlocal spelllang=es
setlocal spell
-" Textwidth for automatic wrap `gq` is formatting operation
-setlocal textwidth=79
+" Automatic text-wrap
setlocal formatoptions+=t
setlocal formatoptions-=l
" Auto-capitalize script
augroup SENTENCES
- au!
- autocmd InsertCharPre * if &ft=='drowmark' | if search('\v(%^|[.!?]\_s+|\_^\-\s|\_^title\:\s|\n\n)%#', 'bcnw') != 0 | let v:char = toupper(v:char) | endif | endif
+ au!
+ autocmd InsertCharPre * if &ft=='drowmark' | if search('\v(%^|[.!?]\_s+|\_^\-\s|\_^title\:\s|\n\n)%#', 'bcnw') != 0 | let v:char = toupper(v:char) | endif | endif
augroup END
" Tabs to 2 spaces
-set tabstop=2 softtabstop=0 expandtab shiftwidth=2
-set autoindent
+setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
+setlocal autoindent
diff --git a/nvim/nvim/ftplugin/gitcommit.vim b/nvim/nvim/ftplugin/gitcommit.vim
new file mode 100644
index 0000000..9c595c0
--- /dev/null
+++ b/nvim/nvim/ftplugin/gitcommit.vim
@@ -0,0 +1,4 @@
+setlocal spell
+setlocal spelllang=en
+
+setlocal formatoptions+=t
diff --git a/nvim/nvim/ftplugin/html.vim b/nvim/nvim/ftplugin/html.vim
index cde3013..9659508 100644
--- a/nvim/nvim/ftplugin/html.vim
+++ b/nvim/nvim/ftplugin/html.vim
@@ -1,4 +1,2 @@
setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
setlocal autoindent
-
-setlocal foldmethod=indent
diff --git a/nvim/nvim/ftplugin/javascript.vim b/nvim/nvim/ftplugin/javascript.vim
index cde3013..9659508 100644
--- a/nvim/nvim/ftplugin/javascript.vim
+++ b/nvim/nvim/ftplugin/javascript.vim
@@ -1,4 +1,2 @@
setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
setlocal autoindent
-
-setlocal foldmethod=indent
diff --git a/nvim/nvim/ftplugin/markdown.vim b/nvim/nvim/ftplugin/markdown.vim
index 5512cee..f40bef5 100644
--- a/nvim/nvim/ftplugin/markdown.vim
+++ b/nvim/nvim/ftplugin/markdown.vim
@@ -11,5 +11,5 @@ augroup SENTENCES
augroup END
" Tabs to 2 spaces
-set tabstop=2 softtabstop=0 expandtab shiftwidth=2
-set autoindent
+setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
+setlocal autoindent
diff --git a/nvim/nvim/ftplugin/tex.vim b/nvim/nvim/ftplugin/tex.vim
index fc0d53a..1a4682f 100644
--- a/nvim/nvim/ftplugin/tex.vim
+++ b/nvim/nvim/ftplugin/tex.vim
@@ -1,11 +1,4 @@
-set tabstop=2 softtabstop=0 expandtab shiftwidth=2
-set autoindent
+setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
+setlocal autoindent
-" Test some wrapping on the html
-setlocal textwidth=79
setlocal formatoptions+=t
-
-" Highlight where the lines are more than 80 characters wide
-setlocal colorcolumn=80
-highlight ColorColumn ctermbg=LightGreen
-