summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/mySnippets/tex.snippets3
-rw-r--r--vim/vimrc12
2 files changed, 7 insertions, 8 deletions
diff --git a/vim/mySnippets/tex.snippets b/vim/mySnippets/tex.snippets
index e69de29..1741c9c 100644
--- a/vim/mySnippets/tex.snippets
+++ b/vim/mySnippets/tex.snippets
@@ -0,0 +1,3 @@
+snippet grad "Gradient" i
+\nabla
+endsnippet
diff --git a/vim/vimrc b/vim/vimrc
index bdebc52..1d396ff 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -61,16 +61,10 @@ function! SynctexShow()
end
endfunction
-" Access
nnoremap <LocalLeader>a :call SynctexShow()<CR><CR>
-
-" Initiate
nnoremap <LocalLeader>i :Latexmk<CR>
-
-" Open
+nnoremap <LocalLeader>e :LatexErrors<CR>
nnoremap <LocalLeader>o :LatexView<CR>
-
-" Kill
nnoremap <LocalLeader>k :LatexmkStop<CR>:LatexmkClean<CR>
" Gundo
@@ -157,7 +151,7 @@ set encoding=utf-8
"" Colorscheme
function! UpdateColorscheme()
try | colorscheme solarized | catch | endtry
- if strftime("%H") >= 9 && strftime("%H") < 17
+ if strftime("%H") >= 9 && strftime("%H") < 18
set background=light
else
set background=dark
@@ -187,6 +181,8 @@ nnoremap <Leader>sc :source %
nnoremap <Return> o<Esc>
nnoremap <s-Return> O<Esc>
nnoremap J mzJ`z
+nnoremap Y y$
+
" nnoremap - za
nnoremap <c-y> 3<c-y>
nnoremap <c-e> 3<c-e>