Skip to content

Commit

Permalink
Indent with vim-sleuth
Browse files Browse the repository at this point in the history
Having to specify indentation for each file type is getting annoying and
makes poking around with new languages (that I haven't configured yet)
an awkward process. Hopefully this is better.
  • Loading branch information
thorncp committed Mar 25, 2016
1 parent a83a5b1 commit 2fa2374
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 31 deletions.
2 changes: 1 addition & 1 deletion config/nvim/ftplugin/gitcommit.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
syntax on
set spell
setlocal spell
setlocal textwidth=72
3 changes: 0 additions & 3 deletions config/nvim/ftplugin/haskell.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
set tabstop=4
setlocal shiftwidth=4
setlocal expandtab
setlocal textwidth=80
2 changes: 0 additions & 2 deletions config/nvim/ftplugin/html.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
setlocal tabstop=2
setlocal shiftwidth=2
setlocal expandtab
3 changes: 0 additions & 3 deletions config/nvim/ftplugin/javascript.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
setlocal tabstop=2
setlocal shiftwidth=2
setlocal expandtab
setlocal textwidth=80

nnoremap <buffer> <leader>x
Expand Down
2 changes: 1 addition & 1 deletion config/nvim/ftplugin/markdown.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
setlocal textwidth=80
set spell
setlocal spell

nnoremap <buffer> <leader>x :silent !open %<cr> :redraw!<cr>
3 changes: 0 additions & 3 deletions config/nvim/ftplugin/ruby.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
setlocal tabstop=2
setlocal shiftwidth=2
setlocal expandtab
setlocal textwidth=80

nnoremap <buffer> <leader>x
Expand Down
3 changes: 0 additions & 3 deletions config/nvim/ftplugin/scss.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
setlocal tabstop=2
setlocal shiftwidth=2
setlocal expandtab
setlocal textwidth=80
3 changes: 0 additions & 3 deletions config/nvim/ftplugin/slim.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
setlocal tabstop=2
setlocal shiftwidth=2
setlocal expandtab
setlocal textwidth=0
3 changes: 0 additions & 3 deletions config/nvim/ftplugin/sql.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
setlocal tabstop=2
setlocal shiftwidth=2
setlocal expandtab
setlocal textwidth=80

setlocal syntax=pgsql
Expand Down
3 changes: 0 additions & 3 deletions config/nvim/ftplugin/vim.vim

This file was deleted.

3 changes: 0 additions & 3 deletions config/nvim/ftplugin/yaml.vim

This file was deleted.

3 changes: 0 additions & 3 deletions config/nvim/ftplugin/zsh.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
setlocal tabstop=2
setlocal shiftwidth=2
setlocal expandtab
setlocal textwidth=80
1 change: 1 addition & 0 deletions config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-markdown'
Plug 'tpope/vim-rails'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-sleuth'
Plug 'tpope/vim-surround'
Plug 'vim-ruby/vim-ruby'
Plug 'vim-scripts/ctags.vim'
Expand Down

0 comments on commit 2fa2374

Please sign in to comment.