aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc14
1 files changed, 13 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 77d64b8..1cd50a5 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,6 +1,5 @@
syntax on
filetype plugin indent on
-"set omnifunc=syntaxcomplete#Complete
set autoindent
"colours!
@@ -20,6 +19,13 @@ set hidden
set guifont=Tamsyn\ 11
set guioptions=aegimt
+"i keep accidentally typing these over and over
+command W w
+command Wq wq
+command WQ wq
+command Q q
+command E e
+
"buffer / tab controls
nnoremap <C-j> :bn<CR>
nnoremap <C-k> :bp<CR>
@@ -130,8 +136,14 @@ endfunction
function! Settings_tex()
"settings
+ setlocal noautoindent
+ setlocal nocindent
+ setlocal nosmartindent
+ setlocal indentexpr=
setlocal shiftwidth=4
setlocal tabstop=4
+ let g:tex_comment_nospell=1
+ set spell
"mappings
nnoremap -- O%<Space>
nnoremap <Leader>c :!latex -output-format=pdf %<CR><CR>