summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-23 18:18:32 -0500
committerJune McEnroe <june@causal.agency>2018-11-23 18:18:32 -0500
commitbe60029b87c872a48e4c38f9afcc1747d4cda18c (patch)
tree3648cf97a664510eed8801bb38d0e4a1580cf5b4 /home
parentReplace tableUpdate with tableReplace (diff)
downloadsrc-be60029b87c872a48e4c38f9afcc1747d4cda18c.tar.gz
src-be60029b87c872a48e4c38f9afcc1747d4cda18c.zip
Set default .asm, .h, .sh syntax modes for vim
Diffstat (limited to '')
-rw-r--r--home/.config/nvim/init.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 4fa55841..9297ea64 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -5,13 +5,15 @@ set wildmode=list:longest wildignore=*.o
 set splitbelow splitright
 command! W w
 command! Q q
-autocmd BufNewFile,BufRead *.asm,*.mac setfiletype nasm
 
 set tabstop=4 shiftwidth=4 shiftround
 set smartindent cinoptions=l1(sU1m1
 set ignorecase smartcase inccommand=nosplit
 nmap <leader><leader> :nohlsearch<CR>
 set foldmethod=syntax foldlevel=99
+let asmsyntax = "nasm"
+let c_syntax_for_h = 1
+let is_posix = 1
 
 set title laststatus=1
 set scrolloff=1