Browse Source

Use setlocal insted of set (#404)

* setlocal insted of set for css

Check `:h setl`

* setlocal insted of set for html

* setlocal insted of set for js

* setlocal insted of set for jsreact

* setlocal insted of set for yaml
Eliaz Bobadilla 4 years ago
parent
commit
b12cd861c1
5 changed files with 9 additions and 10 deletions
  1. 2 2
      ftplugin/css.vim
  2. 2 2
      ftplugin/html.vim
  3. 2 2
      ftplugin/javascript.vim
  4. 3 3
      ftplugin/javascriptreact.vim
  5. 0 1
      ftplugin/yaml.vim

+ 2 - 2
ftplugin/css.vim

@@ -1,2 +1,2 @@
-set ts=2
-set sw=2             
+setl ts=2
+setl sw=2             

+ 2 - 2
ftplugin/html.vim

@@ -1,2 +1,2 @@
-set ts=2
-set sw=2             
+setl ts=2
+setl sw=2             

+ 2 - 2
ftplugin/javascript.vim

@@ -1,2 +1,2 @@
-set ts=2
-set sw=2             
+setl ts=2
+setl sw=2             

+ 3 - 3
ftplugin/javascriptreact.vim

@@ -1,3 +1,3 @@
-setlocal commentstring={/*%s*/}
-set ts=2
-set sw=2             
+setl commentstring={/*%s*/}
+setl ts=2
+setl sw=2             

+ 0 - 1
ftplugin/yaml.vim

@@ -1,3 +1,2 @@
 set ts=2
 set sw=2             
-