diff options
| author | Mitsuo Tokumori <[email protected]> | 2023-11-23 22:03:31 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2023-11-23 22:03:31 -0500 |
| commit | 2f2555df201c74cd0f93b1e543fd397cda9a23e5 (patch) | |
| tree | ee9c808a00142709e7bbde853054decd369f42ab /nvim/init.vim | |
| parent | 19487f950f1c28fd8403d8ce320300c0b8517b82 (diff) | |
| download | dotfiles-2f2555df201c74cd0f93b1e543fd397cda9a23e5.tar.gz dotfiles-2f2555df201c74cd0f93b1e543fd397cda9a23e5.tar.bz2 dotfiles-2f2555df201c74cd0f93b1e543fd397cda9a23e5.zip | |
Comment C++ stuff, add TeX autocommands for neovim
Diffstat (limited to 'nvim/init.vim')
| -rw-r--r-- | nvim/init.vim | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/nvim/init.vim b/nvim/init.vim index 50b1fd3..000166a 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -41,7 +41,9 @@ " Settings " ---------------------------------------------------------------------- +" Common colorscheme industry +filetype plugin on " Command line: set cmdheight=1 @@ -105,6 +107,9 @@ set mouse=a " Enable mouse for all modes " Buffers set hidden " Allow for hidden modified buffers +" Split +set splitbelow splitright + " Mappings " ---------------------------------------------------------------------- @@ -172,7 +177,17 @@ inoremap <C-A> <Esc>diWi<C-R>=<C-R>"<CR> " Load Sessions with $ vim -S Session.vim " To automatically save and restore views for *.c *.cpp files: -au BufWinLeave *.c mkview -au BufWinEnter *.c silent loadview -au BufWinLeave *.cpp mkview -au BufWinEnter *.cpp silent loadview +"au BufWinLeave *.c mkview +"au BufWinEnter *.c silent loadview +"au BufWinLeave *.cpp mkview +"au BufWinEnter *.cpp silent loadview + + +" Playground +" ---------- +"autocmd FileType tex nnoremap <buffer> <F6> :!./build.sh %<CR> + +"augroup TeX +" autocmd! +" autocmd BufWritePost *.tex !./build.sh % +"augroup END |
