Browse Source

Improve C for vim

Ian Adam Naval 6 years ago
parent
commit
4f3d0c6d23
2 changed files with 6 additions and 1 deletions
  1. 1
    1
      vim/vim.dotfile/c.vim
  2. 5
    0
      vim/vimrc.dotfile

+ 1
- 1
vim/vim.dotfile/c.vim View File

@@ -1,5 +1,5 @@
1 1
 setlocal tabstop=4
2
-setlocal softtabstop=4
2
+""setlocal softtabstop=4
3 3
 setlocal shiftwidth=4
4 4
 setlocal smarttab
5 5
 setlocal expandtab

+ 5
- 0
vim/vimrc.dotfile View File

@@ -27,6 +27,11 @@ set guioptions-=r
27 27
 set guioptions-=L
28 28
 set laststatus=2
29 29
 
30
+set list
31
+set listchars=tab:>-,trail:~,extends:>,precedes:<
32
+" Make it so that a curly brace automatically inserts an indented line
33
+inoremap {<CR> {<CR>}<Esc>O<Tab>
34
+
30 35
 syntax on
31 36
 colorscheme monokai
32 37
 set guifont=Meslo\ LG\ S\ 8

Loading…
Cancel
Save