summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/.vimrc b/.vimrc
index 0ee2c09..cbe9adf 100644
--- a/.vimrc
+++ b/.vimrc
@@ -46,7 +46,7 @@ let mapleader =" "
nnoremap S :%s//g<Left><Left>
" Open corresponding.pdf
- map <leader>p :!zathura <c-r>%<backspace><backspace><backspace>pdf &<CR><CR>
+ map <leader>p :!opout <c-r>%<CR><CR>
" Compile document
map <leader>c :!compiler <c-r>%<CR>
@@ -62,13 +62,13 @@ let mapleader =" "
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
" Readmes autowrap text:
- autocmd BufRead,BufNewFile *README.md set tw=79
+ autocmd BufRead,BufNewFile *.md,*.tex set tw=79
" Get line, word and character counts with F3:
map <F3> :!wc <C-R>%<CR>
" Spell-check set to F6:
- map <F6> :setlocal spell! spelllang=en_us,es<CR>
+ map <F6> :setlocal spell! spelllang=en_us<CR>
" Toggle DeadKeys set (for accent marks):
so ~/.vim/luke/deadkeys.vim
@@ -99,7 +99,7 @@ let mapleader =" "
" Enable Goyo by default for mutt writting
" Goyo's width will be the line limit in mutt.
- autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=72
+ autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo
" Enable autocompletion:
@@ -113,7 +113,7 @@ let mapleader =" "
autocmd BufWritePost ~/.scripts/folders,~/.scripts/configs !bash ~/.scripts/shortcuts.sh
" Runs a script that cleans out tex build files whenever I close out of a .tex file.
- autocmd VimLeave *.tex !texclear
+ autocmd VimLeave *.tex !texclear %
" Disables automatic commenting on newline:
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o